From a6b09b8c53ac68723f18e6bbbe76779ba25a42e8 Mon Sep 17 00:00:00 2001 From: Louis-Arnaud Catoire Date: Tue, 23 Dec 2025 14:48:12 +0100 Subject: [PATCH] Update ReflectionClass::setStaticPropertyValue documentation for visibility change --- .../reflectionclass/setstaticpropertyvalue.xml | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/reference/reflection/reflectionclass/setstaticpropertyvalue.xml b/reference/reflection/reflectionclass/setstaticpropertyvalue.xml index 7c174a085360..612525566b01 100644 --- a/reference/reflection/reflectionclass/setstaticpropertyvalue.xml +++ b/reference/reflection/reflectionclass/setstaticpropertyvalue.xml @@ -3,7 +3,7 @@ ReflectionClass::setStaticPropertyValue - Sets public static property value + Sets static property value @@ -14,12 +14,11 @@ mixedvalue - Sets the value of a public static property. - If the property is private or protected, the method will fail. + Sets the value of a static property, regardless of its visibility. - ReflectionProperty::setValue allows setting - the value of public, private, and protected properties. + ReflectionProperty::setValue can also be + used to set the value of static properties.allows setting. @@ -73,6 +72,12 @@ threw a ReflectionException. + + 7.4.9 + + This method can now set static properties regardless of their visibility. + +