PHP-CSS-Parser
PHP-CSS-Parser copied to clipboard
Fix undefined `$oRule` in `DeclarationBlock`
There are two places in DeclarationBlock
where $oRule
might not be defined. We need to make sure that it is always defined (e.g., as null
), and handle those cases.
This fixes a PHPStan warning in the baseline (i.e., we need to regenerate the baseline with composer phpstan:baseline
after this has been fixed).