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
psalm-taint-sink
would be great, psalm would error when using psalm-taint-sink without providing the param name.
this should error
/** * @psalm-taint-sink sql */ fuction query($query) { }
because it is missing the $query:
$query
done right it would be:
/** * @psalm-taint-sink sql $query */ fuction query($query) { }
I feel from a DX perspective it should be handled similar to forgetting the parameter reference in a @param
@param
The text was updated successfully, but these errors were encountered:
That should be easy to change here:
psalm/src/Psalm/Internal/PhpVisitor/Reflector/FunctionLikeDocblockParser.php
Line 210 in a2d6861
You should be able to throw a IncorrectDocblockException here to make sure this case doesn't happen
Sorry, something went wrong.
Will send a PR tomorrow
@staabm It must have been lost somewhere; feel free to resend 😁
thanks for the reminder
;-)
Successfully merging a pull request may close this issue.
would be great, psalm would error when using
psalm-taint-sink
without providing the param name.this should error
because it is missing the
$query
:done right it would be:
I feel from a DX perspective it should be handled similar to forgetting the parameter reference in a
@param
The text was updated successfully, but these errors were encountered: