Skip to content

Commit 33721f5

Browse files
[HttpKernel] Fix DebugLoggerConfigurator
1 parent e434a54 commit 33721f5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

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

2323
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 = \is_object($processor) ? $processor : $processor(...);
2727
}
2828
}
2929

0 commit comments

Comments
 (0)