Skip to content

Commit 9b36e81

Browse files
committed
try fixing windows builds
1 parent 2d281b3 commit 9b36e81

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/Utils/PhpDocGenerator.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,10 @@ class PhpDocGenerator
66
{
77
public function fromText(string $text, int $spaces = 0, bool $deleteEmptyLines = false): string
88
{
9-
$result = $this->prependSpaces("/**\n", $spaces);
9+
$eol = PHP_EOL;
10+
$result = $this->prependSpaces("/**{$eol}", $spaces);
1011
foreach ($this->convertTextToLines($text, $deleteEmptyLines) as $line) {
11-
$result .= $this->prependSpaces(" * {$this->safeLine($line)}\n", $spaces);
12+
$result .= $this->prependSpaces(" * {$this->safeLine($line)}{$eol}", $spaces);
1213
}
1314
$result .= $this->prependSpaces(" */", $spaces);
1415

0 commit comments

Comments
 (0)