We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9e2a5ce commit beeb0b8Copy full SHA for beeb0b8
1 file changed
src/Package/Artifact/zig.php
@@ -26,6 +26,9 @@ public function downBinary(ArtifactDownloader $downloader): DownloadResult
26
$index_json = default_shell()->executeCurl('https://ziglang.org/download/index.json', retries: $downloader->getRetry());
27
$index_json = json_decode($index_json ?: '', true);
28
$latest_version = null;
29
+ if ($index_json === null) {
30
+ throw new DownloaderException('Failed to fetch Zig version index');
31
+ }
32
foreach ($index_json as $version => $data) {
33
if ($version !== 'master') {
34
$latest_version = $version;
0 commit comments