1
0
Fork 0
mirror of https://github.com/composer/composer synced 2025-05-11 01:22:54 +00:00

Add newline because JsonManipulator does not expand {}

This commit is contained in:
Igor Wiedler 2013-01-13 16:02:50 +01:00
parent a48675005b
commit 24611ec919

View file

@ -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('<error>'.$file.' could not be created.</error>');
return 1;