-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Avoid latest version of phpunit mock object #2476
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
Conversation
That way, people can still work on their PR until the build is fixed.
What is the issue leading to this? |
Not sure yet… in Sonata we use |
|
I think it is a different issues : these are php warnings, not phpunit warnings. |
In Sonata it came from the fact we did not use |
Which seems to be the problem too in the case of this lib, see https://github.com/doctrine/dbal/blob/master/tests/Doctrine/Tests/DBAL/ConnectionTest.php#L105 , for instance. Related issue : sebastianbergmann/phpunit-mock-objects#321 |
Then let's fix the test rather than blocking the dep (which will lead to more issues down the line) |
I don't have the time right now, that's why I'm suggesting this temporary workaround, but sure, the tests (plural, that's why I think it will be long) have to be fixed properly and the commit in this PR reverted. Meanwhile, having green builds will allow other contributions to be merged (like #2473 , which I wrote this morning). |
I can commit to fix it properly one evening this week though. |
Closing here meanwhile then. Sorry, workarounds are not something that I will merge, unless we are really cornered inside a tight solution space. |
@greg0ire thanks if you can submit further patches though! |
No problem, I understand. I should be able to fix that properly tomorrow night |
That way, people can still work on their PR until the build is fixed.
Workaround for #2475 (not a proper fix)