Skip to content

Commit

Permalink
ensure GithubReleaseZipAdapter::findAssetId() returns string or null
Browse files Browse the repository at this point in the history
  • Loading branch information
cristianobaptista authored Mar 7, 2022
1 parent e1b3c22 commit 26a4062
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/PreCompilation/GithubReleaseZipAdapter.php
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,7 @@ private function findAssetId(string $assetsName, array $assetsData, string $repo
$id = $name ? ($assetData['id'] ?? null) : null;
if (($name === $assetsName) && $id) {
/** @var string */
return $id;
return (string) $id;
}
}

Expand Down

0 comments on commit 26a4062

Please sign in to comment.