Skip to content

Commit

Permalink
avoid error if version source isn't set
Browse files Browse the repository at this point in the history
  • Loading branch information
tacman authored Jan 28, 2024
1 parent ff78d7a commit 7ba218e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Packagist/Api/Result/Factory.php
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ public function createPackageResults(array $package): Package
}
}

if ($version['source']) {
if ($version['source']??false) {
$version['source'] = $this->createResult(PackageSource::class, $version['source']);
}

Expand Down

0 comments on commit 7ba218e

Please sign in to comment.