diff --git a/Tests/DependencyInjection/Fixtures/TestKernel.php b/Tests/DependencyInjection/Fixtures/TestKernel.php index 4184257f7..3e48c4980 100644 --- a/Tests/DependencyInjection/Fixtures/TestKernel.php +++ b/Tests/DependencyInjection/Fixtures/TestKernel.php @@ -43,7 +43,7 @@ public function registerContainerConfiguration(LoaderInterface $loader): void 'secret' => 'F00', 'http_method_override' => false, 'annotations' => [ - 'enabled' => class_exists(Annotation::class), + 'enabled' => class_exists(Annotation::class) && Kernel::VERSION_ID <= 64000, ], ]);