Skip to content

Commit

Permalink
chore: Update DataIterator.php with #[\ReturnTypeWillChange] attribute
Browse files Browse the repository at this point in the history
  • Loading branch information
nadar committed Aug 15, 2024
1 parent 13953b4 commit 0d0b492
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/DataIterator.php
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ public function loadData()
/**
* @inheritDoc
*/
#[\ReturnTypeWillChange]
public function current(): mixed
{
return $this->createIteratorItem();
Expand All @@ -71,6 +72,7 @@ public function current(): mixed
/**
* {@inheritDoc}
*/
#[\ReturnTypeWillChange]
public function rewind(): void
{
reset($this->data);
Expand All @@ -79,6 +81,7 @@ public function rewind(): void
/**
* @inheritDoc
*/
#[\ReturnTypeWillChange]
public function key(): mixed
{
return key($this->data);
Expand All @@ -87,6 +90,7 @@ public function key(): mixed
/**
* @inheritDoc
*/
#[\ReturnTypeWillChange]
public function next(): void
{
next($this->data);
Expand All @@ -95,6 +99,7 @@ public function next(): void
/**
* @inheritDoc
*/
#[\ReturnTypeWillChange]
public function valid(): bool
{
return key($this->data) !== null;
Expand All @@ -103,6 +108,7 @@ public function valid(): bool
/**
* @inheritDoc
*/
#[\ReturnTypeWillChange]
public function count(): int
{
return count($this->data);
Expand Down

0 comments on commit 0d0b492

Please sign in to comment.