File tree Expand file tree Collapse file tree 2 files changed +2
-6
lines changed
Expand file tree Collapse file tree 2 files changed +2
-6
lines changed Original file line number Diff line number Diff line change 55namespace App \Tests \Functional \Controller ;
66
77use PHPUnit \Framework \Attributes \DataProvider ;
8- use Symfony \Bundle \FrameworkBundle \Test \TestContainer ;
98use Symfony \Bundle \FrameworkBundle \Test \WebTestCase ;
109use Symfony \Component \Routing \RouterInterface ;
1110
@@ -42,11 +41,8 @@ public static function provideRouteCollection(): \Generator
4241
4342 self ::bootKernel ();
4443
45- /** @var TestContainer $container */
46- $ container = self ::getContainer ();
47-
4844 /** @var RouterInterface $router */
49- $ router = $ container ->get (RouterInterface::class);
45+ $ router = self :: getContainer () ->get (RouterInterface::class);
5046
5147 $ routes = $ router ->getRouteCollection ();
5248
Original file line number Diff line number Diff line change 1212 (new Dotenv ())->bootEnv (dirname (__DIR__ ).'/.env ' );
1313}
1414
15- if ($ _SERVER ['APP_DEBUG ' ]) {
15+ if (( $ _SERVER ['APP_DEBUG ' ] ?? null ) === ' 1 ' ) {
1616 umask (0000 );
1717}
You can’t perform that action at this time.
0 commit comments