From 1a692492190773c5310bc7877cb590c04c2f05be 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 67f526d..fe425e0 100644 --- a/ErrorHandler.php +++ b/ErrorHandler.php @@ -354,7 +354,7 @@ public function screamAt($levels, $replace = false) */ private function reRegister(int $prev) { - 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();