sirbrillig / phpcs-changed

🐘 Run phpcs on files and only report new warnings/errors compared to the previous version.
MIT License
31 stars 11 forks source link

Add options class, take 2 #71

Closed sirbrillig closed 1 year ago

sirbrillig commented 1 year ago

This replaces the options array with a CliOptions class that has validation.

This is a second attempt, since https://github.com/sirbrillig/phpcs-changed/pull/48 took too long and was too big a refactor. This time, we create the CliOptions class but then convert it back into an array to allow for easier migration.

In later PRs we can migrate other functions to accept CliOptions instead of the array.