Skip to content

Commit

Permalink
Merge branch '8.x'
Browse files Browse the repository at this point in the history
Signed-off-by: Mior Muhammad Zaki <[email protected]>
  • Loading branch information
crynobone committed Aug 22, 2023
2 parents 7f99fe4 + 48ceac3 commit 4b65c91
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 4b65c91

Please sign in to comment.