From be731658121ef2d8be88f3a1ec938148a9237291 Mon Sep 17 00:00:00 2001 From: Guilliam Xavier Date: Thu, 28 Jul 2022 18:05:51 +0200 Subject: [PATCH] [Debug][ErrorHandler] fix operator precedence --- ErrorHandler.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ErrorHandler.php b/ErrorHandler.php index c4fa829..fba6f8c 100644 --- a/ErrorHandler.php +++ b/ErrorHandler.php @@ -374,7 +374,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();