Skip to content

Commit

Permalink
Apply is_null
Browse files Browse the repository at this point in the history
  • Loading branch information
Slamdunk committed Jan 2, 2018
1 parent d1e561e commit 85ab80a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/Doctrine/Tests/OrmFunctionalTestCase.php
Original file line number Diff line number Diff line change
Expand Up @@ -684,15 +684,15 @@ 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 {
self::$metadataCacheImpl = new ArrayCache();
}
}

if (is_null(self::$queryCacheImpl)) {
if (null === self::$queryCacheImpl) {
self::$queryCacheImpl = new ArrayCache();
}

Expand Down

0 comments on commit 85ab80a

Please sign in to comment.