Updated Drupal to 8.6. This goes with the following updates because it's possible...
[yaffs-website] / vendor / psy / psysh / src / VarDumper / Presenter.php
index 400778ab244bb6f89993bd815f85fad68dd0e22b..4f821e0cd8acc043654f153cecad3e557123962f 100644 (file)
@@ -49,14 +49,14 @@ class Presenter
     public function __construct(OutputFormatter $formatter, $forceArrayIndexes = false)
     {
         // Work around https://github.com/symfony/symfony/issues/23572
-        $oldLocale = setlocale(LC_NUMERIC, 0);
-        setlocale(LC_NUMERIC, 'C');
+        $oldLocale = \setlocale(LC_NUMERIC, 0);
+        \setlocale(LC_NUMERIC, 'C');
 
         $this->dumper = new Dumper($formatter, $forceArrayIndexes);
         $this->dumper->setStyles($this->styles);
 
         // Now put the locale back
-        setlocale(LC_NUMERIC, $oldLocale);
+        \setlocale(LC_NUMERIC, $oldLocale);
 
         $this->cloner = new Cloner();
         $this->cloner->addCasters(['*' => function ($obj, array $a, Stub $stub, $isNested, $filter = 0) {
@@ -116,8 +116,8 @@ class Presenter
         }
 
         // Work around https://github.com/symfony/symfony/issues/23572
-        $oldLocale = setlocale(LC_NUMERIC, 0);
-        setlocale(LC_NUMERIC, 'C');
+        $oldLocale = \setlocale(LC_NUMERIC, 0);
+        \setlocale(LC_NUMERIC, 'C');
 
         $output = '';
         $this->dumper->dump($data, function ($line, $depth) use (&$output) {
@@ -125,12 +125,12 @@ class Presenter
                 if ('' !== $output) {
                     $output .= PHP_EOL;
                 }
-                $output .= str_repeat('  ', $depth) . $line;
+                $output .= \str_repeat('  ', $depth) . $line;
             }
         });
 
         // Now put the locale back
-        setlocale(LC_NUMERIC, $oldLocale);
+        \setlocale(LC_NUMERIC, $oldLocale);
 
         return OutputFormatter::escape($output);
     }