Skip to content

Commit 132d8e4

Browse files
minor #52500 [HttpKernel] Fix DebugLoggerConfigurator (nicolas-grekas)
This PR was merged into the 6.4 branch. Discussion ---------- [HttpKernel] Fix DebugLoggerConfigurator | Q | A | ------------- | --- | Branch? | 6.4 | Bug fix? | no | New feature? | no | Deprecations? | no | Issues | - | License | MIT Issue introduced in #52426: by turning the callable into a closure, we broke the `instanceof` check later in the class. Commits ------- 33721f5 [HttpKernel] Fix DebugLoggerConfigurator
2 parents caf41fc + 33721f5 commit 132d8e4

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)