From ef9a0cb6bc43c98254aaecd725870c2b81fd9d24 Mon Sep 17 00:00:00 2001 From: Shahzad Ali Date: Wed, 3 Jan 2024 12:37:29 +0500 Subject: [PATCH] orderIterator MigrationUpdate --- .../QPay/Response/Toolkit/Order/OrderIterator.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/QentaCEE/QPay/Response/Toolkit/Order/OrderIterator.php b/src/QentaCEE/QPay/Response/Toolkit/Order/OrderIterator.php index e40e2a0..0b34584 100644 --- a/src/QentaCEE/QPay/Response/Toolkit/Order/OrderIterator.php +++ b/src/QentaCEE/QPay/Response/Toolkit/Order/OrderIterator.php @@ -63,7 +63,7 @@ public function __construct(array $objectArray) /** * resets the current position to 0(first entry) */ - public function rewind() + public function rewind() : void { $this->_position = 0; } @@ -83,7 +83,7 @@ public function current() : mixed * * @return int */ - public function key() + public function key() : mixed { return $this->_position; } @@ -91,7 +91,7 @@ public function key() /** * go to the next position */ - public function next() + public function next() : void { ++ $this->_position; } @@ -101,7 +101,7 @@ public function next() * * @see Iterator::valid() */ - public function valid() + public function valid() : bool { return isset($this->_objectArray[$this->_position]); }