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
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
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

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-2020 The PHP Group
All rights reserved.
Last updated: Wed Sep 23 03:01:23 2020 UTC