Skip to content

Commit

Permalink
PHP 8.4 | Example code: remove use of E_STRICT
Browse files Browse the repository at this point in the history
The `E_STRICT` constant is deprecated as of PHP 8.4 and will be removed in PHP 9.0 (commit went in today).

The error level hasn't been in use since PHP 8.0 anyway and was only barely still used in PHP 7.x, so removing the exclusion from the `error_reporting()` setting in the example code shouldn't really make any difference in practice.

Ref:
* https://wiki.php.net/rfc/deprecations_php_8_4#remove_e_strict_error_level_and_deprecate_e_strict_constant
  • Loading branch information
jrfnl committed Sep 18, 2024
1 parent 46ddc1d commit 7147e95
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/common.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
die('Must run from command line');
}

error_reporting(E_ALL | E_STRICT);
error_reporting(E_ALL);
ini_set('display_errors', 1);
ini_set('log_errors', 0);
ini_set('html_errors', 0);
Expand Down

0 comments on commit 7147e95

Please sign in to comment.