Skip to content

Commit 54eb206

Browse files
committed
Printer: always prints trailing comma [Closes #106]
1 parent 0959a81 commit 54eb206

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/PhpGenerator/Printer.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -345,7 +345,7 @@ protected function printParameters(Closure|GlobalFunction|Method $function, int
345345
$line = implode(', ', $params);
346346

347347
return count($params) > 1 && ($special || strlen($line) + $column > $this->wrapLength)
348-
? "(\n" . $this->indent(implode(",\n", $params)) . ($special ? ',' : '') . "\n)"
348+
? "(\n" . $this->indent(implode(",\n", $params)) . ",\n)"
349349
: "($line)";
350350
}
351351

0 commit comments

Comments
 (0)