Doc #74285 [Opn->Ver]: Closure::bindto documentation is missing change in PHP7.0.0
| From: | cmb@php.net | Date: | Sat, 25 Mar 2017 12:31:13 +0000 |
| Subject: | Doc #74285 [Opn->Ver]: 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-14543@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: Open
+Status: Verified
Type: Documentation Problem
Package: Documentation problem
PHP Version: Irrelevant
-Assigned To:
+Assigned To: cmb
Block user comment: N
Private report: N
New Comment:
> 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>
Previous Comments:
------------------------------------------------------------------------
[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