It seems like artisan() must be provided by classes using this trait. How about adding it as abstract method to this trait?
(
Ignorable by Annotation
)
If this is a false-positive, you can also ignore this issue in your code via the ignore-call annotation
30
$this->/** @scrutinizer ignore-call */
31
artisan('migrate:fresh', [
Loading history...
31
'--path' => realpath(__DIR__ . '/../migrations'),
32
'--realpath' => 1,
33
]);
34
35
$this->app[Kernel::class]->setArtisan(null);
36
37
// here we don't care about rollback (to make it faster)
It seems like beforeApplicationDestroyed() must be provided by classes using this trait. How about adding it as abstract method to this trait?
(
Ignorable by Annotation
)
If this is a false-positive, you can also ignore this issue in your code via the ignore-call annotation
38
$this->/** @scrutinizer ignore-call */
39
beforeApplicationDestroyed(function () {
Loading history...
39
RefreshDatabaseState::$migrated = false;
40
});
41
}
42
43
/**
44
* Use default handling way (same as DatabaseMigrations).