Skip to content

Commit 780b3fe

Browse files
committed
[HttpKernel] Remove legacy BC layer
1 parent 10e0595 commit 780b3fe

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

EventListener/DebugHandlersListener.php

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111

1212
namespace Symfony\Component\HttpKernel\EventListener;
1313

14-
use Psr\Log\LoggerInterface;
1514
use Symfony\Component\Console\ConsoleEvents;
1615
use Symfony\Component\Console\Event\ConsoleEvent;
1716
use 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();

0 commit comments

Comments
 (0)