Doc #65180 [Com]: Closure::bindto() wrong method signature

From: Date: Tue, 02 Jul 2013 08:24:41 +0000
Subject: Doc #65180 [Com]: Closure::bindto() wrong method signature
References: 1  Groups: php.doc.bugs 
Request: Send a blank email to doc-bugs+get-10035@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 Comment by: benjamin dot morel at gmail dot com Reported by: benjamin dot morel at gmail dot com Summary: Closure::bindto() wrong method signature Status: Open Type: Documentation Problem Package: Documentation problem Operating System: N/A PHP Version: Irrelevant Block user comment: N Private report: N New Comment: 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' ] ) Previous Comments: ------------------------------------------------------------------------ [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

« previous php.doc.bugs (#10035) next »