lint/phpunit/no-mock-intersection-property
In the code-quality set. Safe fix. Runs when phpunit is installed.
What it does
Make properties in tests with intersection mock object either object type or mock type
Configuration
[lint.rules]
"phpunit/no-mock-intersection-property" = "error"
To skip it in some files or lines, add an override or an ignore comment.
Replaces
SingleMockPropertyType(rector-phpunit)