KnpLabs / packagist-api

PHP API for Packagist
MIT License
182 stars 46 forks source link

Downloads can be empty #84

Closed garak closed 2 years ago

garak commented 2 years ago

This is the same problem detected in #80, but for $downloads property.

JellyBellyDev commented 2 years ago

use case, package: happyr/translation-bundle

Cannot assign null to property Packagist\Api\Result\Package::$downloads of type Packagist\Api\Result\Package\Downloads
robbieaverill commented 2 years ago

That example package shows that favers can be null too, will adjust that also (edit: favers is already handled)