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: sync with PHPCS: support namespace operator in type declarations #218

Merged
merged 3 commits into from
Sep 21, 2020

Conversation

jrfnl
Copy link
Member

@jrfnl jrfnl commented Sep 21, 2020

PR #180 added support for the namespace keyword used as an operator in type declarations to:

  • the FunctionDeclarations::getParameters() method.
  • the FunctionDeclarations::getProperties() method and by extension the BCFile::getMethodProperties() method, even though PHPCS upstream did not support this yet.
  • the FunctionDeclarations::getMemberProperties() method and by extension the BCFile::getMemberProperties() method, even though PHPCS upstream did not support this yet.

Upstream PR #3066 added the same to the PHPCS native File::getMethodParameters(), File::getMethodProperties() and File::getMemberProperties() methods.

As that PR has now been merged, this commit syncs the upstream changes into the various PHPCSUtils BackCompat methods.

BCFile::getMethodParameters(): sync with PHPCS / namespace operator in types

This commit syncs the upstream changes into the BCFile::getMethodParameters() method, moves the unit tests to the BCFile test class and updates the documentation for the FunctionDeclarations::getParameters() method to support the changes as have been merged upstream.

BCFile::getMethodProperties(): sync with PHPCS / namespace operator in types

This commit syncs the upstream changes in, by moving the unit tests from the "Diff" tests to the BCFile tests and annotating that namespace operators in type declarations are now officially supported in the BCFile::getMethodProperties() method.

BCFile::getMemberProperties(): sync with PHPCS / namespace operator in types

This commit syncs the upstream changes in, by moving the unit tests from the "Diff" tests to the BCFile tests and annotating that namespace operators in type declarations are now officially supported in the BCFile::getMemberProperties() method.

…n types

PR 180 added support for the namespace keyword used as an operator in type declarations to the `FunctionDeclarations::getParameters()` method.

Upstream PR 3066 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, moves the unit tests to the BCFile test class and updates the documentation for the `FunctionDeclarations::getParameters()` method to support the changes as have been merged upstream.
…n types

PR 180 added support for the namespace keyword used as an operator in type declarations to the `FunctionDeclarations::getProperties()` method and by extension the `BCFile::getMethodProperties()` method, even though PHPCS upstream did not support this yet.

Upstream PR 3066 added the same to the PHPCS native `File::getMethodProperties()` method.

As that PR has now been merged, this commit syncs the upstream changes in, by moving the unit tests from the "Diff" tests to the BCFile tests and annotating that namespace operators in type declarations are now officially supported in the `BCFile::getMethodProperties()` method.
…n types

PR 180 added support for the namespace keyword used as an operator in type declarations to the `FunctionDeclarations::getMemberProperties()` method and by extension the `BCFile::getMemberProperties()` method, even though PHPCS upstream did not support this yet.

Upstream PR 3066 added the same to the PHPCS native `File::getMemberProperties()` method.

As that PR has now been merged, this commit syncs the upstream changes in, by moving the unit tests from the "Diff" tests to the BCFile tests and annotating that namespace operators in type declarations are now officially supported in the `BCFile::getMemberProperties()` method.
@jrfnl jrfnl added this to the 1.0.0-alpha4 milestone Sep 21, 2020
@jrfnl jrfnl merged commit 82eecab into develop Sep 21, 2020
@jrfnl jrfnl deleted the feature/namespace-operator-sync-with-phpcs branch September 21, 2020 01:38
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