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

SplDoublyLinkedList's index is always int

This commit is contained in:
Kamil Tekiela 2023-05-03 22:13:20 +01:00
parent a5effd2d2d
commit 59d37933b0
2 changed files with 8 additions and 8 deletions

View File

@ -12264,10 +12264,10 @@ return [
'SplDoublyLinkedList::isEmpty' => ['bool'],
'SplDoublyLinkedList::key' => ['int'],
'SplDoublyLinkedList::next' => ['void'],
'SplDoublyLinkedList::offsetExists' => ['bool', 'index'=>'mixed'],
'SplDoublyLinkedList::offsetGet' => ['mixed', 'index'=>'mixed'],
'SplDoublyLinkedList::offsetSet' => ['void', 'index'=>'mixed', 'value'=>'mixed'],
'SplDoublyLinkedList::offsetUnset' => ['void', 'index'=>'mixed'],
'SplDoublyLinkedList::offsetExists' => ['bool', 'index'=>'int'],
'SplDoublyLinkedList::offsetGet' => ['mixed', 'index'=>'int'],
'SplDoublyLinkedList::offsetSet' => ['void', 'index'=>'?int', 'value'=>'mixed'],
'SplDoublyLinkedList::offsetUnset' => ['void', 'index'=>'int'],
'SplDoublyLinkedList::pop' => ['mixed'],
'SplDoublyLinkedList::prev' => ['void'],
'SplDoublyLinkedList::push' => ['void', 'value'=>'mixed'],

View File

@ -7488,10 +7488,10 @@ return [
'SplDoublyLinkedList::isEmpty' => ['bool'],
'SplDoublyLinkedList::key' => ['int'],
'SplDoublyLinkedList::next' => ['void'],
'SplDoublyLinkedList::offsetExists' => ['bool', 'index'=>'mixed'],
'SplDoublyLinkedList::offsetGet' => ['mixed', 'index'=>'mixed'],
'SplDoublyLinkedList::offsetSet' => ['void', 'index'=>'mixed', 'value'=>'mixed'],
'SplDoublyLinkedList::offsetUnset' => ['void', 'index'=>'mixed'],
'SplDoublyLinkedList::offsetExists' => ['bool', 'index'=>'int'],
'SplDoublyLinkedList::offsetGet' => ['mixed', 'index'=>'int'],
'SplDoublyLinkedList::offsetSet' => ['void', 'index'=>'?int', 'value'=>'mixed'],
'SplDoublyLinkedList::offsetUnset' => ['void', 'index'=>'int'],
'SplDoublyLinkedList::pop' => ['mixed'],
'SplDoublyLinkedList::prev' => ['void'],
'SplDoublyLinkedList::push' => ['void', 'value'=>'mixed'],