#41572 [Opn->Csd]: Example 19.40: My_Reflection_Method::$visibility is string or array?
| From: | vrana@php.net | Date: | Fri, 17 Aug 2007 04:42:17 +0000 |
| Subject: | #41572 [Opn->Csd]: Example 19.40: My_Reflection_Method::$visibility is string or array? | ||
| References: | 1 | Groups: | php.doc |
| Request: | Send a blank email to phpdoc+get-969377511@lists.php.net to get a copy of this message | ||
ID: 41572
Updated by: vrana@php.net
Reported By: salsi at icosaedro dot it
-Status: Open
+Status: Closed
Bug Type: Documentation problem
PHP Version: Irrelevant
New Comment:
This bug has been fixed in the documentation's XML sources. Since the
online and downloadable versions of the documentation need some time
to get updated, we would like to ask you to be a bit patient.
Thank you for the report, and for helping us make our documentation
better.
Initialized to array().
Previous Comments:
------------------------------------------------------------------------
[2007-06-02 21:17:38] salsi at icosaedro dot it
Description:
------------
Manual page about the Reflection* classes, example 10.40 "Extending the
built-in classes". The property My_Reflection_Method::$visibility gets
initialized with an empty string, then an array generated by
Reflection::getModifierNames() is assigned. This confused me a bit
before I realized the returned value is, indeed, an array.
I suggest to modify this example so to save time to the future readers
either changing the initial value of the property to "array()" or adding
a join() to the value returned by getModifierNames().
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=41572&edit=1