diff --git a/src/Composer/Json/JsonFile.php b/src/Composer/Json/JsonFile.php index 2af32d32f..307139a6f 100644 --- a/src/Composer/Json/JsonFile.php +++ b/src/Composer/Json/JsonFile.php @@ -104,7 +104,7 @@ class JsonFile ); } } - file_put_contents($this->path, static::encode($hash, $options)); + file_put_contents($this->path, static::encode($hash, $options). ($options & JSON_PRETTY_PRINT ? "\n" : '')); } /**