From b6b862529bf69dea04c5bb0e920a5ad938b97c84 Mon Sep 17 00:00:00 2001 From: hellofromTonya Date: Fri, 27 Sep 2024 19:53:22 +0000 Subject: [PATCH] Code Modernization: Fix trigger_error() with E_USER_ERROR deprecation in WP_Test_Stream::open(). PHP 8.4 deprecates the use of `trigger_errror()` with `E_USER_ERROR` as the error level, as there are a number of gotchas to this way of creating a `Fatal Error` (`finally` blocks not executing, destructors not executing). The recommended replacements are either to use exceptions or to do a hard `exit`. As this is a test-only class, do not have to take BC-breaks into account. Also, as this is a test helper, throwing a exception is the most appropriate solution. Reference: * https://wiki.php.net/rfc/deprecations_php_8_4#deprecate_passing_e_user_error_to_trigger_error Follow-up to [49230]. Props jrf. See #62061. Built from https://develop.svn.wordpress.org/trunk@59108 git-svn-id: http://core.svn.wordpress.org/trunk@58504 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/version.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wp-includes/version.php b/wp-includes/version.php index 6a80ec0dca..089661c0be 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -16,7 +16,7 @@ * * @global string $wp_version */ -$wp_version = '6.7-alpha-59107'; +$wp_version = '6.7-alpha-59108'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.