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

Use `null` for `Import::$mediaQuery` to indicate absence

Open JakeQZ opened this issue 11 months ago • 1 comments

The code currently uses both null and an empty string to indicate there is no media query. It also appears that when it is an empty string, an extra space will be rendered.

We should consistently use one or other, and it's probably cleaner to use null to indicate absence.

JakeQZ avatar Mar 16 '25 18:03 JakeQZ

We could also make the $mediaQuery parameter of the constructor optional.

JakeQZ avatar Mar 16 '25 18:03 JakeQZ