Skip to content

Commit 901c2ff

Browse files
author
Ivan Gavryshko
committed
MAGETWO-43495: Fix composer info parsing on windows
- fixed parsing issue on Windows platform
1 parent b5a85a9 commit 901c2ff

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/InfoCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ public function run($package, $installed = false)
6767
return false;
6868
}
6969

70-
$rawLines = explode(PHP_EOL, $output);
70+
$rawLines = explode("\n", str_replace("\r\n", "\n", $output));
7171

7272
foreach ($rawLines as $line) {
7373
$chunk = explode(':', $line);

0 commit comments

Comments
 (0)