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 mixed
allow_overriding_vague_return_types
With allow_overriding_vague_return_types set to true:
/** * @return mixed */ function returns_nullable() { // if ... return sth not null return null; } echo returns_nullable();
PhanTypeSuspiciousEcho Suspicious argument returns_nullable() of type null for an echo/print statement
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Reproduce
With
allow_overriding_vague_return_types
set to true:Expected
PhanTypeSuspiciousEcho Suspicious argument returns_nullable() of type null for an echo/print statement
The text was updated successfully, but these errors were encountered: