1
0
mirror of https://github.com/danog/psalm.git synced 2024-11-26 20:34:47 +01:00

Fix signatures

This commit is contained in:
Matthew Brown 2020-01-24 09:10:42 -05:00
parent c893bd6a6b
commit efd46b35c5

View File

@ -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