Skip to content

Commit 64a935c

Browse files
committed
Added fix for windows
1 parent 8f9b9b6 commit 64a935c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Printer/ArrayPrinter.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ protected function pStmt_Return(Stmt\Return_ $node): string
155155
count($previousTokens) > 1
156156
&& $previousTokens[1]->id === T_WHITESPACE
157157
&& $previousTokens[0]->id !== T_WHITESPACE
158-
&& $previousTokens[1]->text === "\n\n"
158+
&& $previousTokens[1]->text === PHP_EOL . PHP_EOL
159159
) ? "\n" : '';
160160

161161
return $prefix . 'return' . (null !== $node->expr ? ' ' . $this->p($node->expr) : '') . ';';

0 commit comments

Comments
 (0)