Closed enleur closed 6 years ago
I'm a bit confused about the right return types in phpdoc blocks. Should it be iterable
, \Iterable
or \Iterator
?
The right return type is one of iterable
, \Traversable
, \Iterator
or \Generator
, in order of increasing specificity. I prefer \Iterator
in this case, because it guarantees the availability of the usual iterator methods, while not exposing the generator specific functionality (which is not used/supported here).
@nikic fixed
Done