Skip to content

Commit

Permalink
re-added #[\ReturnTypeWillChange] due to mixed return type is only su…
Browse files Browse the repository at this point in the history
…pported by php8.0.0+
  • Loading branch information
Lennart committed Apr 28, 2022
1 parent d1e11c0 commit 587d6fd
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions application/libraries/datamapper.php
Original file line number Diff line number Diff line change
Expand Up @@ -6761,12 +6761,14 @@ function __construct($object, $query)
* Gets the item at the current index $pos
* @return DataMapper
*/
function current(): mixed
#[\ReturnTypeWillChange]
function current() #:mixed as of PHP 8.0
{
return $this->get($this->pos);
}

function key(): mixed

#[\ReturnTypeWillChange]
function key() #:mixed as of PHP 8.0
{
return $this->pos;
}
Expand Down

0 comments on commit 587d6fd

Please sign in to comment.