bug #46327 [HttpKernel] Allow ErrorHandler ^5.0 to be used in HttpKernel 4.4 (mpdude)
bug #46327 [HttpKernel] Allow ErrorHandler ^5.0 to be used in HttpKernel 4.4 (mpdude)

This PR was merged into the 4.4 branch.

Discussion
----------

[HttpKernel] Allow ErrorHandler ^5.0 to be used in HttpKernel 4.4

| Q             | A
| ------------- | ---
| Branch?       | 4.4
| Bug fix?      | no
| New feature?  | yes
| Deprecations? | no
| Tickets       |
| License       | MIT
| Doc PR        |

I wonder what prevents us from allowing HttpKernel ^4.4 to be used with ErrorHandler ^5.0?

ErrorHandler 5.4 (IIRC) adds the incredibly helpful feature ❤️‍🔥 to emit deprecation notices for missing return type hints. This is valuable when trying to migrate larger codebases to make use of type hints.

Symfony 4.4 is the current LTS, and this PR would allow people to switch to ErrorHandler 5.4 while the rest of the code can still use Symfony 4.4 components.

Commits
-------

deae8b3eb5 Allow ErrorHandler ^5.0 to be used in HttpKernel

damienalexandre/symfony,paradajozsef/symfony,HeahDude/symfony,stof/symfony,tucksaun/symfony,damienalexandre/symfony,tucksaun/symfony,nicolas-grekas/symfony,stof/symfony,sgehrig/symfony,damienalexandre/symfony,paradajozsef/symfony,xabbuh/symfony,d-ph/symfony,nicolas-grekas/symfony,curry684/symfony,curry684/symfony,d-ph/symfony,HeahDude/symfony,HeahDude/symfony,xabbuh/symfony,symfony/symfony,d-ph/symfony,curry684/symfony,xabbuh/symfony,d-ph/symfony,derrabus/symfony,derrabus/symfony,xabbuh/symfony,damienalexandre/symfony,sgehrig/symfony,nicolas-grekas/symfony,paradajozsef/symfony,tucksaun/symfony,sgehrig/symfony,symfony/symfony,curry684/symfony,paradajozsef/symfony,sgehrig/symfony,HeahDude/symfony,symfony/symfony,stof/symfony,symfony/symfony,derrabus/symfony,nicolas-grekas/symfony,tucksaun/symfony,stof/symfony,derrabus/symfony