Closed soutaro closed 7 years ago
PHP 5.6 allows having by-reference variadic parameters.
function foo(&...$params) { ... }
This PR is to parse that syntax.
Because restricting the position of variadic parameters cannot be done by grammar in ocamlyacc (maybe it is not in LALR(1)), the grammar allows having that anywhere in parameter list. And I add validation in action.
PHP 5.6 allows having by-reference variadic parameters.
This PR is to parse that syntax.
Because restricting the position of variadic parameters cannot be done by grammar in ocamlyacc (maybe it is not in LALR(1)), the grammar allows having that anywhere in parameter list. And I add validation in action.