lint/pest/prefer-to-have-count
In the coding-style set. Unsafe fix: it can change behaviour. Runs when pest is installed.
What it does
Converts expect(count($arr))->toBe(5) to expect($arr)->toHaveCount(5)
Configuration
[lint.rules]
"pest/prefer-to-have-count" = "error"
To skip it in some files or lines, add an override or an ignore comment.
Replaces
UseToHaveCount(pest-plugin-rector)