Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mark reference and shasum of dist correctly as nullable #78

Merged
merged 3 commits into from Jan 26, 2022
Merged

Mark reference and shasum of dist correctly as nullable #78

merged 3 commits into from Jan 26, 2022

Conversation

jdrieghe
Copy link
Contributor

Fixed

  • In some cases, the shasum and reference property for the dist of a version is returned by packagist as null. (example: https://packagist.org/packages/roots/wordpress.json). Parsing this result threw a TypeError when trying to set null as a string during hydration of the Dist model.

All shared properties were overwritten anyway and the inheritance didn't really make sense
Copy link
Collaborator

@robbieaverill robbieaverill left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thank you

@robbieaverill robbieaverill merged commit cf3906e into KnpLabs:master Jan 26, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants