Everything
php
Learn
Community
Releases
The PHP Project
Learn
Community
Releases
The PHP Project
Home
»
Project
»
RFCs
»
Make the iterator_*() family accept all iterables
»
RFC: Make the iterator_*() family accept all iterables
Project Governance
Author
Tim Düsterhus
Target
8.2
PHP's iterator_*() family currently only accept \Traversables (i.e. they reject plain arrays). This is unnecessarily limiting.
Mailing List Discussions
[RFC] Make the iterator_*() family accept all iterables
View Original
iterator_to_array: Change the type of iterator_to_array()’s $iterator parameter from \Traversable to iterable?
Overall Results
Yes
No
Yes
17 Votes (89%)
No
2 Votes (11%)
Voting Timeline
Dates based on UTC
Voting Breakdown
Yes
17 Votes (89%)
crell
kalle
marandall
ocramius
santiagolizardo
sergey
trowski
bwoebi
kguest
svpernova09
timwolla
nicolasgrekas
asgrim
weierophinney
reywob
jwage
colinodell
No
2 Votes (11%)
levim
salathe
iterator_count: Change the type of iterator_count()’s $iterator parameter from \Traversable to iterable?
Overall Results
Yes
No
Yes
17 Votes (89%)
No
2 Votes (11%)
Voting Timeline
Dates based on UTC
Voting Breakdown
Yes
17 Votes (89%)
crell
kalle
ocramius
santiagolizardo
sergey
trowski
bmajdak
bwoebi
kguest
svpernova09
timwolla
nicolasgrekas
asgrim
weierophinney
reywob
jwage
colinodell
No
2 Votes (11%)
levim
salathe