Problem/Motivation
Since PHP 8.1 setAccessible()
method is no-op
https://github.com/php/php-src/blob/php-8.1.0beta1/UPGRADING#L486-L490
It's widely used in tests
Steps to reproduce
visit
- https://github.com/php/php-src/blob/php-8.1.0beta1/ext/reflection/php_re...
- https://github.com/php/php-src/blob/php-8.1.0beta1/ext/reflection/php_re...
Proposed resolution
Clean-up usage of the method when core require PHP 8.1
Remaining tasks
- agree and patch
- commit
User interface changes
no
API changes
no
Data model changes
no
Release notes snippet
Usage of ReflectionProperty::setAccessible() and ReflectionMethod::setAccessible() is removed