From 4ab8d4572bc588681fc50538ce3d2df588cf3a8d Mon Sep 17 00:00:00 2001 From: Horst Fickel Date: Tue, 24 Oct 2023 14:15:42 +0200 Subject: [PATCH] updated fingerprintorder to support php 5.1.8 returntypewillchange --- src/QentaCEE/Stdlib/FingerprintOrder.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/QentaCEE/Stdlib/FingerprintOrder.php b/src/QentaCEE/Stdlib/FingerprintOrder.php index 643299b..69c17b9 100644 --- a/src/QentaCEE/Stdlib/FingerprintOrder.php +++ b/src/QentaCEE/Stdlib/FingerprintOrder.php @@ -148,6 +148,7 @@ public function offsetSet($mOffset, $mValue) * * @return Mixed */ + #[\ReturnTypeWillChange] public function offsetGet($mOffset) { return isset( $this->_fingeprintOrder[$mOffset] ) ? $this->_fingeprintOrder[$mOffset] : null; @@ -160,6 +161,7 @@ public function offsetGet($mOffset) * * @return boolean */ + #[\ReturnTypeWillChange] public function offsetExists($mOffset) { return (bool) isset( $this->_fingeprintOrder[$mOffset] ); @@ -170,6 +172,7 @@ public function offsetExists($mOffset) * * @param int|string $mOffset */ + #[\ReturnTypeWillChange] public function offsetUnset($mOffset) { unset( $this->_fingeprintOrder[$mOffset] ); @@ -182,6 +185,7 @@ public function offsetUnset($mOffset) * @see IteratorAggregate::getIterator() * @return ArrayIterator */ + #[\ReturnTypeWillChange] public function getIterator() { return new \ArrayIterator($this->_fingeprintOrder); @@ -193,8 +197,9 @@ public function getIterator() * @see Countable::count(); * @return number */ + #[\ReturnTypeWillChange] public function count() { return (int) count($this->_fingeprintOrder); } -} \ No newline at end of file +}