Problem/Motivation
The Reflection*::setAccessible() is deprecated and throws deprecation warning since PHP 8.5 beta1.
General usage was removed in #3224941: Remove usage of setAccessible() when core requires PHP 8.1
Steps to reproduce
- https://wiki.php.net/rfc/deprecations_php_8_5#deprecate_reflectionsetacc...
- https://github.com/php/php-src/commit/922c225fbf1a5a7a2e43ebfdff8d91ad91...
Proposed resolution
- remove remaining usage
Remaining tasks
MR, review, commit
User interface changes
Introduced terminology
API changes
Data model changes
Release notes snippet
Issue fork drupal-3540525
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
- 3540525-remove-remaining-usage
changes, plain diff MR !12947
Comments
Comment #2
andypostUsage is
Comment #3
andypostComment #5
andypostComment #6
andypostComment #7
smustgrave commentedpretty straight forward, searched for setAccessible() and found 12 instances all covered by the MR.
Comment #8
alexpottCommitted and pushed 967e3af639f to 11.x and d6d4d9cd564 to 11.2.x. Thanks!
Comment #13
andypostFiled follow-up as one more left #3551109: Remove last usage of setAccessible()