diff --git a/src/Log/ErrorLog.php b/src/Log/ErrorLog.php index 56219de648..444d030907 100644 --- a/src/Log/ErrorLog.php +++ b/src/Log/ErrorLog.php @@ -46,6 +46,10 @@ public function register(): void */ public function onError(int $errno, string $errstr, string $errfile, int $errline): void { + if (0 === (error_reporting() & $errno)) + { + return; + } if ($this->exceptionLevel & $errno) { throw new \ErrorException($errstr, 0, $errno, $errfile, $errline);