lint/phpunit/prefer-short-will-return
In the lint-strict preset. Needs the phpunit extension. Unsafe fix: it can change behavior.
What it does
Use willReturn() and similar instead of will($this->returnValue()).
Configuration
[lint.rules]
"phpunit/prefer-short-will-return" = "error"
To skip it in some files, add an override or a @pun-ignore-file comment.
Replaces
php_unit_mock_short_will_return(php-cs-fixer, risky)