-
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
Generic.WhiteSpace.ScopeIndent error with static short closure #2570
Comments
Arrow functions are not supported yet. Please see: #2523 |
@jrfnl Sorry, missed that one. What is the best way i can help with the issues i find for short closures currently, and is it helpful at all? |
@sspat For now, not much can be done until a decision is taken about #2523 and the Once that's done, it'll be useful to know which sniffs need looking at. I'd suggest adding code samples like the one above and the other issues reported to the thread in #2523 to keep things together (or at the very least to link the issues by mentioning the canonical issue number). For anything missed in the initial accounting for arrow functions, so things found after #2523 has been addressed and closed, new issues would seem appropriate. |
Closing as merged with #2523 |
Versions
codesniffer@dev-master
php 7.4.0beta1
Description
When adding static to a short syntax closure which is an argument of a multi-line function call an incorrect indent error is raised.
Expected behavior
The same code with a non-static short closure raises no errors, the same should apply to a static one.
The text was updated successfully, but these errors were encountered: