Updated Drupal to 8.6. This goes with the following updates because it's possible...
[yaffs-website] / vendor / psy / psysh / src / ExecutionLoop / RunkitReloader.php
index 5706b79ad189cde89035d9258bf8a37e0d7d5c97..d80480b0af2eae43d7882f82d69ed1d55c3a21eb 100644 (file)
@@ -30,7 +30,7 @@ class RunkitReloader extends AbstractListener
      */
     public static function isSupported()
     {
-        return extension_loaded('runkit');
+        return \extension_loaded('runkit');
     }
 
     /**
@@ -62,11 +62,11 @@ class RunkitReloader extends AbstractListener
      */
     private function reload(Shell $shell)
     {
-        clearstatcache();
+        \clearstatcache();
         $modified = [];
 
-        foreach (get_included_files() as $file) {
-            $timestamp = filemtime($file);
+        foreach (\get_included_files() as $file) {
+            $timestamp = \filemtime($file);
 
             if (!isset($this->timestamps[$file])) {
                 $this->timestamps[$file] = $timestamp;
@@ -78,7 +78,7 @@ class RunkitReloader extends AbstractListener
             }
 
             if (!$this->lintFile($file)) {
-                $msg = sprintf('Modified file "%s" could not be reloaded', $file);
+                $msg = \sprintf('Modified file "%s" could not be reloaded', $file);
                 $shell->writeException(new ParseErrorException($msg));
                 continue;
             }
@@ -125,7 +125,7 @@ class RunkitReloader extends AbstractListener
     {
         // first try to parse it
         try {
-            $this->parser->parse(file_get_contents($file));
+            $this->parser->parse(\file_get_contents($file));
         } catch (\Exception $e) {
             return false;
         }