diff --git a/src/RuleSet/RuleSet.php b/src/RuleSet/RuleSet.php index 27750dcf..9aea78b3 100644 --- a/src/RuleSet/RuleSet.php +++ b/src/RuleSet/RuleSet.php @@ -69,9 +69,9 @@ public static function parseRuleSet(ParserState $parserState, RuleSet $ruleSet): $rule = Rule::parse($parserState); } catch (UnexpectedTokenException $e) { try { - $sConsume = $parserState->consumeUntil(["\n", ';', '}'], true); + $consumedText = $parserState->consumeUntil(["\n", ';', '}'], true); // We need to “unfind” the matches to the end of the ruleSet as this will be matched later - if ($parserState->streql(\substr($sConsume, -1), '}')) { + if ($parserState->streql(\substr($consumedText, -1), '}')) { $parserState->backtrack(1); } else { while ($parserState->comes(';')) {