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

Squiz/OperatorSpacing: fix false positive on unary minus after comment. #1608

Conversation

jrfnl
Copy link
Contributor

@jrfnl jrfnl commented Aug 13, 2017

Changes (just and only) the code block which determines whether a minus sign is used as an operator or a unary, to use $emptyTokens instead of T_WHITESPACE for improved accuracy.

Includes unit tests.

Fixes #1605

Changes (just and only) the code block which determines whether a minus sign is used as an operator or a unary, to use `$emptyTokens` instead of `T_WHITESPACE` for improved accuracy.

Includes unit tests.

Fixes 1605
@jrfnl jrfnl force-pushed the feature/issue-1605-squiz-operator-spacing-unary branch from 70bbbd2 to c0564f5 Compare August 13, 2017 01:49
@gsherwood gsherwood added this to the 3.1.0 milestone Aug 15, 2017
@gsherwood gsherwood merged commit c0564f5 into squizlabs:master Aug 15, 2017
gsherwood added a commit that referenced this pull request Aug 15, 2017
@gsherwood
Copy link
Member

Thanks a lot.

@jrfnl jrfnl deleted the feature/issue-1605-squiz-operator-spacing-unary branch August 15, 2017 02:19
@jrfnl
Copy link
Contributor Author

jrfnl commented Aug 15, 2017

You're very welcome ;-)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants