com web/bugs: Fix return value here: src/Utils/Versions/Client.php

From: Date: Fri, 20 Mar 2020 12:30:22 +0000
Subject: com web/bugs: Fix return value here: src/Utils/Versions/Client.php
Groups: php.webmaster 
Request: Send a blank email to php-webmaster+get-28564@lists.php.net to get a copy of this message
Commit: 465b722175908415d049c1f0e2962eca41ec3ea7 Author: Rasmus Lerdorf <rasmus@lerdorf.com> 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) ?? []; } }

« previous php.webmaster (#28564) next »