lint/operators/no-error-suppression
In the code-quality set. Unsafe fix: it can change behaviour. Intent: suspicious.
What it does
Error control operator should be added to deprecation notices and/or removed from other cases.
Configuration
[lint.rules]
"operators/no-error-suppression" = "error"
To skip it in some files, add an override or a @pun-ignore-file comment.
Options
| Name | Type | Allowed values | Default | Upstream name |
|---|---|---|---|---|
mute-deprecation-error |
bool |
Any | true |
mute_deprecation_error |
noise-remaining-usages |
bool |
Any | false |
noise_remaining_usages |
noise-remaining-usages-exclude |
list |
Any | [] |
noise_remaining_usages_exclude |
Replaces
error_suppression(php-cs-fixer, risky)no-error-control-operator(mago-linter)