From 7147e956b334eecadbd8eca8fbe596c287b1694c Mon Sep 17 00:00:00 2001 From: jrfnl Date: Wed, 18 Sep 2024 22:42:53 +0200 Subject: [PATCH] PHP 8.4 | Example code: remove use of `E_STRICT` 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 --- examples/common.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/common.php b/examples/common.php index 5086a13..9c92bec 100644 --- a/examples/common.php +++ b/examples/common.php @@ -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);