Skip to content

Commit 3778742

Browse files
committed
feature #254 Allow testing against doctrine/doctrine-bundle:^3.0 (ajgarlag)
This PR was merged into the 1.x-dev branch. Discussion ---------- Allow testing against `doctrine/doctrine-bundle:^3.0` First step toward Symfony 8 support Commits ------- 9cefec5 Allow testing against `doctrine/doctrine-bundle:^3.0`
2 parents 242ea1f + 9cefec5 commit 3778742

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
"require-dev": {
3232
"ext-pdo": "*",
3333
"ext-pdo_sqlite": "*",
34-
"doctrine/doctrine-bundle": "^2.8.0",
34+
"doctrine/doctrine-bundle": "^2.8|^3.0",
3535
"doctrine/orm": "^2.14|^3.0",
3636
"php-cs-fixer/shim": "^3.38",
3737
"phpstan/phpstan": "^2.1",

tests/TestKernel.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
namespace League\Bundle\OAuth2ServerBundle\Tests;
66

77
use Doctrine\DBAL\Platforms\SQLitePlatform;
8-
use Doctrine\ORM\Mapping\Annotation;
98
use League\Bundle\OAuth2ServerBundle\Manager\AccessTokenManagerInterface;
109
use League\Bundle\OAuth2ServerBundle\Manager\AuthorizationCodeManagerInterface;
1110
use League\Bundle\OAuth2ServerBundle\Manager\ClientManagerInterface;
@@ -90,8 +89,7 @@ public function registerContainerConfiguration(LoaderInterface $loader): void
9089
],
9190
];
9291

93-
$doctrine['orm'] = ['enable_lazy_ghost_objects' => !interface_exists(Annotation::class)];
94-
92+
$doctrine['orm'] = [];
9593
$container->loadFromExtension('doctrine', $doctrine);
9694

9795
$framework = [

0 commit comments

Comments
 (0)