aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/phpbb/di/service_collection_iterator.php
diff options
context:
space:
mode:
Diffstat (limited to 'phpBB/phpbb/di/service_collection_iterator.php')
-rw-r--r--phpBB/phpbb/di/service_collection_iterator.php17
1 files changed, 1 insertions, 16 deletions
diff --git a/phpBB/phpbb/di/service_collection_iterator.php b/phpBB/phpbb/di/service_collection_iterator.php
index 61d46af677..3fb5671cc5 100644
--- a/phpBB/phpbb/di/service_collection_iterator.php
+++ b/phpBB/phpbb/di/service_collection_iterator.php
@@ -36,21 +36,6 @@ class service_collection_iterator extends \ArrayIterator
$this->collection = $collection;
}
- // Because of a PHP issue we have to redefine offsetExists
- // (even with a call to the parent):
- // https://bugs.php.net/bug.php?id=66834
- // https://bugs.php.net/bug.php?id=67067
- // But it triggers a sniffer issue that we have to skip
- // @codingStandardsIgnoreStart
- /**
- * {@inheritdoc}
- */
- public function offsetExists($index)
- {
- parent::offsetExists($index);
- }
- // @codingStandardsIgnoreEnd
-
/**
* {@inheritdoc}
*/
@@ -60,7 +45,7 @@ class service_collection_iterator extends \ArrayIterator
if ($task === null)
{
$name = $this->key();
- $task = $this->collection[$name];
+ $task = $this->collection->offsetGet($name);
$this->offsetSet($name, $task);
}