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 false positive when using PHP 8.0 constructor property promotion #3167
Comments
The core issue here is that the sniff thinks the |
…using PHP 8.0 constructor property promotion
…using PHP 8.0 constructor property promotion
Thanks for the bug report. I've added a fix, which will be released in 3.6.0. |
Is it possible to release a patch for 3.5.x? |
What is the timeline for 3.6.0 release? |
Same problem in 3.6.0 |
@progmancod No, this issue was fixed. If you have found another (related) issue in PHPCS, please open a new issue with the full details to reproduce it. |
Describe the bug
I get a false positive when running code sniffer on PHP 8.0 code which uses two features at the same time.
Code sample
Custom ruleset
To reproduce
Steps to reproduce the behavior:
Expected behavior
I expect no error. The code is indented correctly
Versions (please complete the following information):
in2code/php-dev:8.0-fpm
(based on officialphp:8.0-fpm
image)The text was updated successfully, but these errors were encountered: