Skip to content

Commit 594964e

Browse files
committed
Make PHPStan aware of booted kernel in E2E tests
1 parent 3972749 commit 594964e

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

tests/End2End/End2EndTest.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -198,8 +198,7 @@ public function testNotice(): void
198198

199199
public function testCommand(): void
200200
{
201-
self::bootKernel();
202-
$application = new Application(self::$kernel);
201+
$application = new Application(self::bootKernel());
203202

204203
try {
205204
$application->doRun(new ArgvInput(['bin/console', 'main-command', '--option1', '--option2=foo', 'bar']), new NullOutput());

0 commit comments

Comments
 (0)