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

BCTokens: add support for new contextSensitiveKeywords token array #360

Merged
merged 1 commit into from
Oct 15, 2022

Conversation

jrfnl
Copy link
Member

@jrfnl jrfnl commented Oct 15, 2022

... as introduced in PHPCS 3.7.0 and updated in PHPCS 3.7.1.

Upstream PR squizlabs/PHP_CodeSniffer#3484 introduces a new $contextSensitiveKeywords tokens array to PHPCS.

This PR backfills the PHPCS native array in the BCTokens class.

Includes unit test.
Includes updates to the array made in upstream PRs squizlabs/PHP_CodeSniffer#3608 and squizlabs/PHP_CodeSniffer#3610.

Refs:

... as introduced in PHPCS 3.7.0 and updated in PHPCS 3.7.1.

Upstream PR 3484 introduces a new `$contextSensitiveKeywords` tokens array to PHPCS.

This PR backfills the PHPCS native array in the `BCTokens` class.

Includes unit test.
Includes updates to the array made in upstream PRs 3608 and 3610.

Refs:
* squizlabs/PHP_CodeSniffer 3484
* squizlabs/PHP_CodeSniffer 3608
* squizlabs/PHP_CodeSniffer 3610

Co-authored-by: Jaroslav Hanslík <kukulich@kukulich.cz>
@jrfnl jrfnl added this to the 1.0.0-alpha4 milestone Oct 15, 2022
@jrfnl jrfnl merged commit b1a4889 into develop Oct 15, 2022
@jrfnl jrfnl deleted the backcompat/bctokens-support-contextsensitivekeywords branch October 15, 2022 05:44
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