Commit 2696e9e
committed
minor #1726 Do not call Reflection*::setAccessible() (W0rma)
This PR was merged into the 1.x branch.
Discussion
----------
Do not call Reflection*::setAccessible()
> As of PHP 8.1.0, calling this method has no effect; all methods are invokable by default.
(https://www.php.net/manual/en/reflectionmethod.setaccessible.php and https://www.php.net/manual/en/reflectionproperty.setaccessible.php).
There're even plans to deprecate the method in PHP 8.5: https://wiki.php.net/rfc/deprecations_php_8_5#extreflection_deprecations
Commits
-------
c55d785 Remove noop setAccessible() call1 file changed
+0
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
155 | 155 | | |
156 | 156 | | |
157 | 157 | | |
158 | | - | |
159 | 158 | | |
160 | 159 | | |
161 | 160 | | |
| |||
0 commit comments