Skip to content

Commit d2e7e2f

Browse files
authored
chore: cleanup for Psalm level 1 (#162)
1 parent be4d0fd commit d2e7e2f

File tree

2 files changed

+2
-6
lines changed

2 files changed

+2
-6
lines changed

tests/Functional/Controller/StaticRoutesSmokeTest.php

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
namespace App\Tests\Functional\Controller;
66

77
use PHPUnit\Framework\Attributes\DataProvider;
8-
use Symfony\Bundle\FrameworkBundle\Test\TestContainer;
98
use Symfony\Bundle\FrameworkBundle\Test\WebTestCase;
109
use 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

tests/bootstrap.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,6 @@
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
}

0 commit comments

Comments
 (0)