Skip to content

Commit e01259e

Browse files
committed
Fixes test error about missing annotation_reader
Starting in Composer 2.1 & Symfony 5.3, whether the annotations system is auto-enabled depends on whether doctrine/annotations will be available *without* taking into account dev dependencies. In MakerBundle, when we boot a test container, doctrine/annotations is a dev dependency only (appropriately), which incorrectly hints to the container that the system should not be initialized. So, we force it.
1 parent 936db0f commit e01259e

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

tests/Doctrine/EntityRegeneratorTest.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -176,6 +176,9 @@ protected function configureContainer(ContainerBuilder $c, LoaderInterface $load
176176
'router' => [
177177
'utf8' => true,
178178
],
179+
'annotations' => [
180+
'enabled' => true,
181+
],
179182
]);
180183

181184
$dbal = [

0 commit comments

Comments
 (0)