mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-30 21:40:43 +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)
|
||||
{
|
||||
parent::__construct($collection, $flags);
|
||||
parent::__construct($collection->getArrayCopy(), $flags);
|
||||
$this->collection = $collection;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user