PHP-CSS-Parser icon indicating copy to clipboard operation
PHP-CSS-Parser copied to clipboard

Fix undefined `$oRule` in `DeclarationBlock`

Open oliverklee opened this issue 2 years ago • 0 comments

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).

oliverklee avatar Oct 23 '22 11:10 oliverklee