Skip to content

Commit 8462874

Browse files
minor #51457 [HttpKernel] Fix checking for the runtime mode in DebugLoggerConfigurator (nicolas-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

Lines changed: 1 addition & 1 deletion
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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy