lint/phpunit/add-property-type-create-mock
In the types set. Unsafe fix: it can change behaviour. Runs when phpunit is installed.
What it does
Add “PHPUnit\Framework\MockObject\MockObject” typed property from assigned mock to clearly separate from real objects
Configuration
[lint.rules]
"phpunit/add-property-type-create-mock" = "error"
To skip it in some files or lines, add an override or an ignore comment.
Replaces
TypedPropertyFromCreateMockAssign(rector)