We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
colorParsing
getAllDeclarationBlocks()
1 parent 34c8708 commit 5448e91Copy full SHA for 5448e91
tests/ParserTest.php
@@ -91,10 +91,7 @@ public function files(): void
91
public function colorParsing(): void
92
{
93
$document = self::parsedStructureForFile('colortest');
94
- foreach ($document->getAllRuleSets() as $ruleSet) {
95
- if (!($ruleSet instanceof DeclarationBlock)) {
96
- continue;
97
- }
+ foreach ($document->getAllDeclarationBlocks() as $ruleSet) {
98
$selectors = $ruleSet->getSelectors();
99
$selector = $selectors[0]->getSelector();
100
if ($selector === '#mine') {
0 commit comments