We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 522c7e2 commit c001601Copy full SHA for c001601
src/Parser/PhpDocParser.php
@@ -230,7 +230,7 @@ private function parseText(TokenIterator $tokens): Ast\PhpDoc\PhpDocTextNode
230
}
231
232
$tokens->dropSavePoint();
233
- $text .= "\n";
+ $text .= $tokens->getDetectedNewline() ?? "\n";
234
235
236
return new Ast\PhpDoc\PhpDocTextNode(trim($text, " \t"));
@@ -287,7 +287,7 @@ private function parseOptionalDescriptionAfterDoctrineTag(TokenIterator $tokens)
287
288
289
290
291
292
293
return trim($text, " \t");
0 commit comments