Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Don't consume character after , without checking
Also remove fix for `consumeUntil` bug, which #1320 will address.
  • Loading branch information
JakeQZ committed Jul 10, 2025
commit 7a06c91a6f295e569136fc31e263a53516e0ee65
4 changes: 0 additions & 4 deletions src/Parsing/ParserState.php
Original file line number Diff line number Diff line change
Expand Up @@ -345,10 +345,6 @@ public function consumeUntil(
$start = $this->currentPosition;

while (!$this->isEnd()) {
$comment = $this->consumeComment();
if ($comment instanceof Comment) {
$comments[] = $comment;
}
$character = $this->consume(1);
if (\in_array($character, $stopCharacters, true)) {
if ($includeEnd) {
Expand Down