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