Skip to content

BCTokens: add support for new contextSensitiveKeywords token array#360

Merged
jrfnl merged 1 commit intodevelopfrom
backcompat/bctokens-support-contextsensitivekeywords
Oct 15, 2022
Merged

BCTokens: add support for new contextSensitiveKeywords token array#360
jrfnl merged 1 commit intodevelopfrom
backcompat/bctokens-support-contextsensitivekeywords

Conversation

@jrfnl
Copy link
Copy Markdown
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

Development

Successfully merging this pull request may close these issues.

1 participant