diff vendor/psy/psysh/src/VersionUpdater/GitHubChecker.php @ 4:a9cd425dd02b

Update, including to Drupal core 8.6.10
author Chris Cannam
date Thu, 28 Feb 2019 13:11:55 +0000
parents c75dbcec494b
children
line wrap: on
line diff
--- a/vendor/psy/psysh/src/VersionUpdater/GitHubChecker.php	Thu Feb 28 11:14:44 2019 +0000
+++ b/vendor/psy/psysh/src/VersionUpdater/GitHubChecker.php	Thu Feb 28 13:11:55 2019 +0000
@@ -24,7 +24,7 @@
      */
     public function isLatest()
     {
-        return version_compare(Shell::VERSION, $this->getLatest(), '>=');
+        return \version_compare(Shell::VERSION, $this->getLatest(), '>=');
     }
 
     /**
@@ -68,22 +68,22 @@
      */
     public function fetchLatestRelease()
     {
-        $context = stream_context_create([
+        $context = \stream_context_create([
             'http' => [
                 'user_agent' => 'PsySH/' . Shell::VERSION,
                 'timeout'    => 3,
             ],
         ]);
 
-        set_error_handler(function () {
+        \set_error_handler(function () {
             // Just ignore all errors with this. The checker will throw an exception
             // if it doesn't work :)
         });
 
-        $result = @file_get_contents(self::URL, false, $context);
+        $result = @\file_get_contents(self::URL, false, $context);
 
-        restore_error_handler();
+        \restore_error_handler();
 
-        return json_decode($result);
+        return \json_decode($result);
     }
 }