fix: Added CreatesApplication strict typing (#1626)

This commit is contained in:
Jan Mikeš 2022-12-15 17:28:06 +01:00 committed by GitHub
parent e8e2c2db75
commit 9e864c937f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -22,7 +22,10 @@ trait CreatesApplication
/** @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.