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

Fix wrong annotations in ext-ds method stubs (#2263)

* Fix wrong annotation for class implementing an interface

* Fix unrecognised annotations
This commit is contained in:
Mikko Pesari 2019-10-22 16:33:23 +03:00 committed by Matthew Brown
parent 39b25f9008
commit e82d3c438d

View File

@ -23,7 +23,7 @@ use UnderflowException;
* @package Ds
* @template TValue
*
* @psalm-extends Traversable<mixed, TValue>
* @extends Traversable<mixed, TValue>
*/
interface Collection extends Traversable, Countable, JsonSerializable
{
@ -79,7 +79,7 @@ interface Collection extends Traversable, Countable, JsonSerializable
* @package Ds
* @template TValue
*
* @psalm-extends Sequence<TValue>
* @implements Sequence<TValue>
*/
final class Deque implements IteratorAggregate, ArrayAccess, Sequence
{
@ -500,9 +500,9 @@ interface Hashable
* @template TKey
* @template TValue
*
* @psalm-implements Collection<TValue>
* @psalm-implements ArrayAccess<TKey, TValue>
* @psalm-implements IteratorAggregate<TKey, TValue>
* @implements Collection<TValue>
* @implements ArrayAccess<TKey, TValue>
* @implements IteratorAggregate<TKey, TValue>
*/
final class Map implements IteratorAggregate, ArrayAccess, Collection
{