Skip to content

Conversation

jrfnl
Copy link
Member

@jrfnl jrfnl commented Jun 1, 2025

The special constants true/false/null can be used in fully qualified form, even though this is rarely done in practice.

This commit adds support for handling this to the AbstractArrayDeclarationSniff::getActualArrayKey() method in a PHPCS 3/4 cross-version compatible manner.

Includes tests.

…alse/null

The special constants `true`/`false`/`null` can be used in fully qualified form, even though this is rarely done in practice.

This commit adds support for handling this to the `AbstractArrayDeclarationSniff::getActualArrayKey()` method in a PHPCS 3/4 cross-version compatible manner.

Includes tests.
@jrfnl jrfnl added this to the 1.1.0 milestone Jun 1, 2025
@jrfnl jrfnl merged commit 4f9d139 into develop Jun 1, 2025
63 of 66 checks passed
@jrfnl jrfnl deleted the feature/abstractarraysniff-getactualkey-support-fqn-true-false-null branch June 1, 2025 17:54
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