8000 BCFile::getMethodParameters(): sync with upstream / readonly without visibility by jrfnl · Pull Request #472 · PHPCSStandards/PHPCSUtils · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

BCFile::getMethodParameters(): sync with upstream / readonly without visibility #472

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

Merged
merged 1 commit into from
May 19, 2023

Conversation

jrfnl
Copy link
Member
@jrfnl jrfnl commented May 19, 2023

PHPCS upstream has now also added support for constructor property promotion with readonly properties without explicit visibility.

This commit updates the BCFile::getMethodParameters() method to reflect this.

Support for readonly constructor properties without visibility was previously already added to the FunctionDeclarations::getParameter() method in PR #456.

The associated "diff" test has now been moved to the base test file for these methods.

Refs:

…visibility

PHPCS upstream has now also added support for constructor property promotion with `readonly` properties without explicit visibility.

This commit updates the `BCFile::getMethodParameters()` method to reflect this.

Support for readonly constructor properties without visibility was previously already added to the `FunctionDeclarations::getParameter()` in PR 456.

The associated "diff" test has now been moved to the base test file for these methods.

Refs:
* squizlabs/PHP_CodeSniffer 3801.
@jrfnl jrfnl added this to the 1.0.x Next milestone May 19, 2023
@jrfnl jrfnl merged commit bb39fb5 into develop May 19, 2023
@jrfnl jrfnl deleted the backcompat/bcfile-getmethodparams-sync-with-upstream branch May 19, 2023 06:56
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
0