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

Ds\Queue & Ds\Set implement ArrayAccess as well (#4415)

This commit is contained in:
Benjamin Morel 2020-10-26 02:16:12 +01:00 committed by Daniil Gentili
parent d027bbf41b
commit 36b7186712
Signed by: danog
GPG Key ID: 8C1BE3B34B230CA7

View File

@ -730,8 +730,9 @@ final class Vector implements Sequence
/**
* @template TValue
* @implements Collection<int, TValue>
* @implements ArrayAccess<int, TValue>
*/
final class Set implements Collection
final class Set implements Collection, ArrayAccess
{
/**
* @param iterable<TValue> $values
@ -937,8 +938,9 @@ final class Stack implements Collection, ArrayAccess
/**
* @template TValue
* @implements Collection<int, TValue>
* @implements ArrayAccess<int, TValue>
*/
final class Queue implements Collection
final class Queue implements Collection, ArrayAccess
{
/**
* @param iterable<TValue> $values