lint/phpunit/prefer-attributes
Not in any set. Safe fix. Runs when phpunit is installed.
What it does
PHPUnit attributes must be used over their respective PHPDoc-based annotations.
Configuration
[lint.rules]
"phpunit/prefer-attributes" = "error"
To skip it in some files, add an override or a @pun-ignore-file comment.
Options
| Name | Type | Allowed values | Default | Upstream name |
|---|---|---|---|---|
keep-annotations |
bool |
Any | false |
keep_annotations |
Replaces
php_unit_attributes(php-cs-fixer)