Skip to content

Commit

Permalink
Update return type to Container
Browse files Browse the repository at this point in the history
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
```
  • Loading branch information
jerowork committed Feb 1, 2024
1 parent a1ef46a commit 6a83580
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/Functional/TestCase.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@

use Overblog\DataLoaderBundle\Tests\Functional\app\AppKernel;
use Symfony\Bundle\FrameworkBundle\Test\WebTestCase;
use Symfony\Component\DependencyInjection\ContainerInterface;
use Symfony\Component\DependencyInjection\Container;
use Symfony\Component\Filesystem\Filesystem;
use Symfony\Component\HttpKernel\KernelInterface;

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

protected static function getContainer(): ContainerInterface
protected static function getContainer(): Container
{
return static::$kernel->getContainer();
}
Expand Down

0 comments on commit 6a83580

Please sign in to comment.