mirror of
https://github.com/nextcloud/server.git
synced 2026-04-01 23:25:47 -04:00
Merge pull request #27631 from yan12125/php8-fix-error-reporting
This commit is contained in:
commit
e1f644a2ae
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