From 482f60f1bd45580fe7010a5687a66dd9b0695d29 Mon Sep 17 00:00:00 2001 From: Tristan Darricau Date: Sat, 14 Jun 2014 12:04:25 +0200 Subject: [PATCH] [ticket/12575] Use strict comparison PHPBB3-12575 --- phpBB/phpbb/di/service_collection_iterator.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/phpBB/phpbb/di/service_collection_iterator.php b/phpBB/phpbb/di/service_collection_iterator.php index 6e8e1de7a4..54aefca1f7 100644 --- a/phpBB/phpbb/di/service_collection_iterator.php +++ b/phpBB/phpbb/di/service_collection_iterator.php @@ -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);