minor #36945 [DependencyInjection] Fixed tests for wither with static return type (derrabus)

This PR was merged into the 5.1 branch.

Discussion
----------

[DependencyInjection] Fixed tests for wither with static return type

| Q             | A
| ------------- | ---
| Branch?       | 5.1
| Bug fix?      | yes
| New feature?  | no
| Deprecations? | no
| Tickets       | #36872
| License       | MIT
| Doc PR        | N/A

This PR fixes the remaining failing test on php 8 for the DependencyInjection suite.

Commits
-------

b27b535126 [DependencyInjection] Fixed tests for wither with static return type.
This commit is contained in:
Nicolas Grekas 2020-05-24 20:45:32 +02:00
commit 595ca2ec8b
2 changed files with 4 additions and 2 deletions

View File

@ -2,6 +2,8 @@
namespace Symfony\Component\DependencyInjection\Tests\Fixtures;
use Symfony\Component\DependencyInjection\Tests\Compiler\Foo;
class WitherStaticReturnType
{
public $foo;

View File

@ -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();