diff --git a/lib/PhpParser/PrettyPrinter/Standard.php b/lib/PhpParser/PrettyPrinter/Standard.php index 7d56580..853dcc0 100644 --- a/lib/PhpParser/PrettyPrinter/Standard.php +++ b/lib/PhpParser/PrettyPrinter/Standard.php @@ -20,7 +20,7 @@ class Standard extends PrettyPrinterAbstract public function pParam(Node\Param $node) { return ($node->type ? $this->pType($node->type) . ' ' : '') . ($node->byRef ? '&' : '') - . ($node->variadic ? '... ' : '') + . ($node->variadic ? '...' : '') . '$' . $node->name . ($node->default ? ' = ' . $this->p($node->default) : ''); } diff --git a/test/code/prettyPrinter/function_signatures.test b/test/code/prettyPrinter/function_signatures.test index 8d284c1..af1088a 100644 --- a/test/code/prettyPrinter/function_signatures.test +++ b/test/code/prettyPrinter/function_signatures.test @@ -31,12 +31,12 @@ interface A function f4(array $a); function f5(callable $a); function f6(&$a); - function f7(... $a); - function f8(&... $a); + function f7(...$a); + function f8(&...$a); function f9(A &$a); - function f10(A ... $a); + function f10(A ...$a); function f11(A &$a); - function f12(A &... $a); + function f12(A &...$a); function f13($a) : array; function f14($a) : callable; function f15($a) : B\C; diff --git a/test/code/prettyPrinter/param.test b/test/code/prettyPrinter/param.test deleted file mode 100644 index 55e6ffb..0000000 --- a/test/code/prettyPrinter/param.test +++ /dev/null @@ -1,21 +0,0 @@ -Function parameters ------ -