Преглед изворни кода

Add newline because JsonManipulator does not expand {}

Igor Wiedler пре 12 година
родитељ
комит
24611ec919
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      src/Composer/Command/RequireCommand.php

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