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

Collections::returnTypeTokens[BC](): support the PHP 8 identifier name tokens #208

Conversation

jrfnl
Copy link
Member

@jrfnl jrfnl commented Sep 13, 2020

Includes adjusted unit test.

This commit implicitly adds support for PHP 8 identifier name tokens to the FunctionDeclarations::getProperties(), the Operators::isTypeUnion(), the FunctionDeclarations::getArrowFunctionOpenClose() and by extension the FunctionDeclarations::isArrowFunction() method.

Includes adding additional unit tests for these methods in those cases where any of the identifier name types (fully qualified, partially qualified, namespace relative or unqualified) wasn't covered yet.

This commit also silently adds support for PHP 8 identifier name tokens to the BCFile::getMethodProperties() method. The PHP 8 identifier name tokens are not supported yet in PHPCS itself and until they are, the fact that the BCFile::getMethodProperties() method supports them should be regarded as an artifact and not as official support.

…e tokens

Includes adjusted unit test.

This commit implicitly adds support for PHP 8 identifier name tokens to the `FunctionDeclarations::getProperties()`, the `Operators::isTypeUnion()`, the `FunctionDeclarations::getArrowFunctionOpenClose()` and by extension the `FunctionDeclarations::isArrowFunction()` method.

Includes adding additional unit tests for these methods in those cases where any of the identifier name types (fully qualified, partially qualified, namespace relative or unqualified) wasn't covered yet.

This commit also _silently_ adds support for PHP 8 identifier name tokens to the `BCFile::getMethodProperties()` method. The PHP 8 identifier name tokens are not supported yet in PHPCS itself and until they are, the fact that the `BCFile::getMethodProperties()` method supports them should be regarded as an artefact and not as official support.
@jrfnl jrfnl added this to the 1.0.0-alpha4 milestone Sep 13, 2020
@jrfnl jrfnl merged commit 85f43a9 into develop Sep 13, 2020
@jrfnl jrfnl deleted the php-8.0/collections-returntypetokens-support-identifier-name-tokens branch September 13, 2020 18:05
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