Skip to content

Conversation

@lacatoire
Copy link
Contributor

This extends the note on Iterator::rewind() to clarify that foreach always rewinds the iterator before iteration and points users to NoRewindIterator when rewinding should be avoided.

Issue: #3308

@Girgias Girgias merged commit 7fbb16f into php:master Jan 30, 2026
2 checks passed
@lacatoire lacatoire deleted the clarify-iterator-rewind-note- branch January 30, 2026 10:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants