Description
Symfony version(s) affected
(4.4), 5.3, 5.4, 6.0, 6.1, 6.2
Description
In November 2022, PHP 8.2 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.2, Symfony must not blow up.
We do already have a GitHub action that tests all branches with PHP 8.2. This action will constantly monitor Symfony's compatibility with the current state of PHP 8.2.
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
- Asset
- BrowserKit
- Cache
- Config
- Console
- CssSelector
- Debug
- DependencyInjection
-
ContainerBuilderTest
,PhpDumperTest
: Creation of dynamic property is deprecated - Fix deprecations on PHP 8.2 #45532
- [DependencyInjection] Fail gracefully when attempting to autowire composite types #46973
-
- DomCrawler
- Dotenv
- ErrorHandler
- EventDispatcher
- ExpressionLanguage
- Filesystem
- Finder
- Form
- HttpClient
- HttpFoundation
- HttpKernel
- Inflector
- Intl
- Ldap
- Lock
- Creation of dynamic property
DateTime::*
is deprecated
- Creation of dynamic property
- Mailer
- Messenger
- Mime
- Notifier
- OptionsResolver
- PasswordHasher
- Process
- PropertyAccess
- PropertyInfo
- RateLimiter
- Routing
- SecurityCore
- SecurityCsrf
- SecurityGuard
- SecurityHttp
- Serializer
-
ObjectNormalizerTest
: Creation of dynamic property is deprecated - Fix deprecations on PHP 8.2 #45532
-
- Semaphore
- Stopwatch
- String
- Templating
- Translation
- Uid
- Validator
- VarDumper
- PHP 8.2: mb_convert_encoding(): Handling HTML entities via mbstring is deprecated #44281
-
CliDumperTest
,HtmlDumperTest
,SplCasterTest
: Creation of dynamic property is deprecated - Fix deprecations on PHP 8.2 #45532
- [VarDumper] Add a test case for nesting intersection and union types #46967
- VarExporter
-
InstantiatorTest
,VarExporterTest
: Creation of dynamic property is deprecated - Fix deprecations on PHP 8.2 #45532
-
- WebLink
- Workflow
- Creation of dynamic property
Symfony\Component\Filesystem\Tests\Fixtures\MockStream\MockStream::$context
is deprecated
- Creation of dynamic property
- Yaml
Bridges
- Doctrine
-
UniqueEntityValidatorTest
: Creation of dynamic property is deprecated
-
- Monolog
- PhpUnit
- ProxyManager
-
ProxyDumperTest
: Creation of dynamic property is deprecated - Fix deprecations on PHP 8.2 #45532
-
- Twig
Bundles
- DebugBundle
- FrameworkBundle
- PHP 8.2: mb_convert_encoding(): Handling HTML entities via mbstring is deprecated #44281
- Creation of dynamic property
Doctrine\Common\Annotations\PsrCachedReader::$cacheProviderBackup
is deprecated - Fix deprecations on PHP 8.2 #45532
- [FrameworkBundle] Fix tests that use deprecated callable syntax #46970
- SecurityBundle
- TwigBundle
- WebProfilerBundle
- PHP 8.2: mb_convert_encoding(): Handling HTML entities via mbstring is deprecated #44281
-
ProfilerControllerTest
: Creation of dynamic property is deprecated
- WebServerBundle