Skip to content

Commit aad8e56

Browse files
committed
Add forgotten check for document end
1 parent e0efd9f commit aad8e56

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

lib/Sabberworm/CSS/CSSList/CSSList.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,9 @@ private static function parseAtRule(ParserState $oParserState) {
141141
$sPrefix = $mUrl;
142142
$mUrl = Value::parsePrimitiveValue($oParserState);
143143
}
144-
$oParserState->consume(';');
144+
if (!$oParserState->isEnd()) {
145+
$oParserState->consume(';');
146+
}
145147
if ($sPrefix !== null && !is_string($sPrefix)) {
146148
throw new UnexpectedTokenException('Wrong namespace prefix', $sPrefix, 'custom', $iIdentifierLineNum);
147149
}

0 commit comments

Comments
 (0)