Skip to content

A phpcs:enable comment is not tokenized correctly if it is outside a phpcs:disable block #1827

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

Merged

Conversation

jrfnl
Copy link
Contributor

@jrfnl jrfnl commented Jan 3, 2018

Fixes #1825

Includes unit test.

The actual change is quite small, easiest to view by ignoring the indentation change: https://github.com/squizlabs/PHP_CodeSniffer/pull/1827/files?w=1

@gsherwood gsherwood added this to the 3.2.3 milestone Jan 3, 2018
@gsherwood gsherwood changed the title Tokenizer bug: always tokenize "phpcs:enable" correctly A phpcs:enable comment is not tokenized correctly if it is not within a phpcs:disable block Jan 3, 2018
@gsherwood gsherwood changed the title A phpcs:enable comment is not tokenized correctly if it is not within a phpcs:disable block A phpcs:enable comment is not tokenized correctly if it is outside a phpcs:disable block Jan 3, 2018
@gsherwood gsherwood merged commit 69eb782 into squizlabs:master Jan 3, 2018
gsherwood added a commit that referenced this pull request Jan 3, 2018
@gsherwood
Copy link
Member

Thanks for this

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.

2 participants