Skip to content

Composer/ruleset: allow for (some) PHP 8.4 token constants #51

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

Merged
merged 1 commit into from
Aug 4, 2025

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