Doc #69310 [Asn]: Misleading example comment

From: Date: Fri, 18 Dec 2015 21:40:05 +0000
Subject: Doc #69310 [Asn]: Misleading example comment
References: 1  Groups: php.doc.bugs 
Request: Send a blank email to doc-bugs+get-12986@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 Type: Documentation Problem Package: Documentation problem Operating System: * PHP Version: Irrelevant Assigned To: tpunt Block user comment: N Private report: N New Comment: This example seems to no longer exist in the documentation. Previous Comments: ------------------------------------------------------------------------ [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

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