Skip to content

Commit 5655428

Browse files
authored
Replace uses of PHP_EOL with "\n" (#12)
See phpactor/phpactor#2567.
1 parent a92a71e commit 5655428

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/Workspace.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ public function loadManifest(string $manifest): void
118118
*/
119119
private function parseManifest(string $manifest): array
120120
{
121-
$lines = explode(PHP_EOL, $manifest);
121+
$lines = explode("\n", $manifest);
122122

123123
$buffer = [];
124124
$currentFile = null;
@@ -143,7 +143,7 @@ private function parseManifest(string $manifest): array
143143
}
144144

145145
return array_map(function (array $lines) {
146-
return implode(PHP_EOL, $lines);
146+
return implode("\n", $lines);
147147
}, $buffer);
148148
}
149149

0 commit comments

Comments
 (0)