mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-16 00:48:54 +00:00
Fix #65042: Protected, private __invoke() magic method raises Warning
Patch provided by girgias. git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@346507 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
parent
8551026131
commit
8413d3c303
1 changed files with 6 additions and 0 deletions
|
@ -25,6 +25,12 @@
|
|||
with them.
|
||||
</para>
|
||||
|
||||
<note>
|
||||
<simpara>
|
||||
All magic methods <emphasis>MUST</emphasis> be declared as <literal>public</literal>
|
||||
</simpara>
|
||||
</note>
|
||||
|
||||
<caution>
|
||||
<simpara>
|
||||
PHP reserves all function names starting with __ as magical.
|
||||
|
|
Loading…
Reference in a new issue