replace mixed return-type with #[\ReturnTypeWillChange] annotation to keep PHP 7.3 requirement

This commit is contained in:
ralf 2022-04-26 08:16:26 +02:00
parent c7d7f3a304
commit 0ec9ce58cd
2 changed files with 6 additions and 3 deletions

View File

@ -120,7 +120,8 @@ class CallbackIterator implements \Iterator
* *
* @return mixed * @return mixed
*/ */
public function current(): mixed #[\ReturnTypeWillChange]
public function current()
{ {
if (is_a($this->rs,'iterator')) if (is_a($this->rs,'iterator'))
{ {
@ -136,7 +137,8 @@ class CallbackIterator implements \Iterator
* *
* @return mixed * @return mixed
*/ */
public function key(): mixed #[\ReturnTypeWillChange]
public function key()
{ {
if (is_a($this->rs,'iterator')) if (is_a($this->rs,'iterator'))
{ {

View File

@ -908,7 +908,8 @@ class Account implements \ArrayAccess
* @param string $offset * @param string $offset
* @return mixed * @return mixed
*/ */
public function offsetGet($offset): mixed #[\ReturnTypeWillChange]
public function offsetGet($offset)
{ {
return $this->__get($offset); return $this->__get($offset);
} }