Skip to content

Conversation

@johnwedgbury
Copy link
Contributor

In some cases $this->objects() can be null in an AbstractObjectCollection.

This throws:

TypeError
ArrayIterator::__construct(): Argument #1 ($array) must be of type array, null given

This PR forces an empty array in these cases.

@howyi
Copy link
Owner

howyi commented Apr 19, 2022

@johnwedgbury THANK YOU!

@howyi howyi merged commit 17dae68 into howyi:master Apr 19, 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.

2 participants