Skip to content

Commit f5a70a8

Browse files
committed
📦 Add parameter type - support for Symfony 4 was dropped before
1 parent f310303 commit f5a70a8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/GraphQLiteTestingKernel.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
use Symfony\Component\DependencyInjection\Compiler\CompilerPassInterface;
1414
use Symfony\Component\DependencyInjection\ContainerBuilder;
1515
use Symfony\Component\HttpKernel\Kernel;
16+
use Symfony\Component\Routing\Loader\Configurator\RoutingConfigurator;
1617
use TheCodingMachine\GraphQLite\Bundle\GraphQLiteBundle;
1718
use Symfony\Component\Security\Core\User\InMemoryUser;
1819
use function class_exists;
@@ -196,8 +197,7 @@ public function configureContainer(ContainerBuilder $c, LoaderInterface $loader)
196197
$loader->load($confDir.'/{services}_'.$this->environment.self::CONFIG_EXTS, 'glob');
197198
}
198199

199-
// Note: typing is disabled because using different classes in Symfony 4 and 5
200-
protected function configureRoutes(/*RoutingConfigurator*/ $routes)
200+
protected function configureRoutes(RoutingConfigurator $routes): void
201201
{
202202
$routes->import(__DIR__.'/../src/Resources/config/routes.php');
203203
}

0 commit comments

Comments
 (0)