neilime/php-css-lint

Inject Properties class into Linter to respect Dependency Inversion principle

Closed this issue · 2 comments

Currently the Properties class is not declared as final but it's impossible to inject an extended class of it into the Linter.

For this I would propose to add a constructor to Linter and remove the getCssLintProperties() method.

I've added a constructor to Linter, that accept an optional instance of the "\CssLint\Properties" helper (Version 2.1.0)

Stale issue message