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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: salsi at icosaedro dot it
New email:
PHP Version: OS:

 

 [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

Pull Requests

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-2025 The PHP Group
All rights reserved.
Last updated: Wed Jul 02 13:01:34 2025 UTC