Skip to content

Remove mention of Generator in CachingIterator comments #763

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

Merged
merged 1 commit into from
Jul 5, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 3 additions & 4 deletions src/Model/CachingIterator.php
Original file line number Diff line number Diff line change
Expand Up @@ -52,10 +52,9 @@ class CachingIterator implements Countable, Iterator

/**
* Initialize the iterator and stores the first item in the cache. This
* effectively rewinds the Traversable and the wrapping Generator, which
* will execute up to its first yield statement. Additionally, this mimics
* behavior of the SPL iterators and allows users to omit an explicit call
* to rewind() before using the other methods.
* effectively rewinds the Traversable and the wrapping IteratorIterator.
* Additionally, this mimics behavior of the SPL iterators and allows users
* to omit an explicit call * to rewind() before using the other methods.
*
* @param Traversable $traversable
*/
Expand Down