[wp-trac] [WordPress Trac] #63061: Prepare for PHP 8.5
WordPress Trac
noreply at wordpress.org
Thu Sep 11 14:46:12 UTC 2025
#63061: Prepare for PHP 8.5
-----------------------------+--------------------------------
Reporter: johnbillion | Owner: (none)
Type: task (blessed) | Status: new
Priority: normal | Milestone: 6.9
Component: General | Version:
Severity: normal | Resolution:
Keywords: php85 has-patch | Focuses: php-compatibility
-----------------------------+--------------------------------
Comment (by swissspidy):
In [changeset:"60729" 60729]:
{{{
#!CommitTicketReference repository="" revision="60729"
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.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/63061#comment:16>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list