diff --git a/stubs/extensions/ds.phpstub b/stubs/extensions/ds.phpstub index 04eef4dc4c5..42e151fe78a 100644 --- a/stubs/extensions/ds.phpstub +++ b/stubs/extensions/ds.phpstub @@ -53,6 +53,13 @@ final class Deque implements Sequence { } + /** + * @param int $offset The index with the value. + * @return TValue The value at the specified index. + */ + public function offsetGet($offset) { + } + /** * @return Deque * @psalm-mutation-free @@ -261,6 +268,13 @@ final class Map implements Collection, ArrayAccess { } + /** + * @param TKey $offset The index with the value. + * @return TValue The value at the specified index. + */ + public function offsetGet($offset) { + } + /** * @psalm-mutation-free */ @@ -791,6 +805,13 @@ final class Vector implements Sequence { } + /** + * @param int $offset The index with the value. + * @return TValue The value at the specified index. + */ + public function offsetGet($offset) { + } + /** * @return Vector * @psalm-mutation-free @@ -998,6 +1019,13 @@ final class Set implements Collection, ArrayAccess { } + /** + * @param int $offset The index with the value. + * @return TValue The value at the specified index. + */ + public function offsetGet($offset) { + } + /** * @return Set * @psalm-mutation-free @@ -1206,6 +1234,13 @@ final class Stack implements Collection, ArrayAccess { } + /** + * @param int $offset The index with the value. + * @return TValue The value at the specified index. + */ + public function offsetGet($offset) { + } + /** * @return Stack * @psalm-mutation-free @@ -1289,6 +1324,13 @@ final class Queue implements Collection, ArrayAccess { } + /** + * @param int $offset The index with the value. + * @return TValue The value at the specified index. + */ + public function offsetGet($offset) { + } + /** * @return Queue * @psalm-mutation-free @@ -1372,6 +1414,13 @@ final class PriorityQueue implements Collection { } + /** + * @param int $offset The index with the value. + * @return TValue The value at the specified index. + */ + public function offsetGet($offset) { + } + /** * @return list * @psalm-mutation-free