-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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 incompatibility w/ PHP7.2+ #6142
Conversation
Mock_ParserResult_*::getParameterMappings() was returning null, which was then passed to count() on Query.php:308, causing a "Parameter must be an array or an object that implements Countable" error.
@mbeccati that sounds like a |
Which is not what you'd want there, @lcobucci |
Got a link to the failure? I don't understand the reason for this change. Specifically, I don't understand why it fails on 7.2 only. |
@mbeccati We just don't care here if we stub everything or not, you might right when saying that we're just need to do that for the method
@Ocramius It's failing for |
@Ocramius https://revive.beccati.com/bamboo/browse/PHP-DOCTR-MAS-919/test/case/11810654 w/ php-src master, since count() has been restricted to work only on array|Countable. |
Merging, since I feel like digging further into this is just going to be more pain. The fix is simple/easy: let's roll with it, since it's a test-suite change only. |
Thanks @Ocramius. Since I've did that digging already, I'll try to write it down for posterity:
|
Mock_ParserResult_*::getParameterMappings() was returning null, which was then passed to count() on Query.php:308, causing a "Parameter must be an array or an object that implements Countable" error.