Commit: 465b722175908415d049c1f0e2962eca41ec3ea7 Author: Rasmus Lerdorf <[email protected]> Fri, 20 Mar 2020 05:30:22 -0700 Parents: 0110b485defe5fb1e8b3b05ce01060f79b4d7b11 Branches: master
Link: http://git.php.net/?p=web/bugs.git;a=commitdiff;h=465b722175908415d049c1f0e2962eca41ec3ea7 Log: Fix return value here Changed paths: M src/Utils/Versions/Client.php Diff: diff --git a/src/Utils/Versions/Client.php b/src/Utils/Versions/Client.php index bf91a9c..398840d 100644 --- a/src/Utils/Versions/Client.php +++ b/src/Utils/Versions/Client.php @@ -28,7 +28,7 @@ class Client { $json = file_get_contents($this->devVersionsUrl); - return json_decode($json, true); + return json_decode($json, true) ?? []; } /** @@ -38,6 +38,6 @@ class Client { $json = file_get_contents($this->stableVersionsUrl); - return json_decode($json, true); + return json_decode($json, true) ?? []; } } -- PHP Webmaster List Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
