Skip to content

Conversation

jrfnl
Copy link
Member

@jrfnl jrfnl commented Jun 28, 2022

Upstream PR squizlabs/PHP_CodeSniffer#3546, which is included in PHPCS 3.7.0, changed the tokenization of the parent keyword in new parent() from T_STRING to T_PARENT.

Follow-up PR squizlabs/PHP_CodeSniffer#3619, which is expected to be included in PHPCS 3.7.2, adds the T_PARENT token to the Tokens::$functionNameTokens array.

This syncs the BCTokens::functionNameTokens() function with this upstream change.

Upstream PR squizlabs/PHP_CodeSniffer 3546, which is included in PHPCS 3.7.0, changed the tokenization of the `parent` keyword in `new parent()` from `T_STRING` to `T_PARENT`.

Follow-up PR squizlabs/PHP_CodeSniffer 3619, which is expected to be included in PHPCS 3.7.2, adds the `T_PARENT` token to the `Tokens::$functionNameTokens` array.

This syncs the `BCTokens::functionNameTokens()` function with this upstream change.
@jrfnl jrfnl added this to the 1.0.0-alpha4 milestone Jun 28, 2022
@jrfnl jrfnl enabled auto-merge June 28, 2022 09:38
@jrfnl jrfnl merged commit 18e785d into develop Jun 28, 2022
@jrfnl jrfnl deleted the backcompat/bctokens-functionnametokens-sync-with-upsteam branch June 28, 2022 09:43
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