Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork9.6k
Closed
Description
Symfony version(s) affected
7.2.6
Description
When a deprecation error is raised while hitting any page, and the cache has just been cleared, the error is displayed directly on the screen, rather than just being logged. This may result in the red exception page with the "headers already sent" error if the page in question uses session.
How to reproduce
- Create a new Symfony project with the Symfony CLI tool using PHP version 8.4:
symfony new --webapp my_project
- Install a package that triggers deprecation errors on PHP 8.4, for example winzou/state-machine-bundle:
composer require winzou/state-machine-bundle:0.6.2
- Remove the cache and start the server:
rm -rf var/cache/*
,symfony serve
Possible Solution
No response
Additional Context
No response