Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork9.7k
[PHPUnitBridge] Mute deprecations triggered from phpunit#32443
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Uh oh!
There was an error while loading.Please reload this page.
Conversation
Uh oh!
There was an error while loading.Please reload this page.
src/Symfony/Bridge/PhpUnit/DeprecationErrorHandler/Deprecation.php OutdatedShow resolvedHide resolved
Uh oh!
There was an error while loading.Please reload this page.
greg0ire commentedJul 8, 2019
@phansys, please review, and maybe test? |
phansys commentedJul 10, 2019
|
greg0ire commentedJul 10, 2019
Thanks for this, looks like it does not work yet. I will try to make your PoC run locally and debug this :) |
greg0ire commentedJul 10, 2019
status: needs work |
greg0ire commentedJul 10, 2019
Ah wait… the way to properly test this would be do add |
greg0ire commentedJul 10, 2019
I created my own PoC, but it does not work either… will have to investigatehttps://travis-ci.org/symfony/symfony/jobs/556660318 |
b7a96eb toa686300Comparegreg0ire commentedJul 11, 2019 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
Ok so I have fixed most occurences of the deprecation. Some remain because of
or because of the deprecation serialization system (I have to work on that one, I can probably reuse the |
greg0ire commentedJul 11, 2019
Actually, I don't think I should attempt to fix that one: I don't have enough information to achieve it in a robust manner: The interesting part here is |
greg0ire commentedJul 11, 2019
There are also a bunch of deprecations that don't seem to go through the bridge at all in the |
nicolas-grekas commentedJul 15, 2019
Checking for |
b28be9f to69ba9d0Comparegreg0ire commentedJul 15, 2019
Done. Here is what it looks like on my PoC:https://travis-ci.org/greg0ire/symfony/jobs/559138971
|
greg0ire commentedJul 15, 2019
Status: needs review |
greg0ire commentedJul 16, 2019 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
I met with Nicolas, and we established that I need to take care of the deprecations not going through the bridge error handler in the Debug component. We also established I need to make a separate PR to backport this to 3.4, where the code for the bridge is very different. |
greg0ire commentedJul 16, 2019
Status: needs work |
greg0ire commentedJul 16, 2019
Ok now we're only left with the Messenger deprecation, which should probably be fixed in another PR:https://travis-ci.org/greg0ire/symfony/jobs/559682090 Status: needs review |
nicolas-grekas left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
thanks, let's fix the Messenger deprecation in the same PR, enough bureaucracy :)
src/Symfony/Bridge/PhpUnit/DeprecationErrorHandler/Deprecation.php OutdatedShow resolvedHide resolved
Uh oh!
There was an error while loading.Please reload this page.
src/Symfony/Bridge/PhpUnit/DeprecationErrorHandler/Deprecation.php OutdatedShow resolvedHide resolved
Uh oh!
There was an error while loading.Please reload this page.
src/Symfony/Bridge/PhpUnit/Tests/DeprecationErrorHandler/DeprecationTest.php OutdatedShow resolvedHide resolved
Uh oh!
There was an error while loading.Please reload this page.
src/Symfony/Bridge/PhpUnit/Tests/DeprecationErrorHandler/DeprecationTest.php OutdatedShow resolvedHide resolved
Uh oh!
There was an error while loading.Please reload this page.
src/Symfony/Bridge/PhpUnit/Tests/DeprecationErrorHandler/DeprecationTest.php OutdatedShow resolvedHide resolved
Uh oh!
There was an error while loading.Please reload this page.
src/Symfony/Bridge/PhpUnit/Tests/DeprecationErrorHandler/DeprecationTest.php OutdatedShow resolvedHide resolved
Uh oh!
There was an error while loading.Please reload this page.
54df46c to8724a39Comparegreg0ire commentedJul 17, 2019
Ok! Done. Here is a proof of that claim:https://travis-ci.org/greg0ire/symfony/jobs/560211283 Please review again :) |
greg0ire commentedJul 18, 2019
Nicolas has realized that I actually don't need to do that PR since 3.4 is tested with the version 4 of the bridge, which will contain the fix. A separate PR has been done regarding the Debug deprecations:#32592 As for the Messenger deprecation, the fix should stay in this PR since there is no Messenger on 3.4. |
nicolas-grekas commentedJul 18, 2019
Can you please rebase? |
greg0ire commentedJul 18, 2019
Done |
nicolas-grekas commentedJul 18, 2019
Thank you@greg0ire. |
…greg0ire)This PR was merged into the 4.3 branch.Discussion----------[PHPUnitBridge] Mute deprecations triggered from phpunit| Q | A| ------------- | ---| Branch? | 4.3| Bug fix? | yes| New feature? | no| BC breaks? | no| Deprecations? | no| Tests pass? | yes| Fixed tickets | n/a| License | MIT| Doc PR | n/aRequest by@nicolas-grekas here:#32289 (comment)Commits-------a4ab13d Mute deprecations triggered from phpunit
Request by@nicolas-grekas here:#32289 (comment)