Merge pull request #27631 from yan12125/php8-fix-error-reporting

pull/27565/head
Julius Härtl 2021-07-13 08:52:18 +07:00 committed by GitHub
commit e1f644a2ae
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

@ -85,7 +85,7 @@ class ErrorHandler {
//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;