diff --git a/src/RuleSet/DeclarationBlock.php b/src/RuleSet/DeclarationBlock.php index 314bbae3d..bd295dd21 100644 --- a/src/RuleSet/DeclarationBlock.php +++ b/src/RuleSet/DeclarationBlock.php @@ -42,9 +42,10 @@ public static function parse(ParserState $parserState, ?CSSList $list = null): ? try { $selectorParts = []; $stringWrapperCharacter = null; + static $stopCharacters = ['{', '}', '\'', '"']; do { $selectorParts[] = $parserState->consume(1) - . $parserState->consumeUntil(['{', '}', '\'', '"'], false, false, $comments); + . $parserState->consumeUntil($stopCharacters, false, false, $comments); $nextCharacter = $parserState->peek(); switch ($nextCharacter) { case '\'':