Skip to content

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
Development

Successfully merging this pull request may close these issues.

1 participant