lint/functions/no-void-reference-return
In the modernize set. Report only.
What it does
Detects functions, methods, closures, arrow functions, and set property hooks that return by reference from a void function.
Configuration
[lint.rules]
"functions/no-void-reference-return" = "error"
To skip it in some files or lines, add an override or an ignore comment.
Replaces
no-void-reference-return(mago-linter)