mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-22 07:53:39 +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 the key of the current element
|
||||||
*
|
*
|
||||||
* @return int
|
* @return mixed
|
||||||
*/
|
*/
|
||||||
public function key(): int
|
public function key(): mixed
|
||||||
{
|
{
|
||||||
if (is_a($this->rs,'iterator'))
|
if (is_a($this->rs,'iterator'))
|
||||||
{
|
{
|
||||||
|
@ -31,7 +31,7 @@ $interfaces = [
|
|||||||
'valid' => 'bool',
|
'valid' => 'bool',
|
||||||
],
|
],
|
||||||
'IteratorAggregate' => [
|
'IteratorAggregate' => [
|
||||||
'getIterator' => 'Traversable',
|
'getIterator' => '\Traversable',
|
||||||
],
|
],
|
||||||
'ArrayAccess' => [
|
'ArrayAccess' => [
|
||||||
'offsetExists' => 'bool',
|
'offsetExists' => 'bool',
|
||||||
|
Loading…
Reference in New Issue
Block a user