Explorar o código

Add newline because JsonManipulator does not expand {}

Igor Wiedler %!s(int64=12) %!d(string=hai) anos
pai
achega
24611ec919
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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;