lint/phpunit/no-any-matcher
Not in any preset. In Rector’s rector-phpunit/composer-based set. Needs the phpunit extension. Safe fix.
What it does
Change deprecated $this->any() matcher assign to direct new AnyInvokedCount()
Configuration
[lint.rules]
"phpunit/no-any-matcher" = "error"
To skip it in some files or lines, add an override or an ignore comment.
Replaces
AnyMatcherToNewAnyInvokedCount(rector-phpunit)