Updated Drupal to 8.6. This goes with the following updates because it's possible...
[yaffs-website] / vendor / psy / psysh / test / CodeCleaner / ValidClassNamePassTest.php
index 67b1575015566eb877669453aac75e9b7ed4060d..2d9ed60b5813080095a645cab36d0b347b4383cf 100644 (file)
@@ -172,6 +172,7 @@ class ValidClassNamePassTest extends CodeCleanerTestCase
             ['DateTime::$someMethod()'],
             ['Psy\Test\CodeCleaner\Fixtures\ClassWithStatic::doStuff()'],
             ['Psy\Test\CodeCleaner\Fixtures\ClassWithCallStatic::doStuff()'],
+            ['Psy\Test\CodeCleaner\Fixtures\TraitWithStatic::doStuff()'],
 
             // Allow `self` and `static` as class names.
             ['
@@ -305,12 +306,12 @@ class ValidClassNamePassTest extends CodeCleanerTestCase
         ];
 
         // Ugh. There's gotta be a better way to test for this.
-        if (class_exists('PhpParser\ParserFactory')) {
+        if (\class_exists('PhpParser\ParserFactory')) {
             // PHP 7.0 anonymous classes, only supported by PHP Parser v2.x
             $valid[] = ['$obj = new class() {}'];
         }
 
-        if (version_compare(PHP_VERSION, '5.5', '>=')) {
+        if (\version_compare(PHP_VERSION, '5.5', '>=')) {
             $valid[] = ['interface A {} A::class'];
             $valid[] = ['interface A {} A::CLASS'];
             $valid[] = ['class A {} A::class'];