mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-21 23:43:17 +01:00
fix CallbackIterator to return mixed, as it can be overwritten with a callback
This commit is contained in:
parent
8d84312894
commit
941142c5be
@ -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'))
|
||||
{
|
||||
|
@ -31,7 +31,7 @@ $interfaces = [
|
||||
'valid' => 'bool',
|
||||
],
|
||||
'IteratorAggregate' => [
|
||||
'getIterator' => 'Traversable',
|
||||
'getIterator' => '\Traversable',
|
||||
],
|
||||
'ArrayAccess' => [
|
||||
'offsetExists' => 'bool',
|
||||
|
Loading…
Reference in New Issue
Block a user