lint/phpunit/require-static-data-provider
In the code-quality set. Unsafe fix: it can change behaviour. Runs when phpunit is installed.
What it does
Make PHPUnit data providers static.
Configuration
[lint.rules]
"phpunit/require-static-data-provider" = "error"
To skip it in some files, add an override or a @pun-ignore-file comment.
Options
| Name | Type | Allowed values | Default | Upstream name |
|---|---|---|---|---|
force |
bool |
Any | false |
force |
Replaces
php_unit_data_provider_static(php-cs-fixer, risky)