Updated Drupal to 8.6. This goes with the following updates because it's possible...
[yaffs-website] / vendor / psy / psysh / src / TabCompletion / Matcher / FunctionsMatcher.php
index 8bf1685626d1fb2d1efe71695f27c71bf72d18a0..3aa12a1f050c55602aa4f965cd35eb1332f4ad99 100644 (file)
@@ -27,10 +27,10 @@ class FunctionsMatcher extends AbstractMatcher
     {
         $func = $this->getInput($tokens);
 
-        $functions    = get_defined_functions();
-        $allFunctions = array_merge($functions['user'], $functions['internal']);
+        $functions    = \get_defined_functions();
+        $allFunctions = \array_merge($functions['user'], $functions['internal']);
 
-        return array_filter($allFunctions, function ($function) use ($func) {
+        return \array_filter($allFunctions, function ($function) use ($func) {
             return AbstractMatcher::startsWith($func, $function);
         });
     }
@@ -40,8 +40,8 @@ class FunctionsMatcher 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):