Skip to content

Commit 6a83580

Browse files
committed
Update return type to Container
With the update of Symfony 7.0, the return type is changed in `KernelTestCase`, resulting in: ``` Return type declaration must be compatible with KernelTestCase::getContainer() : \Symfony\Component\DependencyInjection\Container ```
1 parent a1ef46a commit 6a83580

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/Functional/TestCase.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313

1414
use Overblog\DataLoaderBundle\Tests\Functional\app\AppKernel;
1515
use Symfony\Bundle\FrameworkBundle\Test\WebTestCase;
16-
use Symfony\Component\DependencyInjection\ContainerInterface;
16+
use Symfony\Component\DependencyInjection\Container;
1717
use Symfony\Component\Filesystem\Filesystem;
1818
use Symfony\Component\HttpKernel\KernelInterface;
1919

@@ -49,7 +49,7 @@ public static function setUpBeforeClass(): void
4949
$fs->remove(sys_get_temp_dir().'/OverblogDataLoaderBundle/');
5050
}
5151

52-
protected static function getContainer(): ContainerInterface
52+
protected static function getContainer(): Container
5353
{
5454
return static::$kernel->getContainer();
5555
}

0 commit comments

Comments
 (0)