-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
[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 our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
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 :)
to further clarify; im spotting |
|
Could be merged in 3.4, but not in 2.7 anyway. |
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 |
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. |
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()
Enables to leverage iterable type as of 4.0, but really to avoid any useless
ArrayObject
inits.