Doc #65180 [Opn->Nab]: Closure::bindto() wrong method signature
| From: | krakjoe@php.net | Date: | Fri, 04 Oct 2013 17:20:57 +0000 |
| Subject: | Doc #65180 [Opn->Nab]: Closure::bindto() wrong method signature | ||
| References: | 1 | Groups: | php.doc.bugs |
| Request: | Send a blank email to doc-bugs+get-10414@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=65180&edit=1
ID: 65180
Updated by: krakjoe@php.net
Reported by: benjamin dot morel at gmail dot com
Summary: Closure::bindto() wrong method signature
-Status: Open
+Status: Not a bug
Type: Documentation Problem
Package: Documentation problem
Operating System: N/A
PHP Version: Irrelevant
Block user comment: N
Private report: N
New Comment:
The description is sufficient, and correct.
Previous Comments:
------------------------------------------------------------------------
[2013-07-02 08:24:41] benjamin dot morel at gmail dot com
Same thing with Closure::bind()
http://www.php.net/manual/en/closure.bind.php
The doc should be:
public static Closure Closure::bind ( Closure $closure , object|null $newthis [,
mixed $newscope = 'static' ] )
------------------------------------------------------------------------
[2013-07-02 08:21:36] benjamin dot morel at gmail dot com
Description:
------------
The doc at http://php.net/manual/en/closure.bindto.php
Says:
newthis
The object to which the given anonymous function should be bound, or NULL for the
closure to be unbound.
Expected result:
----------------
public Closure Closure::bindTo ( object|null $newthis [, mixed $newscope =
'static' ] )
Actual result:
--------------
public Closure Closure::bindTo ( object $newthis [, mixed $newscope = 'static' ] )
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=65180&edit=1