Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork9.7k
[Filesystem] toIterable() in favor of toIterator()#24928
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Uh oh!
There was an error while loading.Please reload this page.
Conversation
nicolas-grekas left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
no fan of such changes, but ok :)
ro0NL commentedNov 11, 2017
to further clarify; im spotting |
nicolas-grekas commentedNov 11, 2017
|
fabpot commentedNov 12, 2017
Could be merged in 3.4, but not in 2.7 anyway. |
ro0NL commentedNov 12, 2017
Hm, why not? Safe change to me. Without involving php71 feats, this is indeed about changing the implementation from iterators to iterables; enabling removal of ArrayObject inits. Done on 2.7 to avoid merge conflicts and not have |
fabpot commentedNov 12, 2017
That's not a bug fix, so it does not qualify for 2.7. We've been doing too many such changes in lower branches in the recent history. But that was a mistake. |
fabpot commentedNov 12, 2017
Thank you@ro0NL. |
This PR was squashed before being merged into the 3.4 branch (closes#24928).Discussion----------[Filesystem] toIterable() in favor of toIterator()| Q | A| ------------- | ---| Branch? | 3.4| Bug fix? | no| New feature? | no| BC breaks? | no| Deprecations? | no| Tests pass? | yes| Fixed tickets | #... <!-- #-prefixed issue number(s), if any -->| License | MIT| Doc PR | symfony/symfony-docs#... <!--highly recommended for new features-->Enables to leverage iterable type as of 4.0, but really to avoid any useless `ArrayObject` inits.Commits-------36462d6 [Filesystem] toIterable() in favor of toIterator()
Uh oh!
There was an error while loading.Please reload this page.
Enables to leverage iterable type as of 4.0, but really to avoid any useless
ArrayObjectinits.