Skip to content

Commit ed5dfe9

Browse files
author
Clifford Vickrey
committed
Add missing ReturnTypeWillChange annotations
1 parent 298cafa commit ed5dfe9

File tree

4 files changed

+6
-2
lines changed

4 files changed

+6
-2
lines changed

src/PriorityQueue.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -291,6 +291,7 @@ public function toArray(): array
291291
/**
292292
* @inheritDoc
293293
*/
294+
#[\ReturnTypeWillChange]
294295
public function getIterator()
295296
{
296297
while ( ! $this->isEmpty()) {

src/Queue.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -128,6 +128,7 @@ public function toArray(): array
128128
/**
129129
* Get iterator
130130
*/
131+
#[\ReturnTypeWillChange]
131132
public function getIterator()
132133
{
133134
while ( ! $this->isEmpty()) {

src/Stack.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,8 +130,9 @@ public function toArray(): array
130130
}
131131

132132
/**
133-
*
133+
* @inheritDoc
134134
*/
135+
#[\ReturnTypeWillChange]
135136
public function getIterator()
136137
{
137138
while ( ! $this->isEmpty()) {

src/Traits/GenericSequence.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -350,8 +350,9 @@ private function validIndex(int $index)
350350
}
351351

352352
/**
353-
*
353+
* @inheritDoc
354354
*/
355+
#[\ReturnTypeWillChange]
355356
public function getIterator()
356357
{
357358
foreach ($this->array as $value) {

0 commit comments

Comments
 (0)