-
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
False positive with anonymous functions in Generic_Sniffs_WhiteSpace_ScopeIndentSniff #337
Comments
Thanks for the report. I've added a fix for this case. |
Thanks! ❤️ |
Looks like this may only be partially fixed. This example function is still highlighted with three errors, starting at
|
Thanks for the extra failing code. I found the problem with that block and have committed a fix for it. |
Thanks, that solved most of my issues. However, I have identified two additional failing cases.
And:
|
Now I'm glad, that I'm not using any closures in PHP 😉 |
@Aistina I like you 😄 These 2 new issues were actually caused by the parenthesis and not the closure, which is nice at least. I didn't quite take yesterday's fix far enough. |
Why, thank you ^_^ After that fix some new issues popped up though. I posted them in the new issue #358. |
The gist in https://gist.github.com/oliverklee/d5d80c176685de0874ea produces the following false positive:
Line indented incorrectly, expected at least 16 spaces, found 8
This is similar to #298 - I don't know whether this is a regression of that bug or just similar.
The text was updated successfully, but these errors were encountered: