Skip to content

Commit

Permalink
Remove usage of E_STRICT
Browse files Browse the repository at this point in the history
This constant is deprecated in PHP 8.4. All E_STRICT warnings were
converted to E_NOTICE in PHP 8.0.

Psalm 5 still supports PHP 7.4, so _technically_ this constant could
still be useful for people running it on that version, but I suspect
most development and testing happens against 8.0+. It doesn't seem worth
more complicated version detection in this code to me.
  • Loading branch information
edsrzf committed Nov 24, 2024
1 parent bfbd53c commit 062e9fd
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/Psalm/Internal/ErrorHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
use function set_exception_handler;

use const E_ALL;
use const E_STRICT;
use const STDERR;

/**
Expand Down Expand Up @@ -59,7 +58,7 @@ private function __construct()

private static function setErrorReporting(): void
{
error_reporting(E_ALL | E_STRICT);
error_reporting(E_ALL);
ini_set('display_errors', '1');
}

Expand Down

0 comments on commit 062e9fd

Please sign in to comment.