1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-07-31 22:10:45 +02:00

[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 class service_collection extends \ArrayObject
{ {
/**
* @var \Symfony\Component\DependencyInjection\ContainerInterface
*/
protected $container;
/** /**
* Constructor * Constructor
* *
@@ -59,7 +64,7 @@ class service_collection extends \ArrayObject
public function offsetGet($index) public function offsetGet($index)
{ {
$task = parent::offsetGet($index); $task = parent::offsetGet($index);
if ($task == null) if ($task === null)
{ {
$task = $this->container->get($index); $task = $this->container->get($index);
$this->offsetSet($index, $task); $this->offsetSet($index, $task);