From db8f74138c750e5d76a7f99b94cc3386fdf5ca0d Mon Sep 17 00:00:00 2001 From: Karoly Negyesi Date: Fri, 6 Nov 2015 18:16:40 +0000 Subject: [PATCH] Added a note about private and protected methods to callables git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@338094 c90b9560-bf6c-de11-be94-00142212c4b1 --- language/types/callable.xml | 21 +++++++++++---------- 1 file changed, 11 insertions(+), 10 deletions(-) diff --git a/language/types/callable.xml b/language/types/callable.xml index 577767f514..0add6d3334 100644 --- a/language/types/callable.xml +++ b/language/types/callable.xml @@ -2,7 +2,7 @@ Callbacks / Callables - + Callbacks can be denoted by callable type hint as of PHP 5.4. This documentation used callback type information for the same @@ -23,8 +23,8 @@ A PHP function is passed by its name as a string. Any built-in or user-defined function can be used, except language constructs such as: array, echo, - empty, eval, - exit, isset, + empty, eval, + exit, isset, list, print or unset. @@ -32,7 +32,8 @@ A method of an instantiated object is passed as an array containing an object at index 0 and the - method name at index 1. + method name at index 1. Accessing protected and private methods from + within a class is allowed. @@ -56,7 +57,7 @@ - +