Skip to content

Commit 7a1ad87

Browse files
Rename constant
1 parent b424341 commit 7a1ad87

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Runner/ErrorHandler.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
final class ErrorHandler
4141
{
4242
private const UNHANDLEABLE_LEVELS = E_ERROR | E_PARSE | E_CORE_ERROR | E_CORE_WARNING | E_COMPILE_ERROR | E_COMPILE_WARNING;
43-
private const UNSUPPRESSEABLE_LEVELS = E_ERROR | E_PARSE | E_CORE_ERROR | E_COMPILE_ERROR | E_USER_ERROR | E_RECOVERABLE_ERROR;
43+
private const INSUPPRESSIBLE_LEVELS = E_ERROR | E_PARSE | E_CORE_ERROR | E_COMPILE_ERROR | E_USER_ERROR | E_RECOVERABLE_ERROR;
4444
private static ?self $instance = null;
4545
private ?Baseline $baseline = null;
4646
private bool $enabled = false;
@@ -56,7 +56,7 @@ public static function instance(): self
5656
*/
5757
public function __invoke(int $errorNumber, string $errorString, string $errorFile, int $errorLine): bool
5858
{
59-
$suppressed = (error_reporting() & ~self::UNSUPPRESSEABLE_LEVELS) === 0;
59+
$suppressed = (error_reporting() & ~self::INSUPPRESSIBLE_LEVELS) === 0;
6060

6161
if ($suppressed && (new ExcludeList)->isExcluded($errorFile)) {
6262
return false;

0 commit comments

Comments
 (0)