Updated Drupal to 8.6. This goes with the following updates because it's possible...
[yaffs-website] / vendor / psy / psysh / src / Formatter / CodeFormatter.php
index 5ef195dffdb50f7e1eb3426f67bc4ed9db8c7188..2ac37cc9da0fa46d15c27b7b7a8b81143a272b0d 100644 (file)
@@ -38,11 +38,11 @@ class CodeFormatter implements Formatter
         $colorMode = $colorMode ?: Configuration::COLOR_MODE_AUTO;
 
         if ($fileName = $reflector->getFileName()) {
-            if (!is_file($fileName)) {
+            if (!\is_file($fileName)) {
                 throw new RuntimeException('Source code unavailable');
             }
 
-            $file  = file_get_contents($fileName);
+            $file  = \file_get_contents($fileName);
             $start = $reflector->getStartLine();
             $end   = $reflector->getEndLine() - $start;