[ticket/12575] Add missing property

PHPBB3-12575
This commit is contained in:
Tristan Darricau 2014-06-14 09:42:32 +02:00
parent 232a1c4fcb
commit d33ed1edf6

View file

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