Skip to content

Commit 0a87feb

Browse files
committed
Update ReflectionClass::setStaticPropertyValue documentation for visibility change
1 parent 1987020 commit 0a87feb

File tree

1 file changed

+10
-5
lines changed

1 file changed

+10
-5
lines changed

reference/reflection/reflectionclass/setstaticpropertyvalue.xml

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<refentry xml:id="reflectionclass.setstaticpropertyvalue" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
44
<refnamediv>
55
<refname>ReflectionClass::setStaticPropertyValue</refname>
6-
<refpurpose>Sets public static property value</refpurpose>
6+
<refpurpose>Sets static property value</refpurpose>
77
</refnamediv>
88

99
<refsect1 role="description">
@@ -14,12 +14,11 @@
1414
<methodparam><type>mixed</type><parameter>value</parameter></methodparam>
1515
</methodsynopsis>
1616
<simpara>
17-
Sets the value of a public static property.
18-
If the property is private or protected, the method will fail.
17+
Sets the value of a static property, regardless of its visibility.
1918
</simpara>
2019
<simpara>
21-
<methodname>ReflectionProperty::setValue</methodname> allows setting
22-
the value of public, private, and protected properties.
20+
<methodname>ReflectionProperty::setValue</methodname> can also be
21+
used to set the value of static properties.allows setting.
2322
</simpara>
2423
</refsect1>
2524

@@ -73,6 +72,12 @@
7372
threw a <classname>ReflectionException</classname>.
7473
</entry>
7574
</row>
75+
<row>
76+
<entry>7.4.9</entry>
77+
<entry>
78+
This method can now set static properties regardless of their visibility.
79+
</entry>
80+
</row>
7681
</tbody>
7782
</tgroup>
7883
</informaltable>

0 commit comments

Comments
 (0)