From 3210e987600fef7d067f3f9bb0e241c274e0835d Mon Sep 17 00:00:00 2001 From: Filippo Tessarotto Date: Tue, 2 Jan 2018 08:54:20 +0100 Subject: [PATCH] Apply is_null --- tests/Doctrine/Tests/OrmFunctionalTestCase.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/Doctrine/Tests/OrmFunctionalTestCase.php b/tests/Doctrine/Tests/OrmFunctionalTestCase.php index a8274a1fbc1..d036a4190fa 100644 --- a/tests/Doctrine/Tests/OrmFunctionalTestCase.php +++ b/tests/Doctrine/Tests/OrmFunctionalTestCase.php @@ -684,7 +684,7 @@ protected function getEntityManager(Connection $connection = null, MappingDriver // NOTE: Functional tests use their own shared metadata cache, because // the actual database platform used during execution has effect on some // metadata mapping behaviors (like the choice of the ID generation). - if (is_null(self::$metadataCacheImpl)) { + if (null === self::$metadataCacheImpl) { if (isset($GLOBALS['DOCTRINE_CACHE_IMPL'])) { self::$metadataCacheImpl = new $GLOBALS['DOCTRINE_CACHE_IMPL']; } else { @@ -692,7 +692,7 @@ protected function getEntityManager(Connection $connection = null, MappingDriver } } - if (is_null(self::$queryCacheImpl)) { + if (null === self::$queryCacheImpl) { self::$queryCacheImpl = new ArrayCache(); }