diff --git a/api/src/Db/CallbackIterator.php b/api/src/Db/CallbackIterator.php index def77661ba..6a515707f6 100644 --- a/api/src/Db/CallbackIterator.php +++ b/api/src/Db/CallbackIterator.php @@ -120,7 +120,8 @@ class CallbackIterator implements \Iterator * * @return mixed */ - public function current(): mixed + #[\ReturnTypeWillChange] + public function current() { if (is_a($this->rs,'iterator')) { @@ -136,7 +137,8 @@ class CallbackIterator implements \Iterator * * @return mixed */ - public function key(): mixed + #[\ReturnTypeWillChange] + public function key() { if (is_a($this->rs,'iterator')) { diff --git a/api/src/Mail/Account.php b/api/src/Mail/Account.php index 6cb8815024..267b095f5e 100644 --- a/api/src/Mail/Account.php +++ b/api/src/Mail/Account.php @@ -908,7 +908,8 @@ class Account implements \ArrayAccess * @param string $offset * @return mixed */ - public function offsetGet($offset): mixed + #[\ReturnTypeWillChange] + public function offsetGet($offset) { return $this->__get($offset); }