1
0
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:
Mate Bartus
2015-07-02 16:10:55 +02:00
parent c80cf87b90
commit 108b9833a1

View File

@@ -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;
}