Open simPod opened 1 week ago
The Squiz.Commenting.FunctionComment
sniff - and other comment related sniffs in PHPCS - do not support the array{...}
type format and never have.
Reclassifying this ticket as a feature request, not a bug.
To be honest, I've never seen that format before, so is this a codebase specific format ? Is this a format promoted by some other tool ? Is there any formal specification of that array type format ?
As things are at this time, this issue is not actionable without further information.
Note: I'm not giving an opinion yet whether this is a feature request which would be accepted to be supported...
I forgot to mention it does work for single line array shape declaration.
It's array shape, widely adopted by php ecosystem https://phpstan.org/writing-php-code/phpdoc-types#array-shapes
Describe the bug
Squiz.Commenting.FunctionComment.MissingParamName
is triggered for valid @param docblockCode sample
To reproduce
Steps to reproduce the behavior:
test.php
with the code sample above...phpcs test.php ...
Expected behavior
No error
Versions (please complete the following information)
Please confirm
master
branch of PHP_CodeSniffer.