Updated Drupal to 8.6. This goes with the following updates because it's possible...
[yaffs-website] / vendor / psy / psysh / test / CodeCleaner / ValidConstructorPassTest.php
index c0379b26b0252a1c6c548d282ddeaf38f5954aa2..4f7e40c44181eaa740814e2321669b78a6727eb0 100644 (file)
@@ -47,7 +47,7 @@ class ValidConstructorPassTest extends CodeCleanerTestCase
             ['class A { private static function a() {}}'],
         ];
 
-        if (version_compare(PHP_VERSION, '7.0', '>=')) {
+        if (\version_compare(PHP_VERSION, '7.0', '>=')) {
             $data[] = ['class A { public function A(): ?array {}}'];
             $data[] = ['class A { public function a(): ?array {}}'];
         }
@@ -82,7 +82,7 @@ class ValidConstructorPassTest extends CodeCleanerTestCase
             ['namespace B; class A { private static function A() {}}'],
         ];
 
-        if (version_compare(PHP_VERSION, '7.0', '>=')) {
+        if (\version_compare(PHP_VERSION, '7.0', '>=')) {
             $data[] = ['class A { public static function A() {} public function __construct() {}}'];
             $data[] = ['class A { private function __construct() {} public static function A(): ?array {}}'];
             $data[] = ['namespace B; class A { private static function A(): ?array {}}'];