-
Notifications
You must be signed in to change notification settings - Fork 653
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
TooManyArguments does not support methods in issueHandlers #10070
Labels
Comments
Hey @GTony, can you reproduce the issue on https://psalm.dev ? |
It should. |
@GTony meanwhile, you can work this around by converting the filter into a PCRE regular expression: <referencedFunction name="@Doctrine\\DBAL\\Query\\QueryBuilder::select@"/> |
The fix is available in 5.14.1. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Since 5.14 following the changes in #9981 it's not longer possible to pass a method to
referencedFunction
As of version 5.13.1 our
psalm.xml
looked as follow.But now running psalm will return this error as per the recent changes.
As it now stands it's impossible to suppress TooManyArguments for anything other than basic function.
Should TooManyArguments support
referencedMethod
or should the regex on referencedFunction also support methods?It's also possible I'm entirely in the wrong and I shouldn't suppress TooManyArguments error for methods.
To be noted, I am aware of the existence of a plugin to help psalm with some of Doctrine's issues, but this is not the problem right here.
The text was updated successfully, but these errors were encountered: