Skip to content
This repository has been archived by the owner on Dec 9, 2023. It is now read-only.

Commit

Permalink
[Debug][ErrorHandler] fix operator precedence
Browse files Browse the repository at this point in the history
  • Loading branch information
guilliamxavier authored and nicolas-grekas committed Jul 28, 2022
1 parent 60d1b67 commit 1a69249
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ErrorHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit 1a69249

Please sign in to comment.