Skip to content

Commit d2bb89b

Browse files
committed
Fix undefined index notice when property lacks value
1 parent 3780f73 commit d2bb89b

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

lib/Sabberworm/CSS/Value/Value.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,9 @@ public static function parseValue(ParserState $oParserState, $aListDelimiters =
5555
array_splice($aStack, $iStartPosition - 1, $iLength * 2 - 1, array($oList));
5656
}
5757
}
58+
if (!isset($aStack[0])) {
59+
return null;
60+
}
5861
return $aStack[0];
5962
}
6063

0 commit comments

Comments
 (0)