Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 1836a1e

Browse files
[HttpKernel] Fix checking for the runtime mode in DebugLoggerConfigurator
1 parent f354c1e commit 1836a1e

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)