Skip to content

Commit

Permalink
Reflection(Property|Method)::setAccessible() no longer has effect
Browse files Browse the repository at this point in the history
  • Loading branch information
cmb69 committed Nov 26, 2021
1 parent c140370 commit 7b6a20e
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
5 changes: 5 additions & 0 deletions reference/reflection/reflectionmethod/setaccessible.xml
Expand Up @@ -16,6 +16,11 @@
<para>
Enables invoking of a protected or private method via the <methodname>ReflectionMethod::invoke</methodname> method.
</para>
<note>
<simpara>
As of PHP 8.1.0, calling this method has no effect; all methods are invokable by default.
</simpara>
</note>
</refsect1>

<refsect1 role="parameters">
Expand Down
5 changes: 5 additions & 0 deletions reference/reflection/reflectionproperty/setaccessible.xml
Expand Up @@ -17,6 +17,11 @@
Enables access to a protected or private property via the <methodname>ReflectionProperty::getValue</methodname> and
<methodname>ReflectionProperty::setValue</methodname> methods.
</para>
<note>
<simpara>
As of PHP 8.1.0, calling this method has no effect; all properties are accessible by default.
</simpara>
</note>
</refsect1>

<refsect1 role="parameters">
Expand Down

0 comments on commit 7b6a20e

Please sign in to comment.