reference/reflection/reflectionmethod/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="reflectionmethod.setaccessible" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
5
4
<refnamediv>
6
5
<refname>ReflectionMethod::setAccessible</refname>
...
...
@@ -9,13 +8,18 @@
9
8

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

21
25
<refsect1 role="parameters">
...
...
@@ -85,7 +89,6 @@ Fatal error: Uncaught Error: Call to private method MyClass::foo() from global s
85
89
</para>
86
90
</refsect1>
87
91
</refentry>
88
-

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