Skip to content

Commit bb39dff

Browse files
committed
Added fix to use native new line chars
1 parent 8b63998 commit bb39dff

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Printer/ArrayPrinter.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -155,8 +155,8 @@ 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"
159-
) ? "\n" : '';
158+
&& $previousTokens[1]->text === PHP_EOL . PHP_EOL
159+
) ? PHP_EOL : '';
160160

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

0 commit comments

Comments
 (0)