diff --git a/phpBB/phpbb/di/service_collection.php b/phpBB/phpbb/di/service_collection.php index b64d8c9dcd..a8eeeab8bb 100644 --- a/phpBB/phpbb/di/service_collection.php +++ b/phpBB/phpbb/di/service_collection.php @@ -20,6 +20,11 @@ use Symfony\Component\DependencyInjection\ContainerInterface; */ class service_collection extends \ArrayObject { + /** + * @var \Symfony\Component\DependencyInjection\ContainerInterface + */ + protected $container; + /** * Constructor * @@ -59,7 +64,7 @@ class service_collection extends \ArrayObject public function offsetGet($index) { $task = parent::offsetGet($index); - if ($task == null) + if ($task === null) { $task = $this->container->get($index); $this->offsetSet($index, $task);