Skip to content

Commit be73165

Browse files
guilliamxaviernicolas-grekas
authored andcommitted
[Debug][ErrorHandler] fix operator precedence
1 parent 5857d48 commit be73165

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ErrorHandler.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -374,7 +374,7 @@ public function screamAt(int $levels, bool $replace = false): int
374374
*/
375375
private function reRegister(int $prev): void
376376
{
377-
if ($prev !== $this->thrownErrors | $this->loggedErrors) {
377+
if ($prev !== ($this->thrownErrors | $this->loggedErrors)) {
378378
$handler = set_error_handler('is_int');
379379
$handler = \is_array($handler) ? $handler[0] : null;
380380
restore_error_handler();

0 commit comments

Comments
 (0)