Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PHP 8.0 | BCFile/FunctionDeclarations::get[Method]Parameters(): add tests with trailing commas #355

Conversation

jrfnl
Copy link
Member

@jrfnl jrfnl commented Oct 15, 2022

Since PHP 8.0, trailing commas are allowed in parameter lists and closure use lists.

This adds some tests to verify the methods handle this correctly and to safeguard this.

Ref:

…ests with trailing commas

Since PHP 8.0, trailing commas are allowed in parameter lists and closure `use` lists.

This adds some tests to verify the methods handle this correctly and to safeguard this.

Ref:
* https://wiki.php.net/rfc/trailing_comma_in_parameter_list
* https://wiki.php.net/rfc/trailing_comma_in_closure_use_list
@jrfnl jrfnl force-pushed the php8.0/bcfile/getmethodparameters-add-tests-with-trailing-commas branch from 75c869b to 8e35043 Compare October 15, 2022 03:34
@jrfnl jrfnl merged commit dbc671c into develop Oct 15, 2022
@jrfnl jrfnl deleted the php8.0/bcfile/getmethodparameters-add-tests-with-trailing-commas branch October 15, 2022 03:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant