Skip to content

Commit

Permalink
Ds\Queue & Ds\Set implement ArrayAccess as well (vimeo#4415)
Browse files Browse the repository at this point in the history
  • Loading branch information
BenMorel authored and danog committed Jan 29, 2021
1 parent d027bbf commit 36b7186
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions stubs/ext-ds.php
Original file line number Diff line number Diff line change
Expand Up @@ -730,8 +730,9 @@ public function merge(iterable $values): 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
Expand Down Expand Up @@ -937,8 +938,9 @@ public function toArray(): array
/**
* @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
Expand Down

0 comments on commit 36b7186

Please sign in to comment.