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
Code:
<?php return [ $a => static function () { return [1, 2, 3]; }, $b ?? $c, $d ? [$e] : [$f], ];
Indicies:
Array ( [0] => Array ( [index_start] => 8 [index_end] => 8 [arrow] => 10 [value_start] => 12 ) )
The problem is here:
PHP_CodeSniffer/src/Sniffs/AbstractArraySniff.php
Lines 92 to 97 in 557a1fc
as we do not have arrows for two last elements in array, above finds end of the statement - comma - and then skip to next element.
The text was updated successfully, but these errors were encountered:
45f70b2
Added tests for the AbstractArraySniff class (currently failing due t…
6a3b033
…o bug #2745)
Changelog for #2745 (ref #2746)
dfd9eb1
Includes fix for unit test
Successfully merging a pull request may close this issue.
Code:
Indicies:
The problem is here:
PHP_CodeSniffer/src/Sniffs/AbstractArraySniff.php
Lines 92 to 97 in 557a1fc
as we do not have arrows for two last elements in array, above finds end of the statement - comma - and then skip to next element.
The text was updated successfully, but these errors were encountered: