mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-27 21:58:52 +00:00
[ticket/12575] Use strict comparison
PHPBB3-12575
This commit is contained in:
parent
d33ed1edf6
commit
482f60f1bd
1 changed files with 2 additions and 2 deletions
|
@ -45,7 +45,7 @@ class service_collection_iterator extends \ArrayIterator
|
||||||
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);
|
||||||
|
@ -75,7 +75,7 @@ class service_collection_iterator extends \ArrayIterator
|
||||||
public function current()
|
public function current()
|
||||||
{
|
{
|
||||||
$task = parent::current();
|
$task = parent::current();
|
||||||
if ($task == null)
|
if ($task === null)
|
||||||
{
|
{
|
||||||
$name = $this->key();
|
$name = $this->key();
|
||||||
$task = $this->container->get($name);
|
$task = $this->container->get($name);
|
||||||
|
|
Loading…
Add table
Reference in a new issue