From 390ed6da36fc02353c14877791b8abd6878b2acf Mon Sep 17 00:00:00 2001 From: Alexandre Daubois Date: Fri, 26 Jul 2024 15:02:51 +0200 Subject: [PATCH] [ErrorHandler] Fix `E_STRICT` logging level --- src/Symfony/Component/ErrorHandler/ErrorHandler.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Symfony/Component/ErrorHandler/ErrorHandler.php b/src/Symfony/Component/ErrorHandler/ErrorHandler.php index 76c5a9b5f3cf1..c0af3707cf89d 100644 --- a/src/Symfony/Component/ErrorHandler/ErrorHandler.php +++ b/src/Symfony/Component/ErrorHandler/ErrorHandler.php @@ -181,7 +181,7 @@ public function __construct(?BufferingLogger $bootstrappingLogger = null, bool $ { if (\PHP_VERSION_ID < 80400) { $this->levels[\E_STRICT] = 'Runtime Notice'; - $this->loggers[\E_STRICT] = [null, LogLevel::WARNING]; + $this->loggers[\E_STRICT] = [null, LogLevel::ERROR]; } if ($bootstrappingLogger) {