Skip to content

Commit 7147e95

Browse files
committed
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
1 parent 46ddc1d commit 7147e95

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/common.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
die('Must run from command line');
55
}
66

7-
error_reporting(E_ALL | E_STRICT);
7+
error_reporting(E_ALL);
88
ini_set('display_errors', 1);
99
ini_set('log_errors', 0);
1010
ini_set('html_errors', 0);

0 commit comments

Comments
 (0)