Skip to content

Commit fbc44f2

Browse files
minor symfony#52426 [HttpKernel] the debug log processor must be a callable (xabbuh)
This PR was merged into the 6.4 branch. Discussion ---------- [HttpKernel] the debug log processor must be a callable | Q | A | ------------- | --- | Branch? | 6.4 | Bug fix? | no | New feature? | no | Deprecations? | no | Issues | | License | MIT A Monolog processor must be a callable, but a `DebugLoggerInterface` implementation is not necessarily a callable. Commits ------- df37834 the debug log processor must be a callable
2 parents 35703d1 + df37834 commit fbc44f2

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)