php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #71324 EmptyIterator: invalid return types
Submitted: 2016-01-10 06:32 UTC Modified: 2016-01-10 16:50 UTC
From: salsi at icosaedro dot it Assigned: tpunt (profile)
Status: Closed Package: SPL related
PHP Version: Irrelevant OS:
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem:
18 - 6 = ?
Subscribe to this entry?

 
 [2016-01-10 06:32 UTC] 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



Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2016-01-10 16:50 UTC] 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 16:50 UTC] tpunt@php.net
-Status: Open +Status: Closed -Assigned To: +Assigned To: tpunt
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Mar 28 19:01:29 2024 UTC