mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-03 23:37:39 +02:00
[ticket/13961] Define behaviour when the array is modified in a loop
PHPBB3-13961
This commit is contained in:
@@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user