Skip to content

Commit

Permalink
Merge pull request #27939 from yan12125/backport/27631/stable21
Browse files Browse the repository at this point in the history
[stable21] Correctly skip suppressed errors in PHP 8.0
  • Loading branch information
MichaIng authored Jul 14, 2021
2 parents ce9c2d2 + be51d83 commit ba1f04d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/private/Log/ErrorHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ public static function onException($exception) {

//Recoverable errors handler
public static function onError($number, $message, $file, $line) {
if (error_reporting() === 0) {
if (!(error_reporting() & $number)) {
return;
}
$msg = $message . ' at ' . $file . '#' . $line;
Expand Down

0 comments on commit ba1f04d

Please sign in to comment.