Bug #65902 [Opn->Csd]: Document `use` Keyword for Anonymous Functions
Edit report at https://bugs.php.net/bug.php?id=65902&edit=1
ID: 65902
Updated by: krakjoe@php.net
Reported by: cbarna at theatlantic dot com
Summary: Document use Keyword for Anonymous Functions
-Status: Open
+Status: Closed
Type: Bug
Package: Documentation problem
PHP Version: Irrelevant
-Assigned To:
+Assigned To: krakjoe
Block user comment: N
Private report: N
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.
There is not a need to document the use construct just for anonymous functions. Instead
I have clarified the wording above the example mentioned, this should make the example clearer.
Previous Comments:
------------------------------------------------------------------------
[2013-10-22 08:26:58] krakjoe@php.net
Automatic comment from SVN on behalf of krakjoe
Revision: http://svn.php.net/viewvc/?view=revision&revision=331902
Log: #65902 clarify wording
------------------------------------------------------------------------
[2013-10-15 17:36:34] cbarna at theatlantic dot com
Put quotes around use in title.
------------------------------------------------------------------------
[2013-10-15 17:30:54] cbarna at theatlantic dot com
Description:
------------
http://php.net/manual/en/functions.anonymous.php
The documentation for anonymous functions is lacking any mention of the use keyword
introduced in PHP 5.3. However, the use keyword is used in a code sample without
comment. This is confusing for a user who stumbles upon the keyword and doesn't know what it
does.
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=65902&edit=1
Thread (3 messages)