Since the last update trailing comma supports for constructor property promotion. Also support for arrays. But there is no support for method and function parameters.
See https://github.com/nette/php-generator/blob/master/src/PhpGenerator/Printer.php#L322 Var special is determined dynamically
Suggest to add some parameter to Printer and support trailing comma whether needed.