Use null
comparation instead of is_null()
This commit is contained in:
parent
089cca636e
commit
1b9f42ae67
1 changed files with 2 additions and 2 deletions
|
@ -86,13 +86,13 @@ class EntityManagerMock extends \Doctrine\ORM\EntityManager
|
||||||
public static function create($conn, \Doctrine\ORM\Configuration $config = null,
|
public static function create($conn, \Doctrine\ORM\Configuration $config = null,
|
||||||
\Doctrine\Common\EventManager $eventManager = null)
|
\Doctrine\Common\EventManager $eventManager = null)
|
||||||
{
|
{
|
||||||
if (is_null($config)) {
|
if (null === $config) {
|
||||||
$config = new \Doctrine\ORM\Configuration();
|
$config = new \Doctrine\ORM\Configuration();
|
||||||
$config->setProxyDir(__DIR__ . '/../Proxies');
|
$config->setProxyDir(__DIR__ . '/../Proxies');
|
||||||
$config->setProxyNamespace('Doctrine\Tests\Proxies');
|
$config->setProxyNamespace('Doctrine\Tests\Proxies');
|
||||||
$config->setMetadataDriverImpl($config->newDefaultAnnotationDriver(array(), true));
|
$config->setMetadataDriverImpl($config->newDefaultAnnotationDriver(array(), true));
|
||||||
}
|
}
|
||||||
if (is_null($eventManager)) {
|
if (null === $eventManager) {
|
||||||
$eventManager = new \Doctrine\Common\EventManager();
|
$eventManager = new \Doctrine\Common\EventManager();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue