Skip to content

Commit 30a6aea

Browse files
committed
PHP 8.4 | wp_debug_mode(): 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 b852d18 commit 30a6aea

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

php/utils-wp.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ function wp_debug_mode() {
4747
define( 'WP_DEBUG', true );
4848
}
4949

50-
error_reporting( E_ALL & ~E_DEPRECATED & ~E_STRICT );
50+
error_reporting( E_ALL & ~E_DEPRECATED );
5151
} else {
5252
if ( WP_DEBUG ) {
5353
error_reporting( E_ALL );

0 commit comments

Comments
 (0)