doc-en icon indicating copy to clipboard operation
doc-en copied to clipboard

`ReflectionClass::setStaticPropertyValue()` documentation is outdated

Open DanielEScherzer opened this issue 9 months ago • 1 comments

From manual page: https://php.net/reflectionclass.setstaticpropertyvalue


Sets the value of a public static property. If the property is private or protected, the method will fail.

From https://3v4l.org/mSHWS this has not been the case since 7.4.9+, see https://github.com/php/php-src/commit/26aefb750a614391cdb8ee3f63d66f46ed57bd55

Description should probably be

Sets the value of a static property, regardless of visibility.

With a changelog entry (not sure if the changelog should be 7.4.9, 8.0, or both?)

DanielEScherzer avatar Apr 10 '25 02:04 DanielEScherzer