Skip to content

Commit

Permalink
fix: Added CreatesApplication strict typing (#1626)
Browse files Browse the repository at this point in the history
  • Loading branch information
JanMikes committed Dec 15, 2022
1 parent e8e2c2d commit 9e864c9
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);
/** @var Kernel $artisan */
$artisan = $app->make(Artisan::class);

$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 9e864c9

Please sign in to comment.