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
PHP 8.1 compatibility #10038
Comments
To run locally you probably have to run This will be resolved in composer 2.3 btw once we drop old PHP versions, so not sure it's worth investing much time in making it smoother to run on modern PHP, given the CI does it for us. |
As for the deprecation warnings, please do feel free to send more fixes if needed (I haven't checked the current state after merging your PRs). |
@Seldaek Thanks for getting back to me.
Symfony bridge does their own install when you run 💦 Test run command output (fold-out for details)
And if I hack the
I tried all sorts last week without luck and to be honest, don't really want to waste much more time on getting that working, so I guess I'll just have to use CI to debug for now. <rant>The experience trying to get these tests running locally on PHP 8.1 only went to confirm/reiterate everything I don't like about Symfony PHPUnit Bridge.... so glad that things work much simpler with PHPUnit Polyfills, but hey, I'm biased... Once support for PHP < 5.4 has been dropped, Composer may be able to use the Polyfills too 😂 </rant> Current state after the merges: still some 237 deprecation notices remaining. See the details in the fold-out below. I'm lining up some more fixes for you, but those will need much more critical review than the previous fixes, which were the obvious ones. Summary list of deprecation notices found in the test run after previous merges (fold out for details)
|
I think your last issue to run tests is that you need |
Ha! That was the missing piece of the puzzle ;-) I've submitted PR #10062 with the lessons learned from this to hopefully make this easier for other contributors in the future. |
The few warnings left are in symfony, and ignored at runtime (only reported in phpunit), so I think it's looking good now 👍🏻 |
@Seldaek Thank you so much for working with me to get this sorted. Much appreciated! |
I looked at that already, it is an issue in symfony/console 2.x, which will not be fixed. That's why it does not happen on the "latest" deps build, only lowest 8.1 build. |
@Seldaek Ah, that makes perfect sense. |
While trying to figure out whether there are any tests covering a particular PHP 8.1 issue I'd encountered elsewhere (see #10037), I toggled the value for
SYMFONY_DEPRECATIONS_HELPER
in thephpunit.xml.dist
file fromweak
tomax[self]=0
and found there are still some 458 deprecation notices to be addressed, with only 11 of those related to underlying dependencies of Composer.I've already fixed a few in #10036 (fixes 176 notices).
I'm willing to spend some more time on creating fixes for these issues, but wanted to check first if there is already work ongoing for this or not, to prevent interfering with ongoing efforts/double work.
As a side-note: fixing these issues is kind of slow going as I need to go via the CI to get the issue details as I have not been able to get the tests running locally on PHP 8.1 with Symfony PHPUnit Bridge.
It might be an idea to add some additional information to the
CONTRIBUTING
doc to guide people on how to get the tests running locally on PHP 8.0+ ?Summary list of deprecation notices found in the test run (fold out for details)
The text was updated successfully, but these errors were encountered: