You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
✨ New PHPCSUtils\Exceptions\MissingArgumentError exception class
New exception to flag missing, conditionally required, parameters.
The exception ensures these issues are flagged with a more consistent message format using a standardized message prefix.
This exception extends the PHPCS native `RuntimeException` to allow pre-existing PHPCSUtils code to switch to this exception without causing a breaking change.
By rights, this exception should extend the PHP native `ArgumentCountError` class, but not extending the `RuntimeException` would be a breaking change.
By the time a 2.0 release happens, it should be considered to switch the parent class for the exception to the PHP native `ArgumentCountError`.
Includes perfunctory test for the exception.
0 commit comments