Updated Drupal to 8.6. This goes with the following updates because it's possible...
[yaffs-website] / vendor / psy / psysh / src / TabCompletion / Matcher / AbstractDefaultParametersMatcher.php
index 1dc0765afb4e5904d4ef5ef4392ae654dfcd2d39..c44af36ad2abed01b17152539ffd6a0d1ccfce9d 100644 (file)
@@ -36,7 +36,7 @@ abstract class AbstractDefaultParametersMatcher extends AbstractContextAwareMatc
             return [];
         }
 
-        return [implode(', ', $parametersProcessed) . ')'];
+        return [\implode(', ', $parametersProcessed) . ')'];
     }
 
     /**
@@ -50,8 +50,8 @@ abstract class AbstractDefaultParametersMatcher extends AbstractContextAwareMatc
      */
     private function valueToShortString($value)
     {
-        if (!is_array($value)) {
-            return json_encode($value);
+        if (!\is_array($value)) {
+            return \json_encode($value);
         }
 
         $chunks = [];
@@ -60,7 +60,7 @@ abstract class AbstractDefaultParametersMatcher extends AbstractContextAwareMatc
         $allSequential = true;
 
         foreach ($value as $key => $item) {
-            $allSequential = $allSequential && is_numeric($key) && $key === count($chunksSequential);
+            $allSequential = $allSequential && \is_numeric($key) && $key === \count($chunksSequential);
 
             $keyString  = $this->valueToShortString($key);
             $itemString = $this->valueToShortString($item);
@@ -71,6 +71,6 @@ abstract class AbstractDefaultParametersMatcher extends AbstractContextAwareMatc
 
         $chunksToImplode = $allSequential ? $chunksSequential : $chunks;
 
-        return '[' . implode(', ', $chunksToImplode) . ']';
+        return '[' . \implode(', ', $chunksToImplode) . ']';
     }
 }