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
Describe the bug Unsealed array shapes (https://psalm.dev/docs/annotating_code/type_syntax/array_types/#:~:text=theory%20perspective.-,Unsealed%20array%20and%20list%20shapes,-Starting%20from%20Psalm) create a false positive error with these rules:
Code sample
/** * do something * * @param array{foo: string, bar: string, ...} $data some data * * @return array<string, string> */ function foo( $data ) {}
To reproduce Steps to reproduce the behavior:
test.php
phpcs test.php ...
Doc comment for parameter "$data" missing Missing parameter name
Expected behavior No error.
Versions (please complete the following information):
The text was updated successfully, but these errors were encountered:
Suppress Squiz.Commenting.FunctionComment.MissingParamName for unseal…
3deedd9
…ed array shapes Probably false positive error of phpcs related squizlabs/PHP_CodeSniffer#3734
Collection::listSearchIndex($options)
Fix array shape for Collection::listSearchIndex($options) (#1480)
985484d
Remove array shape, not supported by phpcs squizlabs/PHP_CodeSniffer#3734
No branches or pull requests
Describe the bug
Unsealed array shapes (https://psalm.dev/docs/annotating_code/type_syntax/array_types/#:~:text=theory%20perspective.-,Unsealed%20array%20and%20list%20shapes,-Starting%20from%20Psalm) create a false positive error with these rules:
Code sample
To reproduce
Steps to reproduce the behavior:
test.php
with the code sample abovephpcs test.php ...
Expected behavior
No error.
Versions (please complete the following information):
The text was updated successfully, but these errors were encountered: