Skip to content

Commit d75a584

Browse files
committed
TL-39987: Fix error when consuming comments
1 parent 9e3c5be commit d75a584

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Parsing/ParserState.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -240,7 +240,7 @@ public function consumeWhiteSpace($consumeComments = true)
240240
$this->consume(1);
241241
}
242242
if (!$consumeComments) {
243-
return;
243+
return $aComments;
244244
}
245245
if ($this->oParserSettings->bLenientParsing) {
246246
try {

0 commit comments

Comments
 (0)