Skip to content

Commit

Permalink
Update src/ErrorHandler.php
Browse files Browse the repository at this point in the history
Co-authored-by: Sergei Predvoditelev <[email protected]>
  • Loading branch information
xepozz and vjik authored Dec 21, 2024
1 parent 0257fda commit a5b892b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ErrorHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ public function register(): void
return true;

Check warning on line 134 in src/ErrorHandler.php

View workflow job for this annotation

GitHub Actions / mutation / PHP 8.1-ubuntu-latest

Escaped Mutant for Mutator "TrueValue": --- Original +++ New @@ @@ } if (!(error_reporting() & $severity)) { // This error code is not included in error_reporting. - return true; + return false; } $backtrace = debug_backtrace(0); array_shift($backtrace);
}

$backtrace = debug_backtrace();
$backtrace = debug_backtrace(0);
array_shift($backtrace);
throw new ErrorException($message, $severity, $severity, $file, $line, null, $backtrace);
});
Expand Down

0 comments on commit a5b892b

Please sign in to comment.