Skip to content

Commit 2466d07

Browse files
authored
Merge pull request #91 from cliffordvickrey/php81-support
Add missing ReturnTypeWillChange annotations
2 parents 4913282 + 8abf986 commit 2466d07

File tree

4 files changed

+4
-0
lines changed

4 files changed

+4
-0
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: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,7 @@ public function toArray(): array
132132
/**
133133
*
134134
*/
135+
#[\ReturnTypeWillChange]
135136
public function getIterator()
136137
{
137138
while ( ! $this->isEmpty()) {

src/Traits/GenericSequence.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -352,6 +352,7 @@ private function validIndex(int $index)
352352
/**
353353
*
354354
*/
355+
#[\ReturnTypeWillChange]
355356
public function getIterator()
356357
{
357358
foreach ($this->array as $value) {

0 commit comments

Comments
 (0)