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
Use while (true) instead of for (;;)
Co-authored-by: Oliver Klee <github@oliverklee.de>
  • Loading branch information
JakeQZ and oliverklee authored Mar 16, 2025
commit d503f75aaa2014337868c4bf43787301449141c6
2 changes: 1 addition & 1 deletion src/RuleSet/RuleSet.php
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ public static function parseRuleSet(ParserState $parserState, RuleSet $ruleSet):
while ($parserState->comes(';')) {
$parserState->consume(';');
}
for (;;) {
while (true) {
$commentsBeforeRule = $parserState->consumeWhiteSpace();
if ($parserState->comes('}')) {
break;
Expand Down