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