diff --git a/src/Commands/NewCommand.php b/src/Commands/NewCommand.php index 3b62ab8..c2e8d9f 100644 --- a/src/Commands/NewCommand.php +++ b/src/Commands/NewCommand.php @@ -164,6 +164,10 @@ public function generateFiles() } } + if ($stub == 'composer.json') { + $content = str_replace('"require": []', '"require": {}', $content); + } + if (! $this->filesystem->isDirectory($dir = dirname($path))) { $this->filesystem->makeDirectory($dir, 0775, true); $this->removeParentDirGitKeep($dir);