diff vendor/psy/psysh/test/CodeCleaner/ValidClassNamePassTest.php @ 17:129ea1e6d783

Update, including to Drupal core 8.6.10
author Chris Cannam
date Thu, 28 Feb 2019 13:21:36 +0000
parents c2387f117808
children
line wrap: on
line diff
--- a/vendor/psy/psysh/test/CodeCleaner/ValidClassNamePassTest.php	Tue Jul 10 15:07:59 2018 +0100
+++ b/vendor/psy/psysh/test/CodeCleaner/ValidClassNamePassTest.php	Thu Feb 28 13:21:36 2019 +0000
@@ -172,6 +172,7 @@
             ['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 @@
         ];
 
         // 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'];