diff --git a/src/DataIterator.php b/src/DataIterator.php index 96c4904..29833c1 100644 --- a/src/DataIterator.php +++ b/src/DataIterator.php @@ -63,6 +63,7 @@ public function loadData() /** * @inheritDoc */ + #[\ReturnTypeWillChange] public function current(): mixed { return $this->createIteratorItem(); @@ -71,6 +72,7 @@ public function current(): mixed /** * {@inheritDoc} */ + #[\ReturnTypeWillChange] public function rewind(): void { reset($this->data); @@ -79,6 +81,7 @@ public function rewind(): void /** * @inheritDoc */ + #[\ReturnTypeWillChange] public function key(): mixed { return key($this->data); @@ -87,6 +90,7 @@ public function key(): mixed /** * @inheritDoc */ + #[\ReturnTypeWillChange] public function next(): void { next($this->data); @@ -95,6 +99,7 @@ public function next(): void /** * @inheritDoc */ + #[\ReturnTypeWillChange] public function valid(): bool { return key($this->data) !== null; @@ -103,6 +108,7 @@ public function valid(): bool /** * @inheritDoc */ + #[\ReturnTypeWillChange] public function count(): int { return count($this->data);