New issue
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
psalter --issues=MissingParamType adds duplicate @param annotations #4192
Labels
Comments
Hey @caugner, can you reproduce the issue on https://psalm.dev ? |
Alternatively, |
I found these snippets: https://psalm.dev/r/d560c42190<?php
/**
* @param $x
*/
function foo($x) {}
|
I have the same issue, in my example:
Both the typing in the phpdoc and the typing in the parameter list were absent before psalm --alter was run. |
Fixed by #9441 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I have observed several occurrences where
psalter
added duplicate@param
annotations when there has already been an (invalid)@param
annotation without a type. It would be nice if Psalm could reuse those annotations.Before:
After:
PS: This example is abstracted from what I observed.
The text was updated successfully, but these errors were encountered: