From 8413d3c303517d5e8307198d74cc227466bf6e28 Mon Sep 17 00:00:00 2001 From: Christoph Michael Becker Date: Mon, 31 Dec 2018 19:59:38 +0000 Subject: [PATCH] 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 --- language/oop5/magic.xml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/language/oop5/magic.xml b/language/oop5/magic.xml index a5a7aaa4c0..653002c339 100644 --- a/language/oop5/magic.xml +++ b/language/oop5/magic.xml @@ -25,6 +25,12 @@ with them. + + + All magic methods MUST be declared as public + + + PHP reserves all function names starting with __ as magical.