mirror of
https://github.com/danog/psalm.git
synced 2024-11-26 20:34:47 +01:00
Fix signatures
This commit is contained in:
parent
c893bd6a6b
commit
efd46b35c5
@ -106,20 +106,20 @@ interface OuterIterator extends Iterator {
|
||||
/**
|
||||
* @return Iterator<TKey, TValue>
|
||||
*/
|
||||
public function getInnerIterator() : Iterator;
|
||||
public function getInnerIterator();
|
||||
}
|
||||
|
||||
/**
|
||||
* @template-covariant TKey
|
||||
* @template-covariant TValue
|
||||
*
|
||||
* @template-extends OuterIterator<TKey, TValue>
|
||||
* @template-implements OuterIterator<TKey, TValue>
|
||||
*/
|
||||
class IteratorIterator implements OuterIterator {
|
||||
/**
|
||||
* @return Iterator<TKey, TValue>
|
||||
*/
|
||||
public function getInnerIterator() : Iterator {}
|
||||
public function getInnerIterator() {}
|
||||
|
||||
/**
|
||||
* Return the current element
|
||||
@ -170,6 +170,17 @@ class IteratorIterator implements OuterIterator {
|
||||
public function rewind() {}
|
||||
}
|
||||
|
||||
/**
|
||||
* @template-covariant TKey
|
||||
* @template-covariant TValue
|
||||
*
|
||||
* @template-extends IteratorIterator<TKey, TValue>
|
||||
*/
|
||||
class FilterIterator extends IteratorIterator {
|
||||
public abstract function accept () : bool {}
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @template-covariant TKey
|
||||
* @template-covariant TValue
|
||||
|
Loading…
Reference in New Issue
Block a user