mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-30 21:40:43 +02:00
[ticket/12575] Add missing property
PHPBB3-12575
This commit is contained in:
@@ -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);
|
||||
|
Reference in New Issue
Block a user