Skip to content

Commit 5a343c5

Browse files
committed
Merge remote-tracking branch 'origin/1.3.x' into 1.4.x
2 parents 97f8ecc + 078217e commit 5a343c5

File tree

5 files changed

+20
-15
lines changed

5 files changed

+20
-15
lines changed

tests/DoctrineIntegration/ORM/entity-manager.php

+4-3
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
use Cache\Adapter\PHPArray\ArrayCachePool;
44
use Doctrine\Common\Annotations\AnnotationReader;
5+
use Doctrine\DBAL\DriverManager;
56
use Doctrine\ORM\Configuration;
67
use Doctrine\ORM\EntityManager;
78
use Doctrine\ORM\Mapping\Driver\AnnotationDriver;
@@ -18,10 +19,10 @@
1819
)
1920
);
2021

21-
return EntityManager::create(
22-
[
22+
return new EntityManager(
23+
DriverManager::getConnection([
2324
'driver' => 'pdo_sqlite',
2425
'memory' => true,
25-
],
26+
]),
2627
$config
2728
);

tests/Rules/DeadCode/entity-manager.php

+4-3
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
use Cache\Adapter\PHPArray\ArrayCachePool;
44
use Doctrine\Common\Annotations\AnnotationReader;
5+
use Doctrine\DBAL\DriverManager;
56
use Doctrine\ORM\Configuration;
67
use Doctrine\ORM\EntityManager;
78
use Doctrine\ORM\Mapping\Driver\AnnotationDriver;
@@ -27,10 +28,10 @@
2728

2829
$config->setMetadataDriverImpl($metadataDriver);
2930

30-
return EntityManager::create(
31-
[
31+
return new EntityManager(
32+
DriverManager::getConnection([
3233
'driver' => 'pdo_sqlite',
3334
'memory' => true,
34-
],
35+
]),
3536
$config
3637
);

tests/Rules/Doctrine/ORM/entity-manager.php

+4-3
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
use Cache\Adapter\PHPArray\ArrayCachePool;
44
use Doctrine\Common\Annotations\AnnotationReader;
5+
use Doctrine\DBAL\DriverManager;
56
use Doctrine\DBAL\Types\DateTimeImmutableType;
67
use Doctrine\DBAL\Types\Type;
78
use Doctrine\ORM\Configuration;
@@ -35,10 +36,10 @@
3536
DateTimeImmutableType::class
3637
);
3738

38-
return EntityManager::create(
39-
[
39+
return new EntityManager(
40+
DriverManager::getConnection([
4041
'driver' => 'pdo_sqlite',
4142
'memory' => true,
42-
],
43+
]),
4344
$config
4445
);

tests/Rules/Properties/entity-manager.php

+4-3
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
use Cache\Adapter\PHPArray\ArrayCachePool;
44
use Doctrine\Common\Annotations\AnnotationReader;
5+
use Doctrine\DBAL\DriverManager;
56
use Doctrine\ORM\Configuration;
67
use Doctrine\ORM\EntityManager;
78
use Doctrine\ORM\Mapping\Driver\AnnotationDriver;
@@ -28,10 +29,10 @@
2829

2930
$config->setMetadataDriverImpl($metadataDriver);
3031

31-
return EntityManager::create(
32-
[
32+
return new EntityManager(
33+
DriverManager::getConnection([
3334
'driver' => 'pdo_sqlite',
3435
'memory' => true,
35-
],
36+
]),
3637
$config
3738
);

tests/Type/Doctrine/data/QueryResult/entity-manager.php

+4-3
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
use Cache\Adapter\PHPArray\ArrayCachePool;
44
use Doctrine\Common\Annotations\AnnotationReader;
5+
use Doctrine\DBAL\DriverManager;
56
use Doctrine\ORM\Configuration;
67
use Doctrine\ORM\EntityManager;
78
use Doctrine\ORM\Mapping\Column;
@@ -30,10 +31,10 @@
3031

3132
$config->setMetadataDriverImpl($metadataDriver);
3233

33-
return EntityManager::create(
34-
[
34+
return new EntityManager(
35+
DriverManager::getConnection([
3536
'driver' => 'pdo_sqlite',
3637
'memory' => true,
37-
],
38+
]),
3839
$config
3940
);

0 commit comments

Comments
 (0)