Doc #69310 [Asn->Csd]: Misleading example comment
| From: | tpunt@php.net | Date: | Fri, 18 Dec 2015 21:40:11 +0000 |
| Subject: | Doc #69310 [Asn->Csd]: Misleading example comment | ||
| References: | 1 | Groups: | php.doc.bugs |
| Request: | Send a blank email to doc-bugs+get-12987@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=69310&edit=1
ID: 69310
Updated by: tpunt@php.net
Reported by: cmb@php.net
Summary: Misleading example comment
-Status: Assigned
+Status: Closed
Type: Documentation Problem
Package: Documentation problem
Operating System: *
PHP Version: Irrelevant
Assigned To: tpunt
Block user comment: N
Private report: N
Previous Comments:
------------------------------------------------------------------------
[2015-12-18 21:40:04] tpunt@php.net
This example seems to no longer exist in the documentation.
------------------------------------------------------------------------
[2015-03-26 15:58:10] cmb@php.net
Description:
------------
---
From manual page: http://www.php.net/language.oop5.typehinting
---
/**
* First parameter must be iterator
*/
public function test_interface(Traversable $iterator) {
echo get_class($iterator);
}
The comment in the example is slightly imprecise, what is a particular problem
for the German translation, for example (en. iterator = ge. Iterator). I suggest
to reword:
"First parameter must be a Traversable"
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=69310&edit=1