Code Modernization: Address reflection no-op function deprecations in PHP 8.5.

`Reflection*::setAccessible()` methods are no-ops since PHP 8.1. This commit adds conditional checks to only call these functions on older PHP versions.

Reference: [https://wiki.php.net/rfc/deprecations_php_8_5#deprecate_reflectionsetaccessible PHP RFC: Deprecations for PHP 8.5: Deprecate `Reflection*::setAccessible()`].

Props rishabhwp, swissspidy.
Fixes #63956.
See #63061.
Built from https://develop.svn.wordpress.org/trunk@60729


git-svn-id: http://core.svn.wordpress.org/trunk@60065 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Pascal Birchler
2025-09-11 14:47:34 +00:00
parent 13828ce4bf
commit a47a24cefc

View File

@@ -16,7 +16,7 @@
*
* @global string $wp_version
*/
$wp_version = '6.9-alpha-60728';
$wp_version = '6.9-alpha-60729';
/**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.