lint/control-flow/prefer-bare-return
Not in any set. Safe fix.
What it does
A return statement wishing to return void should not return null.
Configuration
[lint.rules]
"control-flow/prefer-bare-return" = "error"
To skip it in some files, add an override or a @pun-ignore-file comment.
Replaces
simplified_null_return(php-cs-fixer)
Linked rules
- Conflicts with
lint/complexity/require-consistent-return. You cannot enable both.