diff --git a/src/Symfony/Component/HttpKernel/Log/DebugLoggerConfigurator.php b/src/Symfony/Component/HttpKernel/Log/DebugLoggerConfigurator.php index 53eb0340f969f..b3e408af84a06 100644 --- a/src/Symfony/Component/HttpKernel/Log/DebugLoggerConfigurator.php +++ b/src/Symfony/Component/HttpKernel/Log/DebugLoggerConfigurator.php @@ -22,7 +22,7 @@ class DebugLoggerConfigurator public function __construct(DebugLoggerInterface $processor, bool $enable = null) { - if ($enable ?? \in_array(\PHP_SAPI, ['cli', 'phpdbg'], true)) { + if ($enable ?? !\in_array(\PHP_SAPI, ['cli', 'phpdbg'], true)) { $this->processor = $processor; } }
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: