diff --git a/src/Composer/Command/RequireCommand.php b/src/Composer/Command/RequireCommand.php index 1f3ae7a5a..425481572 100644 --- a/src/Composer/Command/RequireCommand.php +++ b/src/Composer/Command/RequireCommand.php @@ -54,7 +54,7 @@ EOT { $file = Factory::getComposerFile(); - if (!file_exists($file) && !file_put_contents($file, "{}\n")) { + if (!file_exists($file) && !file_put_contents($file, "{\n}\n")) { $output->writeln(''.$file.' could not be created.'); return 1;