-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
PSR2.Methods.FunctionCallSignature.MultipleArguments false positive with arrow function argument #2895
Comments
Code to replicate:
And this:
|
This is actually a problem with |
Actually, this looks like it's a problem with scope detection for arrow functions nested in this way. The |
…s false positive with arrow function argument
Turns out it was a problem with both. |
…s false positive with arrow function argument
This issue persists with something like this:
It complains: However, that specific error goes away by refactoring it like this:
But then it complains about the indentation: |
I have a problem.
Using 3.5.4 with PHP 7.4.2.
Code example:
Originally posted by @zlodes in #2523 (comment)
The text was updated successfully, but these errors were encountered: