File tree Expand file tree Collapse file tree 1 file changed +1
-8
lines changed
Expand file tree Collapse file tree 1 file changed +1
-8
lines changed Original file line number Diff line number Diff line change 1111
1212namespace Symfony \Component \HttpKernel \EventListener ;
1313
14- use Psr \Log \LoggerInterface ;
1514use Symfony \Component \Console \ConsoleEvents ;
1615use Symfony \Component \Console \Event \ConsoleEvent ;
1716use Symfony \Component \Console \Output \ConsoleOutputInterface ;
@@ -38,16 +37,10 @@ class DebugHandlersListener implements EventSubscriberInterface
3837 private bool $ hasTerminatedWithException = false ;
3938
4039 /**
41- * @param bool $webMode
4240 * @param callable|null $exceptionHandler A handler that must support \Throwable instances that will be called on Exception
4341 */
44- public function __construct (?callable $ exceptionHandler = null , bool | LoggerInterface | null $ webMode = null )
42+ public function __construct (?callable $ exceptionHandler = null , ? bool $ webMode = null )
4543 {
46- if ($ webMode instanceof LoggerInterface) {
47- // BC with Symfony 5
48- $ webMode = null ;
49- }
50-
5144 $ handler = set_exception_handler ('var_dump ' );
5245 $ this ->earlyHandler = \is_array ($ handler ) ? $ handler [0 ] : null ;
5346 restore_exception_handler ();
You can’t perform that action at this time.
0 commit comments