mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 14:18:52 +00:00
[ticket/13961] Define behaviour when the array is modified in a loop
PHPBB3-13961
This commit is contained in:
parent
c80cf87b90
commit
108b9833a1
1 changed files with 1 additions and 1 deletions
|
@ -32,7 +32,7 @@ class service_collection_iterator extends \ArrayIterator
|
||||||
*/
|
*/
|
||||||
public function __construct(service_collection $collection, $flags = 0)
|
public function __construct(service_collection $collection, $flags = 0)
|
||||||
{
|
{
|
||||||
parent::__construct($collection, $flags);
|
parent::__construct($collection->getArrayCopy(), $flags);
|
||||||
$this->collection = $collection;
|
$this->collection = $collection;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue