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.
getAllDeclarationBlocks
colorParsing
1 parent aed922c commit b97b6e7Copy full SHA for b97b6e7
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