Skip to content

Commit df37834

Browse files
committed
the debug log processor must be a callable
1 parent 6c3d377 commit df37834

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/Symfony/Component/HttpKernel/Log/DebugLoggerConfigurator.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,12 @@
1818
*/
1919
class DebugLoggerConfigurator
2020
{
21-
private ?DebugLoggerInterface $processor = null;
21+
private ?\Closure $processor = null;
2222

23-
public function __construct(DebugLoggerInterface $processor, bool $enable = null)
23+
public function __construct(callable $processor, bool $enable = null)
2424
{
2525
if ($enable ?? !\in_array(\PHP_SAPI, ['cli', 'phpdbg', 'embed'], true)) {
26-
$this->processor = $processor;
26+
$this->processor = $processor(...);
2727
}
2828
}
2929

0 commit comments

Comments
 (0)