Prechádzať zdrojové kódy

Add newline because JsonManipulator does not expand {}

Igor Wiedler 12 rokov pred
rodič
commit
24611ec919
1 zmenil súbory, kde vykonal 1 pridanie a 1 odobranie
  1. 1 1
      src/Composer/Command/RequireCommand.php

+ 1 - 1
src/Composer/Command/RequireCommand.php

@@ -54,7 +54,7 @@ EOT
     {
     {
         $file = Factory::getComposerFile();
         $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>');
             $output->writeln('<error>'.$file.' could not be created.</error>');
 
 
             return 1;
             return 1;