function o(...$args) {
$args_len = sizeof($args);
...
}
which should be valid, but the code sniffers complains about it
51 | ERROR | [x] Expected 1 space between type hint and argument
| | "$args"; 0 found
| | (Squiz.Functions.FunctionDeclarationArgumentSpacing.SpacingAfterHint)
Within the same file, there is a similar method that uses the variadic parameter as second parameter
I have the following function
which should be valid, but the code sniffers complains about it
Within the same file, there is a similar method that uses the variadic parameter as second parameter
no complains here