Skip to content

Commit

Permalink
Added CreatesApplication strict typing
Browse files Browse the repository at this point in the history
  • Loading branch information
JanMikes committed Dec 11, 2022
1 parent 9bb4e8c commit 113633c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion tests/Traits/CreatesApplication.php
Expand Up @@ -22,7 +22,10 @@ public function createApplication(): Application
/** @var Application $app */
$app = require __DIR__ . '/../../bootstrap/app.php';

$this->artisan = $app->make(Artisan::class);
$artisan = $app->make(Artisan::class);
assert($artisan instanceof Kernel);

$this->artisan = $artisan;
$this->artisan->bootstrap();

// Unless the DB is stored in memory, we need to migrate the DB only once for the whole test suite.
Expand Down

0 comments on commit 113633c

Please sign in to comment.