This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
PHP 5.6 supports variadic function arguments with the ... operator; the variadic arguments can also be passed by reference using &... according to the docs, http://php.net/manual/en/functions.arguments.php#example-176. Netbeans throws a syntax error (after: & expected: variable) for each of the following definitions using &...$args ------- <?php interface I { public function test (&...$args); } trait T { public function test (&...$args) { var_dump($args); } } class A implements I { public function test (&...$args) { var_dump($args); } } function C (&...$args) { var_dump($args); }
*** Bug 248571 has been marked as a duplicate of this bug. ***
Created attachment 157023 [details] patch I've fixed. I hope that there are no missing things. NOTE: I fixed CodeUtils.getParamDisplayName(). It is used in the doFunctionDeclaration method of DocRenderer class. But I don't know how to run it (steps). Thanks.
Tomas, I created a patch for this issue. Thanks.
Patch applied, thanks a lot! http://hg.netbeans.org/web-main/rev/850409a591dc
Integrated into 'main-silver', will be available in build *201511060002* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-silver/rev/850409a591dc User: Tomas Mysik <tmysik@netbeans.org> Log: #248213 - Syntax error for PHP 5.6 variadic arguments by reference Patch contributed by junichi11@netbeans.org.