1
0
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:
Tristan Darricau 2014-06-14 12:04:25 +02:00
parent d33ed1edf6
commit 482f60f1bd

View File

@ -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);