diff --git a/src/M6Web/Component/RedisMock/RedisMockFactory.php b/src/M6Web/Component/RedisMock/RedisMockFactory.php index 09578fe..b8b2ea1 100644 --- a/src/M6Web/Component/RedisMock/RedisMockFactory.php +++ b/src/M6Web/Component/RedisMock/RedisMockFactory.php @@ -319,7 +319,12 @@ protected function getMethodSignature(\ReflectionMethod $method) $signature .= '&'; } // paramName - $signature .= '$' . $parameter->getName(); + $paramName = '$' . $parameter->getName(); + // variadic + if ($parameter->isVariadic()) { + $paramName = '...' . $paramName; + } + $signature .= $paramName; // defaultValue if ($parameter->isDefaultValueAvailable()) { $signature .= ' = ';