FunctionCommentSniff does not support variadic
Closed this issue · 1 comments
zero2one commented
2 errors are thrown when documenting variadic function parameters in docheads.
Example code:
/**
* @param \Drupal\node\NodeInterface ...$node
*/
function testVariadic(NodeInterface ...$node) {
// ...
}
Results in:
FOUND 2 ERRORS AFFECTING 1 LINE------------------------------------------------------------------------------------------------------------------------
44 | ERROR | [ ] Parameter type "\Drupal\node\NodeInterface ..." must not contain spaces
44 | ERROR | [x] Expected 1 spaces after parameter type; 0 found
See also https://www.drupal.org/project/coder/issues/2878783