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: PHP 7.2 E_WARNING about sizeof() #84

Merged
merged 16 commits into from
Jan 3, 2018
Merged

Fix: PHP 7.2 E_WARNING about sizeof() #84

merged 16 commits into from
Jan 3, 2018

Conversation

mateusfccp
Copy link
Contributor

As PHP 7.2, an E_WARNING will be emitted when attempting to count() non-countable types (this includes the sizeof() alias function). [source]

Since null is a non-countable type, trying to use this bundle with bleeding PHP will throw a error when seeding database.

This pull request closes issue #79.

@mateusfccp
Copy link
Contributor Author

mateusfccp commented Jan 3, 2018

Although there's already a pull request about this on #82, I think my solution is better.

Further, as this previous solution hasn't been quoted on the issue I didn't see it. 😞

@eigan
Copy link
Contributor

eigan commented Jan 13, 2022

This PR reverted my fix from #72 . For some reason is it not showing in the "Files changed", but you can see the commit listed here. See a70f7ea39101c09a9ea0f3eddd2eefb80de9410

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

4 participants