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

BCFile::getMethodParameters(): sync with PHPCS / constructor property promotion support #226

Merged

Conversation

jrfnl
Copy link
Member

@jrfnl jrfnl commented Nov 3, 2020

PR #169 added support for PHP 8.0 constructor property promotion to the FunctionDeclarations::getParameters() method.

Upstream PR squizlabs/PHP_CodeSniffer#3152 added the same to the PHPCS native File::getMethodParameters() method.

As that PR has now been merged, this commit syncs the upstream changes into the BCFile::getMethodParameters() method and moves the unit tests from the "Diff" tests to the BCFile test class.

… promotion support

PR 169 added support for PHP 8.0 constructor property promotion to the `FunctionDeclarations::getParameters()` method.

Upstream PR 3152 added the same to the PHPCS native `File::getMethodParameters()` method.

As that PR has now been merged, this commit syncs the upstream changes into the `BCFile::getMethodParameters()` method and moves the unit tests from the "Diff" tests to the BCFile test class.
@jrfnl jrfnl added this to the 1.0.0-alpha4 milestone Nov 3, 2020
@jrfnl jrfnl merged commit 672543f into develop Nov 3, 2020
@jrfnl jrfnl deleted the feature/getmethodparam-constr-prop-promotion-sync-with-phpcs branch November 3, 2020 03:37
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.

1 participant