Symfony version(s) affected: 4.4, 5.3, 5.4, 6.0
Description
In November, PHP 8.1 will be released and we should be prepared. In this PR, I'd like to track the efforts necessary to make all actively maintained branches ready for that release.
Ready means: if an application uses features of PHP 8.1, Symfony must not blow up.
We do already have a GitHub action that tests all branches with PHP 8.1. This action will always pass, but the output will show us if we're compatible yet: https://github.com/symfony/symfony/runs/2752054643
I will update this issue as we progress.
How to Contribute
If you want to join the effort, please start with the components and bridges. Fixing those will also fix many broken bundle tests. Reminder: We treat compatibility issues as bugs. As always, please fix bugs on the lowest maintained branch that suffers from the bug.
Progress
Components
Bridges
Bundles
Symfony version(s) affected: 4.4, 5.3, 5.4, 6.0
Description
In November, PHP 8.1 will be released and we should be prepared. In this PR, I'd like to track the efforts necessary to make all actively maintained branches ready for that release.
Ready means: if an application uses features of PHP 8.1, Symfony must not blow up.
We do already have a GitHub action that tests all branches with PHP 8.1. This action will always pass, but the output will show us if we're compatible yet: https://github.com/symfony/symfony/runs/2752054643
I will update this issue as we progress.
How to Contribute
If you want to join the effort, please start with the components and bridges. Fixing those will also fix many broken bundle tests. Reminder: We treat compatibility issues as bugs. As always, please fix bugs on the lowest maintained branch that suffers from the bug.
Progress
Components
newin initializers in PHP 8.1 #43260ApplicationTest::testRenderExceptionWithDoubleWidthCharactersSymfony\Component\Console\Tests\Style\SymfonyStyleTest::testOutputsfatal_with_nested_handlersfor PHP 8.1 #42761NumberToLocalizedStringTransformerTestInvalid IP Address: 0on PHP 8.1 #41622usleep()#42769BinaryFileResponseTest::testSetContentDispositionGeneratesSafeFallbackFilenameSplFileInfomock inHttpKernelBrowserTest#42618nulltopreg_match()#43062PseudoLocalizationTranslatorTest::testTransBridges
Bundles
nulltotrim()#42768