8000 minor #57841 [ErrorHandler] Fix `E_STRICT` logging level (alexandre-d… · symfony/symfony@819411d · GitHub
[go: up one dir, main page]

Skip to content

Commit 819411d

Browse files
minor #57841 [ErrorHandler] Fix E_STRICT logging level (alexandre-daubois)
This PR was merged into the 7.1 branch. Discussion ---------- [ErrorHandler] Fix `E_STRICT` logging level | Q | A | ------------- | --- | Branch? | 7.1 | Bug fix? | yes | New feature? | no | Deprecations? | no | Issues | - | License | MIT Following #57799. In more recent branches, E_* errors logging level were raised from warnings to errors. Commits ------- 390ed6d [ErrorHandler] Fix `E_STRICT` logging level
2 parents 1dbc465 + 390ed6d commit 819411d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Symfony/Component/ErrorHandler/ErrorHandler.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@ public function __construct(?BufferingLogger $bootstrappingLogger = null, bool $
181181
{
182182
if (\PHP_VERSION_ID < 80400) {
183183
$this->levels[\E_STRICT] = 'Runtime Notice';
184-
$this->loggers[\E_STRICT] = [null, LogLevel::WARNING];
184+
$this->loggers[\E_STRICT] = [null, LogLevel::ERROR];
185185
}
186186

187187
if ($bootstrappingLogger) {

0 commit comments

Comments
 (0)
0