reference/reflection/reflectionproperty/setaccessible.xml
ec2fe9a592f794978114ef5021db9f1d00c2e05d
...
...
@@ -1,6 +1,5 @@
1
1
<?xml version="1.0" encoding="utf-8"?>
2
2
<!-- $Revision$ -->
3
-

4
3
<refentry xml:id="reflectionproperty.setaccessible" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
5
4
<refnamediv>
6
5
<refname>ReflectionProperty::setAccessible</refname>
...
...
@@ -9,7 +8,7 @@
9
8

10
9
<refsect1 role="description">
11
10
&reftitle.description;
12
-
<methodsynopsis>
11
+
<methodsynopsis role="ReflectionProperty">
13
12
<modifier>public</modifier> <type>void</type><methodname>ReflectionProperty::setAccessible</methodname>
14
13
<methodparam><type>bool</type><parameter>accessible</parameter></methodparam>
15
14
</methodsynopsis>
...
...
@@ -17,6 +16,11 @@
17
16
Enables access to a protected or private property via the <methodname>ReflectionProperty::getValue</methodname> and
18
17
<methodname>ReflectionProperty::setValue</methodname> methods.
19
18
</para>
19
+
<note>
20
+
<simpara>
21
+
As of PHP 8.1.0, calling this method has no effect; all properties are accessible by default.
22
+
</simpara>
23
+
</note>
20
24
</refsect1>
21
25

22
26
<refsect1 role="parameters">
...
...
@@ -84,7 +88,6 @@ Fatal error: Uncaught Error: Cannot access private property MyClass::$foo in /in
84
88
</refsect1>
85
89

86
90
</refentry>
87
-

88
91
<!-- Keep this comment at the end of the file
89
92
Local variables:
90
93
mode: sgml
91
94