We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
/** * @return string|null */ function f($x) { if (!$x) { return; // Better to write as "return null" } // ... }
No warnings.
Suggest explicit return null. Functions with void results should be ignored.
return null
The text was updated successfully, but these errors were encountered:
@return
return
Will be tracked further in #1123.
Sorry, something went wrong.
Successfully merging a pull request may close this issue.
Code Example
Actual Behavior
No warnings.
Expected Behavior
Suggest explicit
return null
. Functions with void results should be ignored.The text was updated successfully, but these errors were encountered: