Skip to content

Commit

Permalink
Merge pull request #27938 from yan12125/backport/27631/stable22
Browse files Browse the repository at this point in the history
[stable22] Correctly skip suppressed errors in PHP 8.0
  • Loading branch information
blizzz authored Jul 14, 2021
2 parents ca96a03 + 120fc8d commit f16a806
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 f16a806

Please sign in to comment.