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 a695def commit 76f0b5fCopy full SHA for 76f0b5f
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