mirror of
https://github.com/phpbb/phpbb.git
synced 2025-02-24 03:54:10 +01:00
[ticket/12575] Use strict comparison
PHPBB3-12575
This commit is contained in:
parent
d33ed1edf6
commit
482f60f1bd
@ -45,7 +45,7 @@ class service_collection_iterator extends \ArrayIterator
|
||||
public function offsetGet($index)
|
||||
{
|
||||
$task = parent::offsetGet($index);
|
||||
if ($task == null)
|
||||
if ($task === null)
|
||||
{
|
||||
$task = $this->container->get($index);
|
||||
$this->offsetSet($index, $task);
|
||||
@ -75,7 +75,7 @@ class service_collection_iterator extends \ArrayIterator
|
||||
public function current()
|
||||
{
|
||||
$task = parent::current();
|
||||
if ($task == null)
|
||||
if ($task === null)
|
||||
{
|
||||
$name = $this->key();
|
||||
$task = $this->container->get($name);
|
||||
|
Loading…
x
Reference in New Issue
Block a user