From b27b5351265af5cbfacf7ef4f8d2d5b540e52f36 Mon Sep 17 00:00:00 2001 From: "Alexander M. Turek" Date: Sun, 24 May 2020 17:04:36 +0200 Subject: [PATCH] [DependencyInjection] Fixed tests for wither with static return type. --- .../Tests/Fixtures/WitherStaticReturnType.php | 2 ++ .../Tests/Fixtures/php/services_wither_staticreturntype.php | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/Symfony/Component/DependencyInjection/Tests/Fixtures/WitherStaticReturnType.php b/src/Symfony/Component/DependencyInjection/Tests/Fixtures/WitherStaticReturnType.php index 5a4d9840d3..1236b75dfa 100644 --- a/src/Symfony/Component/DependencyInjection/Tests/Fixtures/WitherStaticReturnType.php +++ b/src/Symfony/Component/DependencyInjection/Tests/Fixtures/WitherStaticReturnType.php @@ -2,6 +2,8 @@ namespace Symfony\Component\DependencyInjection\Tests\Fixtures; +use Symfony\Component\DependencyInjection\Tests\Compiler\Foo; + class WitherStaticReturnType { public $foo; diff --git a/src/Symfony/Component/DependencyInjection/Tests/Fixtures/php/services_wither_staticreturntype.php b/src/Symfony/Component/DependencyInjection/Tests/Fixtures/php/services_wither_staticreturntype.php index 85ba3bbb1b..9e46bf28b3 100644 --- a/src/Symfony/Component/DependencyInjection/Tests/Fixtures/php/services_wither_staticreturntype.php +++ b/src/Symfony/Component/DependencyInjection/Tests/Fixtures/php/services_wither_staticreturntype.php @@ -48,11 +48,11 @@ class Symfony_DI_PhpDumper_Service_WitherStaticReturnType extends Container /** * Gets the public 'wither' shared autowired service. * - * @return \Symfony\Component\DependencyInjection\Tests\Compiler\WitherStaticReturnType + * @return \Symfony\Component\DependencyInjection\Tests\Fixtures\WitherStaticReturnType */ protected function getWitherService() { - $instance = new \Symfony\Component\DependencyInjection\Tests\Compiler\WitherStaticReturnType(); + $instance = new \Symfony\Component\DependencyInjection\Tests\Fixtures\WitherStaticReturnType(); $a = new \Symfony\Component\DependencyInjection\Tests\Compiler\Foo();