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:
@@ -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);
|
||||||
|
Reference in New Issue
Block a user