diff --git a/ErrorHandler.php b/ErrorHandler.php index 38841a2..491e129 100644 --- a/ErrorHandler.php +++ b/ErrorHandler.php @@ -359,7 +359,7 @@ public function screamAt(int $levels, bool $replace = false): int */ private function reRegister(int $prev): void { - if ($prev !== $this->thrownErrors | $this->loggedErrors) { + if ($prev !== ($this->thrownErrors | $this->loggedErrors)) { $handler = set_error_handler('is_int'); $handler = \is_array($handler) ? $handler[0] : null; restore_error_handler();