Skip to content

Commit edf2476

Browse files
authored
Merge pull request #1349 from phpbrew/issue_#1346
2 parents c3f4c89 + 9953268 commit edf2476

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/PhpBrew/ReleaseList.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ private static function downloadReleaseListFromOfficialSite($version, $max, Opti
168168
$file = DownloadFactory::getInstance(Logger::getInstance(), $options)->download($url);
169169
$json = file_get_contents($file);
170170

171-
return json_decode($json, true);
171+
return json_decode($json, true) ?? [];
172172
}
173173

174174
private static function buildReleaseListFromOfficialSite(OptionResult $options)

0 commit comments

Comments
 (0)