Skip to content
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

fix some iterator stubs #6970

Merged
merged 8 commits into from Jan 30, 2022
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
20 changes: 10 additions & 10 deletions stubs/CoreGenericIterators.phpstub
Expand Up @@ -104,7 +104,7 @@ interface SeekableIterator extends Iterator {
/**
* @template-covariant TKey
* @template-covariant TValue
* @template TIterator as Traversable<TKey, TValue>
* @template-covariant TIterator as Iterator<TKey, TValue>
*
* @template-implements OuterIterator<TKey, TValue>
*
Expand Down Expand Up @@ -132,7 +132,7 @@ class IteratorIterator implements OuterIterator {
/**
* @template TKey
* @template TValue
* @template TIterator as Traversable<TKey, TValue>
* @template TIterator as Iterator<TKey, TValue>
*
* @template-extends IteratorIterator<TKey, TValue, TIterator>
*/
Expand Down Expand Up @@ -319,11 +319,11 @@ class ArrayIterator implements SeekableIterator, ArrayAccess, Serializable, Coun
/**
* @template-covariant TKey
* @template-covariant TValue
* @template TIterator as Traversable<TKey, TValue>
* @template-covariant TIterator as Traversable<TKey, TValue>
*
* @template-extends IteratorIterator<TKey, TValue, TIterator>
*/
class FilterIterator extends IteratorIterator {
abstract class FilterIterator extends IteratorIterator {
/** @return bool */
abstract public function accept();

Expand All @@ -341,7 +341,7 @@ class FilterIterator extends IteratorIterator {
/**
* @template-covariant TKey
* @template-covariant TValue
* @template TIterator as Traversable<TKey, TValue>
* @template-covariant TIterator as Iterator<TKey, TValue>
*
* @template-implements OuterIterator<TKey, TValue>
* @template-implements ArrayAccess<TKey, TValue>
Expand Down Expand Up @@ -381,7 +381,7 @@ class CachingIterator extends IteratorIterator implements OuterIterator , ArrayA
/**
* @template-covariant TKey
* @template-covariant TValue
* @template TIterator as Traversable<TKey, TValue>
* @template-covariant TIterator as Traversable<TKey, TValue>
orklah marked this conversation as resolved.
Show resolved Hide resolved
*
* @template-implements OuterIterator<TKey, TValue>
*
Expand Down Expand Up @@ -530,7 +530,7 @@ class GlobIterator extends FilesystemIterator implements Countable {
/**
* @template-covariant TKey
* @template-covariant TValue
* @template TIterator as Traversable<TKey, TValue>
* @template-covariant TIterator as Iterator<TKey, TValue>
*
* @template-extends IteratorIterator<TKey, TValue, TIterator>
*/
Expand All @@ -556,7 +556,7 @@ class InfiniteIterator extends IteratorIterator {
/**
* @template-covariant TKey
* @template-covariant TValue
* @template TIterator as Traversable<TKey, TValue>
* @template-covariant TIterator as Iterator<TKey, TValue>
*
* @template-implements OuterIterator<TKey, TValue>
*
Expand Down Expand Up @@ -586,7 +586,7 @@ class LimitIterator extends IteratorIterator implements OuterIterator {
/**
* @template-covariant TKey
* @template-covariant TValue
* @template TIterator as Traversable<TKey, TValue>
* @template-covariant TIterator as Iterator<TKey, TValue>
*
* @template-extends IteratorIterator<TKey, TValue, TIterator>
*/
Expand Down Expand Up @@ -1074,7 +1074,7 @@ class RecursiveTreeIterator extends RecursiveIteratorIterator implements OuterIt
/**
* @template TKey
* @template TValue
* @template TIterator as Traversable<TKey, TValue>
* @template TIterator as Iterator<TKey, TValue>
*
* @template-extends FilterIterator<TKey, TValue, TIterator>
*/
Expand Down