diff --git a/src/Support/AutoloadManager.php b/src/Support/AutoloadManager.php index a3a7051..ad66b74 100644 --- a/src/Support/AutoloadManager.php +++ b/src/Support/AutoloadManager.php @@ -296,6 +296,7 @@ public function discoverProviders(): array return Lody::classesFromFinder($this->finder($paths)) ->isNotAbstract() ->isInstanceOf(ServiceProvider::class) + ->values() ->toArray(); } @@ -320,6 +321,7 @@ public function discoverCommands(): array return Lody::classesFromFinder($this->finder($paths)) ->isNotAbstract() ->isInstanceOf(Command::class) + ->values() ->toArray(); }