We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Squiz.Arrays.ArrayDeclaration.ValueNoNewline gives false positives
$x = [ static fn ( // false positive here A $a, ) => B::create( $a, ), false, ]; $y = [ ...[ // false positive here new A(), ], ];
Steps to reproduce the behavior:
test.php
phpcs test.php ...
PHPCS output here
No rrror
master
The text was updated successfully, but these errors were encountered:
Please don't open issues in this repo anymore. This repo is abandoned and https://github.com/PHPCSStandards/PHP_CodeSniffer is its successor. See: #3932
Also, please start by updating your PHPCS install to the latest release (3.10.1) and only report in the new repo if the issue still exists.
Sorry, something went wrong.
Ah sorry, got confused
No branches or pull requests
Describe the bug
Squiz.Arrays.ArrayDeclaration.ValueNoNewline gives false positives
Code sample
To reproduce
Steps to reproduce the behavior:
test.php
with the code sample above...phpcs test.php ...
Expected behavior
No rrror
Versions (please complete the following information)
Please confirm:
master
branch of PHP_CodeSniffer. (since False Positive: Squiz.Arrays.ArrayDeclaration.ValueNoNewline: The first value in a multi-value array must be on a new line #2937 was closed as resolved I guess this is another case.)The text was updated successfully, but these errors were encountered: