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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: benjamin dot morel at gmail dot com
New email:
PHP Version: OS:

 

 [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

Pull Requests

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-2026 The PHP Group
All rights reserved.
Last updated: Thu Oct 08 13:00:02 2026 UTC