8000 minor #51457 [HttpKernel] Fix checking for the runtime mode in DebugL… · symfony/symfony@8462874 · GitHub
[go: up one dir, main page]

Skip to content

Commit 8462874

Browse files
minor #51457 [HttpKernel] Fix checking for the runtime mode in DebugLoggerConfigurator (ni 8000 colas-grekas)
This PR was merged into the 6.4 branch. Discussion ---------- [HttpKernel] Fix checking for the runtime mode in DebugLoggerConfigurator | Q | A | ------------- | --- | Branch? | 6.4 | Bug fix? | yes | New feature? | no | Deprecations? | no | Tickets | - | License | MIT | Doc PR | - Fixing #51284, my bad. Eating your own dog food works :) Commits ------- 1836a1e [HttpKernel] Fix checking for the runtime mode in DebugLoggerConfigurator
2 parents f354c1e + 1836a1e commit 8462874

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ class DebugLoggerConfigurator
2222

2323
public function __construct(DebugLoggerInterface $processor, bool $enable = null)
2424
{
25-
if ($enable ?? \in_array(\PHP_SAPI, ['cli', 'phpdbg'], true)) {
25+
if ($enable ?? !\in_array(\PHP_SAPI, ['cli', 'phpdbg'], true)) {
2626
$this->processor = $processor;
2727
}
2828
}

0 commit comments

Comments
 (0)
0