Updated Drupal to 8.6. This goes with the following updates because it's possible...
[yaffs-website] / vendor / psy / psysh / src / VarDumper / Dumper.php
index a6e9e87596fb011939956c9ff11597e6904f4ad1..cc13b265a5a1f6cbb96b9d60ad5140153be524e3 100644 (file)
@@ -67,20 +67,20 @@ class Dumper extends CliDumper
     protected function style($style, $value, $attr = [])
     {
         if ('ref' === $style) {
-            $value = strtr($value, '@', '#');
+            $value = \strtr($value, '@', '#');
         }
 
         $styled = '';
         $map = self::$controlCharsMap;
         $cchr = $this->styles['cchr'];
 
-        $chunks = preg_split(self::$controlCharsRx, $value, null, PREG_SPLIT_NO_EMPTY | PREG_SPLIT_DELIM_CAPTURE);
+        $chunks = \preg_split(self::$controlCharsRx, $value, null, PREG_SPLIT_NO_EMPTY | PREG_SPLIT_DELIM_CAPTURE);
         foreach ($chunks as $chunk) {
-            if (preg_match(self::$onlyControlCharsRx, $chunk)) {
+            if (\preg_match(self::$onlyControlCharsRx, $chunk)) {
                 $chars = '';
                 $i = 0;
                 do {
-                    $chars .= isset($map[$chunk[$i]]) ? $map[$chunk[$i]] : sprintf('\x%02X', ord($chunk[$i]));
+                    $chars .= isset($map[$chunk[$i]]) ? $map[$chunk[$i]] : \sprintf('\x%02X', \ord($chunk[$i]));
                 } while (isset($chunk[++$i]));
 
                 $chars = $this->formatter->escape($chars);