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

This commit is contained in:
Julius Härtl 2021-07-13 08:52:18 +02:00 committed by GitHub
commit e1f644a2ae
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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;