Updated Drupal to 8.6. This goes with the following updates because it's possible...
[yaffs-website] / vendor / psy / psysh / src / Sudo.php
index 3c0852395bfa763217c8caddb5e5fb69fea42783..be354bef9731779872005108f93140eb1158a5d8 100644 (file)
@@ -64,9 +64,9 @@ class Sudo
      */
     public static function callMethod($object, $method, $args = null)
     {
-        $args   = func_get_args();
-        $object = array_shift($args);
-        $method = array_shift($args);
+        $args   = \func_get_args();
+        $object = \array_shift($args);
+        $method = \array_shift($args);
 
         $refl = new \ReflectionObject($object);
         $reflMethod = $refl->getMethod($method);
@@ -122,9 +122,9 @@ class Sudo
      */
     public static function callStatic($class, $method, $args = null)
     {
-        $args   = func_get_args();
-        $class  = array_shift($args);
-        $method = array_shift($args);
+        $args   = \func_get_args();
+        $class  = \array_shift($args);
+        $method = \array_shift($args);
 
         $refl = new \ReflectionClass($class);
         $reflMethod = $refl->getMethod($method);