Skip to content

Commit

Permalink
modified config to support php 8.1.5 returntypewillchange
Browse files Browse the repository at this point in the history
  • Loading branch information
horfic authored Oct 24, 2023
1 parent 7f9346b commit ba59cfc
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/QentaCEE/Stdlib/Config.php
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,7 @@ public function get($name, $default = null)
*
* @return int
*/
#[\ReturnTypeWillChange]
public function count()
{
return $this->_count;
Expand All @@ -162,6 +163,7 @@ public function count()
*
* @return mixed
*/
#[\ReturnTypeWillChange]
public function current()
{
$this->_skipNextIteration = false;
Expand All @@ -174,6 +176,7 @@ public function current()
*
* @return mixed
*/
#[\ReturnTypeWillChange]
public function key()
{
return key($this->_data);
Expand All @@ -182,6 +185,7 @@ public function key()
/**
* Defined by Iterator interface
*/
#[\ReturnTypeWillChange]
public function next()
{
if ($this->_skipNextIteration) {
Expand All @@ -196,6 +200,7 @@ public function next()
/**
* Defined by Iterator interface
*/
#[\ReturnTypeWillChange]
public function rewind()
{
$this->_skipNextIteration = false;
Expand All @@ -208,6 +213,7 @@ public function rewind()
*
* @return boolean
*/
#[\ReturnTypeWillChange]
public function valid()
{
return $this->_index < $this->_count;
Expand All @@ -232,4 +238,4 @@ public function toArray()

return $array;
}
}
}

0 comments on commit ba59cfc

Please sign in to comment.