Skip to content

Conversation

jrfnl
Copy link
Member

@jrfnl jrfnl commented Aug 4, 2025

PHP 8.4 introduced a few new token constants related to asymmetric visibility. Detection for these new tokens is already in PHPCompatibility 10.0.

As PHPCS polyfills these tokens, we should allow for these to be used in external PHPCS standards.

The token constants are backfilled by PHPCS as of version 3.13.0.

Refs:

PHP 8.4 introduced a few new token constants related to asymmetric visibility. Detection for these new tokens is already in PHPCompatibility 10.0.

As PHPCS polyfills these tokens, we should allow for these to be used in external PHPCS standards.

The token constants are backfilled by PHPCS as of version 3.13.0.

Ref: PHPCSStandards/PHP_CodeSniffer 871
@jrfnl jrfnl added this to the 1.2.0 milestone Aug 4, 2025
@jrfnl jrfnl merged commit 0bc8593 into main Aug 4, 2025
3 checks passed
@jrfnl jrfnl deleted the feature/ruleset-allow-for-some-php-8.4-token-constants branch August 4, 2025 15:46
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