Skip to content

Conversation

@danmichaelo
Copy link
Contributor

Starting from PHP 7.2, you get a warning on line 111, because $this->children is NULL, which is not countable:

https://github.com/lib16/xml-builder-php/blob/master/src/Xml.php#L111

This PR fixes it by initializing it as an array in the constructor.

@hoffmann-oss hoffmann-oss merged commit 0d1c44b into lib16:master Apr 5, 2020
@hoffmann-oss
Copy link
Member

Thanks!

@danmichaelo danmichaelo deleted the patch-1 branch April 6, 2020 02:27
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