Skip to content

Commit

Permalink
updated fingerprintorder to support php 5.1.8 returntypewillchange
Browse files Browse the repository at this point in the history
  • Loading branch information
horfic authored Oct 24, 2023
1 parent ba59cfc commit 4ab8d45
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/QentaCEE/Stdlib/FingerprintOrder.php
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,7 @@ public function offsetSet($mOffset, $mValue)
*
* @return Mixed <NULL, int|string>
*/
#[\ReturnTypeWillChange]
public function offsetGet($mOffset)
{
return isset( $this->_fingeprintOrder[$mOffset] ) ? $this->_fingeprintOrder[$mOffset] : null;
Expand All @@ -160,6 +161,7 @@ public function offsetGet($mOffset)
*
* @return boolean
*/
#[\ReturnTypeWillChange]
public function offsetExists($mOffset)
{
return (bool) isset( $this->_fingeprintOrder[$mOffset] );
Expand All @@ -170,6 +172,7 @@ public function offsetExists($mOffset)
*
* @param int|string $mOffset
*/
#[\ReturnTypeWillChange]
public function offsetUnset($mOffset)
{
unset( $this->_fingeprintOrder[$mOffset] );
Expand All @@ -182,6 +185,7 @@ public function offsetUnset($mOffset)
* @see IteratorAggregate::getIterator()
* @return ArrayIterator
*/
#[\ReturnTypeWillChange]
public function getIterator()
{
return new \ArrayIterator($this->_fingeprintOrder);
Expand All @@ -193,8 +197,9 @@ public function getIterator()
* @see Countable::count();
* @return number
*/
#[\ReturnTypeWillChange]
public function count()
{
return (int) count($this->_fingeprintOrder);
}
}
}

0 comments on commit 4ab8d45

Please sign in to comment.