We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 04bf5e9 commit db379bdCopy full SHA for db379bd
src/M6Web/Component/RedisMock/RedisMockFactory.php
@@ -319,7 +319,12 @@ protected function getMethodSignature(\ReflectionMethod $method)
319
$signature .= '&';
320
}
321
// paramName
322
- $signature .= '$' . $parameter->getName();
+ $paramName = '$' . $parameter->getName();
323
+ // variadic
324
+ if ($parameter->isVariadic()) {
325
+ $paramName = '...' . $paramName;
326
+ }
327
+ $signature .= $paramName;
328
// defaultValue
329
if ($parameter->isDefaultValueAvailable()) {
330
$signature .= ' = ';
0 commit comments