Skip to content

Commit

Permalink
Merge branch '6.x' into 7.x
Browse files Browse the repository at this point in the history
  • Loading branch information
crynobone committed Aug 22, 2023
2 parents 7ed8342 + 74bfad3 commit 3ef2413
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/Presets/Preset.php
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,9 @@ public function seederNamespace(): string
*/
public function addAdditionalCommands(Application $app): void
{
foreach ($this->config('generators', []) as $generator) {
$generators = $this->config('generators') ?? [];

foreach (Arr::wrap($generators) as $generator) {
/** @var \Symfony\Component\Console\Command\Command $generator */
$app->add(new $generator($this));
}
Expand Down

0 comments on commit 3ef2413

Please sign in to comment.