Updated Drupal to 8.6. This goes with the following updates because it's possible...
[yaffs-website] / vendor / psy / psysh / src / CodeCleaner / StrictTypesPass.php
index a63fe75e7258cb829404562b767505c1d1ca8320..058a5a829031829e812cb7a5afe50e761e5c8b03 100644 (file)
@@ -36,7 +36,7 @@ class StrictTypesPass extends CodeCleanerPass
 
     public function __construct()
     {
-        $this->atLeastPhp7 = version_compare(PHP_VERSION, '7.0', '>=');
+        $this->atLeastPhp7 = \version_compare(PHP_VERSION, '7.0', '>=');
     }
 
     /**
@@ -75,10 +75,10 @@ class StrictTypesPass extends CodeCleanerPass
         }
 
         if ($prependStrictTypes) {
-            $first = reset($nodes);
+            $first = \reset($nodes);
             if (!$first instanceof Declare_) {
                 $declare = new Declare_([new DeclareDeclare('strict_types', new LNumber(1))]);
-                array_unshift($nodes, $declare);
+                \array_unshift($nodes, $declare);
             }
         }