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

Operators::isTypeUnion(): BC-fix - namespace operator in return type #199

Merged
merged 1 commit into from
Sep 13, 2020

Conversation

jrfnl
Copy link
Member

@jrfnl jrfnl commented Sep 13, 2020

The Operators::isTypeUnion() method is subseptible to the Tokenizer bug which will be fixed in upstream PR #3066 / PHPCS 3.5.7, where the scope opener/closer/condition would not be set for a function declared with a namespace relative return type using the namespace keyword as an operator.

A work-around has been added to the method now.

Includes unit test.

Includes minor fix to existing inline documentation.

The `Operators::isTypeUnion()` method is subseptible to the Tokenizer bug which will be fixed in upstream PR 3066 / PHPCS 3.5.7, where the scope opener/closer/condition would not be set for a function declared with a namespace relative return type using the `namespace` keyword as an operator.

A work-around has been added to the method now.

Includes unit test.

Includes minor fix to existing inline documentation.
@jrfnl jrfnl added this to the 1.0.0-alpha4 milestone Sep 13, 2020
@jrfnl jrfnl merged commit be015ea into develop Sep 13, 2020
@jrfnl jrfnl deleted the operators/istypeunion-work-around-phpcs-bug branch September 13, 2020 13:26
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