Doc #71324 [Opn->Csd]: EmptyIterator: invalid return types

From: Date: Sun, 10 Jan 2016 16:50:16 +0000
Subject: Doc #71324 [Opn->Csd]: EmptyIterator: invalid return types
References: 1  Groups: php.doc.bugs 
Request: Send a blank email to doc-bugs+get-13084@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=71324&edit=1 ID: 71324 Updated by: tpunt@php.net Reported by: salsi at icosaedro dot it Summary: EmptyIterator: invalid return types -Status: Open +Status: Closed Type: Documentation Problem Package: SPL related PHP Version: Irrelevant -Assigned To: +Assigned To: tpunt Block user comment: N Private report: N Previous Comments: ------------------------------------------------------------------------ [2016-01-10 16:50:01] tpunt@php.net Automatic comment from SVN on behalf of tpunt Revision: http://svn.php.net/viewvc/?view=revision&revision=338453 Log: Resolve doc bug #71324 ------------------------------------------------------------------------ [2016-01-10 06:32:04] salsi at icosaedro dot it Description: ------------ All the methods of EmptyIterator are declared returning void, which is not compatible with some of the implemented methods of Iterator: - current() must return mixed - key() must return mixed (or scalar) - valid() must return boolean ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=71324&edit=1

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