Skip to content

Commit

Permalink
Ds\Queue & Ds\Set implement ArrayAccess as well (#4415)
Browse files Browse the repository at this point in the history
  • Loading branch information
BenMorel committed Oct 26, 2020
1 parent 5cda754 commit b01c56f
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 b01c56f

Please sign in to comment.