-
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
Class constant named FUNCTION is incorrectly tokenized #1180
Comments
I extracted minimal snippet to reproduce issue. Source file under link will probably change in near feature.
|
|
I tested phpcbf with '--standard=PSR2' and '--standard=PEAR', formatting ends with error for both.
|
The problem appears to be caused by the tokenizing of |
I don't think this is related to PHP 5.6, but this was the best place to put the code.
This has now been fixed. Thanks for reporting it. |
PHPCBF wasn't able to format file: https://raw.githubusercontent.com/felixfbecker/php-language-server/master/src/SymbolFinder.php
It looks that number of iterations was insufficient.
Console output:
PHP_CodeSniffer version 2.7.0 (stable)
The text was updated successfully, but these errors were encountered: