Skip to content

Commit

Permalink
Fix Symfony 7 tests compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
damienalexandre committed Jan 31, 2024
1 parent 85122f7 commit d65cf89
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/Messenger/TestControllerFunctionalTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@

use Symfony\Bundle\FrameworkBundle\Test\KernelTestCase;
use Symfony\Bundle\FrameworkBundle\Test\WebTestCase;
use Symfony\Component\DependencyInjection\ContainerInterface;
use Symfony\Component\DependencyInjection\Container;
use Symfony\Component\Messenger\Transport\InMemoryTransport;

final class TestControllerFunctionalTest extends WebTestCase
Expand Down Expand Up @@ -53,7 +53,7 @@ public function testControllerWithResponse(): void
$this->assertSame(200, $client->getResponse()->getStatusCode());
}

protected static function getContainer(): ContainerInterface
protected static function getContainer(): Container
{
if (method_exists(KernelTestCase::class, 'getContainer')) {
return parent::getContainer();
Expand Down

0 comments on commit d65cf89

Please sign in to comment.