php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #65180 Closure::bindto() wrong method signature
Submitted: 2013-07-02 08:21 UTC Modified: 2013-10-04 17:20 UTC
From: benjamin dot morel at gmail dot com Assigned:
Status: Not a bug Package: Documentation problem
PHP Version: Irrelevant OS: N/A
Private report: No CVE-ID: None
 [2013-07-02 08:21 UTC] 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' ] )

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2013-07-02 08:24 UTC] 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-10-04 17:20 UTC] krakjoe@php.net
-Status: Open +Status: Not a bug
 [2013-10-04 17:20 UTC] krakjoe@php.net
The description is sufficient, and correct.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri May 17 03:01:32 2024 UTC