diff --git a/api/src/Db/CallbackIterator.php b/api/src/Db/CallbackIterator.php index 21fbe97389..def77661ba 100644 --- a/api/src/Db/CallbackIterator.php +++ b/api/src/Db/CallbackIterator.php @@ -134,9 +134,9 @@ class CallbackIterator implements \Iterator /** * Return the key of the current element * - * @return int + * @return mixed */ - public function key(): int + public function key(): mixed { if (is_a($this->rs,'iterator')) { diff --git a/doc/fix-8.1-depricated-interfaces-return-vals.php b/doc/fix-8.1-depricated-interfaces-return-vals.php index 5458ad6a01..92ce56f390 100755 --- a/doc/fix-8.1-depricated-interfaces-return-vals.php +++ b/doc/fix-8.1-depricated-interfaces-return-vals.php @@ -31,7 +31,7 @@ $interfaces = [ 'valid' => 'bool', ], 'IteratorAggregate' => [ - 'getIterator' => 'Traversable', + 'getIterator' => '\Traversable', ], 'ArrayAccess' => [ 'offsetExists' => 'bool',