lint/control-flow/no-useless-return
In the dead-code set. Safe fix.
What it does
There should not be an empty return statement at the end of a function.
Configuration
[lint.rules]
"control-flow/no-useless-return" = "error"
To skip it in some files, add an override or a @pun-ignore-file comment.
Replaces
no_useless_return(php-cs-fixer)