diff vendor/psy/psysh/src/CodeCleaner/CalledClassPass.php @ 17:129ea1e6d783

Update, including to Drupal core 8.6.10
author Chris Cannam
date Thu, 28 Feb 2019 13:21:36 +0000
parents 5fb285c0d0e3
children
line wrap: on
line diff
--- a/vendor/psy/psysh/src/CodeCleaner/CalledClassPass.php	Tue Jul 10 15:07:59 2018 +0100
+++ b/vendor/psy/psysh/src/CodeCleaner/CalledClassPass.php	Thu Feb 28 13:21:36 2019 +0000
@@ -58,9 +58,9 @@
                 return;
             }
 
-            $name = strtolower($node->name);
-            if (in_array($name, ['get_class', 'get_called_class'])) {
-                $msg = sprintf('%s() called without object from outside a class', $name);
+            $name = \strtolower($node->name);
+            if (\in_array($name, ['get_class', 'get_called_class'])) {
+                $msg = \sprintf('%s() called without object from outside a class', $name);
                 throw new ErrorException($msg, 0, E_USER_WARNING, null, $node->getLine());
             }
         }
@@ -78,6 +78,6 @@
 
     private function isNull(Node $node)
     {
-        return $node->value instanceof ConstFetch && strtolower($node->value->name) === 'null';
+        return $node->value instanceof ConstFetch && \strtolower($node->value->name) === 'null';
     }
 }