Skip to content

Commit 450ca75

Browse files
authored
fix(core): gracefully handle missing seeders when using db:seed (#1759)
1 parent 9c82b71 commit 450ca75

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/Tempest/Framework/Commands/DatabaseSeedCommand.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,12 @@ public function __invoke(
3636
return;
3737
}
3838

39+
if ($this->seederConfig->seeders === []) {
40+
$this->console->info('No seeders are configured.');
41+
42+
return;
43+
}
44+
3945
if (count($this->seederConfig->seeders) === 1) {
4046
$this->runSeeder($this->seederConfig->seeders[0], $database);
4147
return;

0 commit comments

Comments
 (0)