Skip to content

Commit 1f9fcef

Browse files
committed
Use is_string throughout, not isset
1 parent 873085a commit 1f9fcef

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/RuleSet/DeclarationBlock.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -66,20 +66,20 @@ public static function parse(ParserState $parserState, ?CSSList $list = null): ?
6666
}
6767
break;
6868
case '(':
69-
if (!isset($stringWrapperCharacter)) {
69+
if (!\is_string($stringWrapperCharacter)) {
7070
++$functionNestingLevel;
7171
}
7272
break;
7373
case ')':
74-
if (!isset($stringWrapperCharacter)) {
74+
if (!\is_string($stringWrapperCharacter)) {
7575
if ($functionNestingLevel <= 0) {
7676
throw new UnexpectedTokenException('anything but', ')');
7777
}
7878
--$functionNestingLevel;
7979
}
8080
break;
8181
case ',':
82-
if (!isset($stringWrapperCharacter) && $functionNestingLevel === 0) {
82+
if (!\is_string($stringWrapperCharacter) && $functionNestingLevel === 0) {
8383
$selectors[] = \implode('', $selectorParts);
8484
$selectorParts = [];
8585
$parserState->consume(1);

0 commit comments

Comments
 (0)