Skip to content

Commit 89e1046

Browse files
committed
Fix OS detection
1 parent a6979ae commit 89e1046

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Tools/Generator.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ class Generator
2323

2424
public function __construct()
2525
{
26-
$this->nl = strtoupper(substr(PHP_OS, 0, 3)) === "\r\n" : "\n";
26+
$this->nl = strtoupper(substr(PHP_OS, 0, 3)) === 'WIN' ? "\r\n" : "\n";
2727
}
2828

2929
public function makeClasses(string $version, array $paths) : void

0 commit comments

Comments
 (0)