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

Fix type error when electricity_collection is null #49

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

albinhubsch
Copy link

Billogram recently updated the api in a silent upgrade. The electricity_collection can now return null which made the CollectionForElectricityInvoices::createFromArray crash. This commit is not a complete fix but solves the current crash caused by Billogram returning null values.

According to the Billogram documentation electricity_collection is deprecated and should no longer be defined at the billogram level, but instead defined at item level.

Billogram recently updated the api in a silent upgrade. The `electricity_collection` can now return null which made the `CollectionForElectricityInvoices::createFromArray` crash. This commit is not a complete fix but solves the current crash caused by Billogram returning null values.

According to the Billogram documentation `electricity_collection` is deprecated and should no longer be defined at the billogram level, but instead defined at item level.
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

1 participant