Skip to content

Fix outdated documentation for ReflectionClass::setStaticPropertyValue visibility handling - #5057

Open
lacatoire wants to merge 1 commit into
php:masterfrom
lacatoire:reflection/setstaticpropertyvalue-doc
Open

Fix outdated documentation for ReflectionClass::setStaticPropertyValue visibility handling#5057
lacatoire wants to merge 1 commit into
php:masterfrom
lacatoire:reflection/setstaticpropertyvalue-doc

Conversation

@lacatoire

@lacatoire lacatoire commented Dec 23, 2025

Copy link
Copy Markdown
Member

Fixes #4600
The documentation for ReflectionClass::setStaticPropertyValue() is outdated.

@lacatoire
lacatoire force-pushed the reflection/setstaticpropertyvalue-doc branch from 0a87feb to a6b09b8 Compare December 23, 2025 13:52
Comment thread reference/reflection/reflectionclass/setstaticpropertyvalue.xml Outdated
</entry>
</row>
<row>
<entry>7.4.9</entry>

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

there should also be documentation of which minor (non-patch) version of PHP this was first changed in, e.g. it could be that 7.4.9 was released after 8.0.0 and thus PHP 8.0 only allows public static properties, or that 7.4.9 was before 8.0.0 and the change was also in 8.0.0, but without further detail a reader would need to investigate

@lacatoire lacatoire closed this Mar 2, 2026
@lacatoire lacatoire reopened this Aug 28, 2026
The visibility check was dropped in php-src 26aefb750a (bug #69804), first
released in 7.4.9 and present in 8.0.0 and later. Update the description and
add the corresponding changelog entry.
@lacatoire
lacatoire force-pushed the reflection/setstaticpropertyvalue-doc branch from 3f87114 to 58a50e7 Compare August 28, 2026 12:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

ReflectionClass::setStaticPropertyValue() documentation is outdated

2 participants