Doc #74285 [Ver->Csd]: Closure::bindto documentation is missing change in PHP7.0.0

From: Date: Sat, 25 Mar 2017 12:37:44 +0000
Subject: Doc #74285 [Ver->Csd]: Closure::bindto documentation is missing change in PHP7.0.0
References: 1  Groups: php.doc.bugs 
Request: Send a blank email to doc-bugs+get-14544@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=74285&edit=1 ID: 74285 Updated by: cmb@php.net Reported by: bburnichon at gmail dot com Summary: Closure::bindto documentation is missing change in PHP7.0.0 -Status: Verified +Status: Closed Type: Documentation Problem Package: Documentation problem PHP Version: Irrelevant Assigned To: cmb 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. Previous Comments: ------------------------------------------------------------------------ [2017-03-25 12:36:48] cmb@php.net Automatic comment from SVN on behalf of cmb Revision: http://svn.php.net/viewvc/?view=revision&amp;revision=342186 Log: Fix #74285: Closure::bindto documentation is missing change in PHP7.0.0 ------------------------------------------------------------------------ [2017-03-25 12:31:10] cmb@php.net > Same changelog as below should be added to bindto. ACK. > I have read documentation several times and thought that > instances were not allowed and that only strings were valid. The documentation states[1]: | If an object is given, the type of the object will be used | instead. [1] <http://php.net/manual/en/closure.bindto.php#refsect1-closure.bindto-parameters> ------------------------------------------------------------------------ [2017-03-21 13:25:47] bburnichon at gmail dot com Description: ------------ --- From manual page: http://www.php.net/closure.bindto --- Same changelog as below should be added to bindto. http://php.net/manual/en/closure.bind.php#refsect1-closure.bind-changelog Also, it is not clear to me that only "stdClass" or stdClass instances are not accepted by both methods since PHP 7.0.0. I have read documentation several times and thought that instances were not allowed and that only strings were valid. I was wrong and restriction is about "stdClass" scope and not about type of parameter called "scope". ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=74285&edit=1

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