From e01259ed5bb7127aee82144b0c5b66a1c59744a3 Mon Sep 17 00:00:00 2001 From: Ryan Weaver Date: Wed, 30 Jun 2021 09:40:01 -0400 Subject: [PATCH] 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. --- tests/Doctrine/EntityRegeneratorTest.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/Doctrine/EntityRegeneratorTest.php b/tests/Doctrine/EntityRegeneratorTest.php index 2749f834e..d75440000 100644 --- a/tests/Doctrine/EntityRegeneratorTest.php +++ b/tests/Doctrine/EntityRegeneratorTest.php @@ -176,6 +176,9 @@ protected function configureContainer(ContainerBuilder $c, LoaderInterface $load 'router' => [ 'utf8' => true, ], + 'annotations' => [ + 'enabled' => true, + ], ]); $dbal = [