|  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
 [2016-01-10 06:32 UTC] salsi at icosaedro dot it
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


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2016-01-10 16:50 UTC]
Automatic comment from SVN on behalf of tpunt
Log: Resolve doc bug #71324
 [2016-01-10 16:50 UTC]
-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