Symfony version(s) affected
6.0.*
Description
Backward compatibility was broken since commit - 574d651f55c3d7af445ebd2c6b336719dd6a9263
\Symfony\Component\HttpKernel\EventListener\ErrorListener::__construct - first argument can be null, just look at \Symfony\Component\HttpKernel\EventListener\ErrorListener::onKernelException method
How to reproduce
Pass null as first argument
Possible Solution
Add possibility to pass null value as first constructor argument
Additional Context
No response