diff --git a/src/Symfony/Component/DependencyInjection/Tests/Compiler/CheckTypeDeclarationsPassTest.php b/src/Symfony/Component/DependencyInjection/Tests/Compiler/CheckTypeDeclarationsPassTest.php index c2de65d51b..4314d34958 100644 --- a/src/Symfony/Component/DependencyInjection/Tests/Compiler/CheckTypeDeclarationsPassTest.php +++ b/src/Symfony/Component/DependencyInjection/Tests/Compiler/CheckTypeDeclarationsPassTest.php @@ -726,7 +726,7 @@ class CheckTypeDeclarationsPassTest extends TestCase $container = new ContainerBuilder(); $container ->register('foobar', Deprecated::class) - ->setDeprecated(true) + ->setDeprecated('foo/bar', '1.2.3', '') ; (new CheckTypeDeclarationsPass(true))->process($container);