-
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 incorrect indent errors when self called function proceeded by comment #1777
Comments
I don't get any errors when I run PHPCS over that code. It is possible they only occur in the context of other code. Have you been able to replicate on that code snippet alone? If so, which version of PHPCS are you using? If not, are you able to provide a larger code snippet (or the whole file) to help replicate the error? |
Yes, i replicated that code snippet alone and the error still occurs. I'm running PHP 7.1.12 with PHPCS ^3.1 on Windows 10. |
Thanks for getting back to me. I'm using the same PHP and PHPCS versions as you and I still can't replicate any errors. Can you add
|
Here it is:
|
This is me entire code:
If you run phpcs with the code above, no error is found. But if i add some comments to my code, like this:
I get the error. |
Thanks. That's what I needed to replicate it. |
…ors when self called function proceeded by comment
This has been fixed now. Thanks for reporting it. |
Here is my code:
When i run phpcs, here is what i get:
Line 37 is
$app->run();
I'm using PSR2 standard, i hope this is the correct repository to report this bug 😄.
The text was updated successfully, but these errors were encountered: