Updated Drupal to 8.6. This goes with the following updates because it's possible...
[yaffs-website] / vendor / psy / psysh / src / TabCompletion / Matcher / FunctionDefaultParametersMatcher.php
index 14c568e1ffac8714427b30a256342f7e3f4a7d12..66d9ea1dc7a0240da8c6b3b90eb162ff60ec3eb0 100644 (file)
@@ -15,9 +15,9 @@ class FunctionDefaultParametersMatcher extends AbstractDefaultParametersMatcher
 {
     public function getMatches(array $tokens, array $info = [])
     {
-        array_pop($tokens); // open bracket
+        \array_pop($tokens); // open bracket
 
-        $functionName = array_pop($tokens);
+        $functionName = \array_pop($tokens);
 
         try {
             $reflection = new \ReflectionFunction($functionName[1]);
@@ -32,19 +32,19 @@ class FunctionDefaultParametersMatcher extends AbstractDefaultParametersMatcher
 
     public function hasMatched(array $tokens)
     {
-        $openBracket = array_pop($tokens);
+        $openBracket = \array_pop($tokens);
 
         if ($openBracket !== '(') {
             return false;
         }
 
-        $functionName = array_pop($tokens);
+        $functionName = \array_pop($tokens);
 
         if (!self::tokenIs($functionName, self::T_STRING)) {
             return false;
         }
 
-        if (!function_exists($functionName[1])) {
+        if (!\function_exists($functionName[1])) {
             return false;
         }