Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
49 changes: 49 additions & 0 deletions stubs/extensions/ds.phpstub
Original file line number Diff line number Diff line change
Expand Up @@ -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<TValue>
* @psalm-mutation-free
Expand Down Expand Up @@ -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
*/
Expand Down Expand Up @@ -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<TValue>
* @psalm-mutation-free
Expand Down Expand Up @@ -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<TValue>
* @psalm-mutation-free
Expand Down Expand Up @@ -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<TValue>
* @psalm-mutation-free
Expand Down Expand Up @@ -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<TValue>
* @psalm-mutation-free
Expand Down Expand Up @@ -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<TValue>
* @psalm-mutation-free
Expand Down
Loading