Skip to content

Commit b316443

Browse files
committed
PhpDocParser: change whitespace handling
1 parent 2e73ac5 commit b316443

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/Parser/PhpDocParser.php

+4-3
Original file line numberDiff line numberDiff line change
@@ -43,15 +43,16 @@ public function parse(TokenIterator $tokens): Ast\PhpDoc\PhpDocNode
4343
$children[] = new Ast\PhpDoc\PhpDocTextNode($textNode);
4444
$textNode = '';
4545
}
46+
4647
$children[] = $this->parseTag($tokens);
4748

4849
} else {
4950
$textNode .= $tokens->currentTokenValue();
5051
$tokens->next();
51-
}
5252

53-
if ($tokens->tryConsumeHorizontalWhiteSpace()) {
54-
$textNode .= $tokens->prevTokenValue();
53+
if ($tokens->tryConsumeHorizontalWhiteSpace()) {
54+
$textNode .= $tokens->prevTokenValue();
55+
}
5556
}
5657
}
5758

0 commit comments

Comments
 (0)