From 7ed8342baf76d356442db0a4def627ca330974e7 Mon Sep 17 00:00:00 2001 From: Mior Muhammad Zaki Date: Mon, 21 Aug 2023 20:58:34 +0800 Subject: [PATCH 1/2] wip Signed-off-by: Mior Muhammad Zaki --- composer.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/composer.json b/composer.json index 006c812..7ff42c4 100644 --- a/composer.json +++ b/composer.json @@ -30,7 +30,7 @@ }, "require-dev": { "laravel/pint": "^1.1", - "orchestra/testbench": "^7.18", + "orchestra/testbench": "^7.29", "phpstan/phpstan": "^1.10.6" }, "conflict": { From 74bfad3c0f7afb64e797c69bb9ea2c5eb3a186a6 Mon Sep 17 00:00:00 2001 From: Mior Muhammad Zaki Date: Tue, 22 Aug 2023 11:27:24 +0800 Subject: [PATCH 2/2] wip Signed-off-by: Mior Muhammad Zaki --- src/Presets/Preset.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/Presets/Preset.php b/src/Presets/Preset.php index ca5475c..0dd2dd1 100644 --- a/src/Presets/Preset.php +++ b/src/Presets/Preset.php @@ -147,7 +147,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)); }