Skip to content

Commit

Permalink
Fixes test error about missing annotation_reader
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
weaverryan committed Jun 30, 2021
1 parent 936db0f commit ce0847c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tests/Doctrine/EntityRegeneratorTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -176,6 +176,9 @@ protected function configureContainer(ContainerBuilder $c, LoaderInterface $load
'router' => [
'utf8' => true,
],
'annotations' => [
'enabled' => true,
]
]);

$dbal = [
Expand Down

0 comments on commit ce0847c

Please sign in to comment.