8000 [Debug][ErrorHandler] fix operator precedence · symfony/debug@1a69249 · GitHub
[go: up one dir, main page]

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

Commit 1a69249

Browse files
guilliamxaviernicolas-grekas
authored andcommitted
[Debug][ErrorHandler] fix operator precedence
1 parent 60d1b67 commit 1a69249

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
@@ -354,7 +354,7 @@ public function screamAt($levels, $replace = false)
354354
*/
355355
private function reRegister(int $prev)
356356
{
357-
if ($prev !== $this->thrownErrors | $this->loggedErrors) {
357+
if ($prev !== ($this->thrownErrors | $this->loggedErrors)) {
358358
$handler = set_error_handler('is_int');
359359
$handler = \is_array($handler) ? $handler[0] : null;
360360
restore_error_handler();

0 commit comments

Comments
 (0)
0