Skip to content

Commit 6866520

Browse files
committed
fix: add newline to the end of composer.json
1 parent 840292a commit 6866520

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

src/LibraryStarterKit/Task/Builder/UpdateComposerJson.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ public function build(): void
8888

8989
$this->getEnvironment()->getFilesystem()->dumpFile(
9090
$this->getEnvironment()->path('composer.json'),
91-
(string) json_encode($composer, self::JSON_OPTIONS),
91+
(string) json_encode($composer, self::JSON_OPTIONS) . "\n",
9292
);
9393
}
9494

tests/LibraryStarterKit/Task/Builder/__snapshots__/UpdateComposerJsonTest__testBuildWithMinimalComposerJson__1.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,4 @@
99
"name": "Jane Doe"
1010
}
1111
]
12-
}
12+
}

tests/LibraryStarterKit/Task/Builder/__snapshots__/UpdateComposerJsonTest__testBuild__1.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,4 +43,4 @@
4343
},
4444
"minimum-stability": "dev",
4545
"prefer-stable": true
46-
}
46+
}

0 commit comments

Comments
 (0)