mirror of
https://github.com/nextcloud/server.git
synced 2026-06-11 09:42:09 -04:00
Merge pull request #27939 from yan12125/backport/27631/stable21
[stable21] Correctly skip suppressed errors in PHP 8.0
This commit is contained in:
commit
ba1f04df90
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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue