diff vendor/psy/psysh/src/TabCompletion/Matcher/FunctionDefaultParametersMatcher.php @ 4:a9cd425dd02b

Update, including to Drupal core 8.6.10
author Chris Cannam
date Thu, 28 Feb 2019 13:11:55 +0000
parents c75dbcec494b
children
line wrap: on
line diff
--- a/vendor/psy/psysh/src/TabCompletion/Matcher/FunctionDefaultParametersMatcher.php	Thu Feb 28 11:14:44 2019 +0000
+++ b/vendor/psy/psysh/src/TabCompletion/Matcher/FunctionDefaultParametersMatcher.php	Thu Feb 28 13:11:55 2019 +0000
@@ -15,9 +15,9 @@
 {
     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 @@
 
     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;
         }