From 1836a1e31ca4ae4432b52832b6839bbec78ef23c Mon Sep 17 00:00:00 2001 From: Nicolas Grekas Date: Tue, 22 Aug 2023 18:05:30 +0200 Subject: [PATCH] [HttpKernel] Fix checking for the runtime mode in DebugLoggerConfigurator --- .../Component/HttpKernel/Log/DebugLoggerConfigurator.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } } 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