From 587d6fd49f739a5a277ae425ab03c72231f1139a Mon Sep 17 00:00:00 2001 From: Lennart Date: Thu, 28 Apr 2022 13:45:50 +0200 Subject: [PATCH] re-added #[\ReturnTypeWillChange] due to mixed return type is only supported by php8.0.0+ --- application/libraries/datamapper.php | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/application/libraries/datamapper.php b/application/libraries/datamapper.php index 8e8d5bf..0b5232c 100644 --- a/application/libraries/datamapper.php +++ b/application/libraries/datamapper.php @@ -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; }