aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--phpBB/phpbb/di/service_collection_iterator.php10
1 files changed, 1 insertions, 9 deletions
diff --git a/phpBB/phpbb/di/service_collection_iterator.php b/phpBB/phpbb/di/service_collection_iterator.php
index 3fb5671cc5..0d031ab52d 100644
--- a/phpBB/phpbb/di/service_collection_iterator.php
+++ b/phpBB/phpbb/di/service_collection_iterator.php
@@ -41,14 +41,6 @@ class service_collection_iterator extends \ArrayIterator
*/
public function current()
{
- $task = parent::current();
- if ($task === null)
- {
- $name = $this->key();
- $task = $this->collection->offsetGet($name);
- $this->offsetSet($name, $task);
- }
-
- return $task;
+ return $this->collection->offsetGet($this->key());
}
}