-
-
Notifications
You must be signed in to change notification settings - Fork 9.7k
Closed as not planned
Labels
Description
Symfony version(s) affected
7.3.1
Description
As discussed in #61169 and #61170
When PHP is upgraded above 8.3.x, every attempt to use cache:clear and certain custom Command objects results in CLI deprecation messages. These messages are emitted by var-exporter and Doctrine depending on the configuration. The only situation where they do not appear is with APP_ENV=dev
Various configuration changes and attempts to downgrade Doctrine were not successful. There might be workarounds involving Doctrine < 3.0 or doctrine @dev
however those did not seem appropriate for my project.
How to reproduce
- Install Symfony 7.3.0+ with PHP 8.4 and doctrine/orm 3.4 or 3.5.
- Set
APP_ENV=prod
- Attempt
bin/console cache:clear
Possible Solution
Downgrade to PHP 8.2 or 8.3.