diff --git a/src/Symfony/Component/HttpKernel/Log/DebugLoggerConfigurator.php b/src/Symfony/Component/HttpKernel/Log/DebugLoggerConfigurator.php index a6e61f622bf4..4271244ad97d 100644 --- a/src/Symfony/Component/HttpKernel/Log/DebugLoggerConfigurator.php +++ b/src/Symfony/Component/HttpKernel/Log/DebugLoggerConfigurator.php @@ -18,12 +18,12 @@ */ class DebugLoggerConfigurator { - private ?DebugLoggerInterface $processor = null; + private ?\Closure $processor = null; - public function __construct(DebugLoggerInterface $processor, bool $enable = null) + public function __construct(callable $processor, bool $enable = null) { if ($enable ?? !\in_array(\PHP_SAPI, ['cli', 'phpdbg', 'embed'], true)) { - $this->processor = $processor; + $this->processor = $processor(...); } }