-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
[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 our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
430589e
to
780579f
Compare
src/Symfony/Bridge/PhpUnit/DeprecationErrorHandler/Deprecation.php
Outdated
Show resolved
Hide resolved
@phansys, please review, and maybe test? |
|
Thanks for this, looks like it does not work yet. I will try to make your PoC run locally and debug this :) |
status: needs work |
Ah wait… the way to properly test this would be do add |
I created my own PoC, but it does not work either… will have to investigate https://travis-ci.org/symfony/symfony/jobs/556660318 |
b7a96eb
to
a686300
Compare
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 |
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 |
There are also a bunch of deprecations that don't seem to go through the bridge at all in the |
Checking for |
b28be9f
to
69ba9d0
Compare
Done. Here is what it looks like on my PoC: https://travis-ci.org/greg0ire/symfony/jobs/559138971
|
Status: needs review |
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. |
Status: needs work |
469d8be
to
9ae8ffe
Compare
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 |
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
Outdated
Show resolved
Hide resolved
src/Symfony/Bridge/PhpUnit/DeprecationErrorHandler/Deprecation.php
Outdated
Show resolved
Hide resolved
src/Symfony/Bridge/PhpUnit/Tests/DeprecationErrorHandler/DeprecationTest.php
Outdated
Show resolved
Hide resolved
src/Symfony/Bridge/PhpUnit/Tests/DeprecationErrorHandler/DeprecationTest.php
Outdated
Show resolved
Hide resolved
src/Symfony/Bridge/PhpUnit/Tests/DeprecationErrorHandler/DeprecationTest.php
Outdated
Show resolved
Hide resolved
src/Symfony/Bridge/PhpUnit/Tests/DeprecationErrorHandler/DeprecationTest.php
Outdated
Show resolved
Hide resolved
54df46c
to
8724a39
Compare
Ok! Done. Here is a proof of that claim: https://travis-ci.org/greg0ire/symfony/jobs/560211283 Please review again :) |
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. |
Can you please rebase? |
8724a39
to
a4ab13d
Compare
Done |
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/a Request by @nicolas-grekas here: #32289 (comment) Commits ------- a4ab13d Mute deprecations triggered from phpunit
Request by @nicolas-grekas here: #32289 (comment)