Skip to content

Conversation

jrfnl
Copy link
Member

@jrfnl jrfnl commented Sep 4, 2025

The tokenization of fully qualified true/false/null has been changed for both PHPCS 3.x (as of 3.13.3) as well as PHPCS 4.0.

The new tokenization means we don't need to take these tokens being tokenized as T_STRING or T_NAME_FULLY_QUALIFIED into account anymore, as long as the minimum supported PHPCS version will be PHPCS 3.13.3 (which it will be since the merge of PR #698).

This commit removes the code which has now become redundant.

Ref:

The tokenization of fully qualified `true`/`false`/`null` has been changed for both PHPCS 3.x (as of 3.13.3) as well as PHPCS 4.0.

The new tokenization means we don't need to take these tokens being tokenized as `T_STRING` or `T_NAME_FULLY_QUALIFIED` into account anymore, as long as the minimum supported PHPCS version will be PHPCS 3.13.3 (which it will be since the merge of PR 698).

This commit removes the code which has now become redundant.

Ref:
* PHPCSStandards/PHP_CodeSniffer 1201
* PHPCSStandards/PHP_CodeSniffer 1206
@jrfnl jrfnl added this to the 1.1.2 milestone Sep 4, 2025
@jrfnl jrfnl merged commit e434bd8 into develop Sep 4, 2025
70 checks passed
@jrfnl jrfnl deleted the feature/abstractarraydeclaration-minor-simplification branch September 4, 2025 22:45
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