Updated Drupal to 8.6. This goes with the following updates because it's possible...
[yaffs-website] / vendor / psy / psysh / src / TabCompletion / Matcher / ConstantsMatcher.php
index ddd8bcb0c48e73f3d6dbb796459f507537fbb860..71be18f58c65009456f4735aeda57ccd7f1a25a4 100644 (file)
@@ -27,7 +27,7 @@ class ConstantsMatcher extends AbstractMatcher
     {
         $const = $this->getInput($tokens);
 
-        return array_filter(array_keys(get_defined_constants()), function ($constant) use ($const) {
+        return \array_filter(\array_keys(\get_defined_constants()), function ($constant) use ($const) {
             return AbstractMatcher::startsWith($const, $constant);
         });
     }
@@ -37,8 +37,8 @@ class ConstantsMatcher extends AbstractMatcher
      */
     public function hasMatched(array $tokens)
     {
-        $token     = array_pop($tokens);
-        $prevToken = array_pop($tokens);
+        $token     = \array_pop($tokens);
+        $prevToken = \array_pop($tokens);
 
         switch (true) {
             case self::tokenIs($prevToken, self::T_NEW):