mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 22:28:51 +00:00
[ticket/12575] Add missing property
PHPBB3-12575
This commit is contained in:
parent
232a1c4fcb
commit
d33ed1edf6
1 changed files with 6 additions and 1 deletions
|
@ -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);
|
||||||
|
|
Loading…
Add table
Reference in a new issue