Skip to content

Commit

Permalink
Merge pull request #27631 from yan12125/php8-fix-error-reporting
Browse files Browse the repository at this point in the history
  • Loading branch information
juliushaertl authored Jul 13, 2021
2 parents 3860dad + 16c4991 commit e1f644a
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 e1f644a

Please sign in to comment.