Skip to content

AbstractArrayDeclarationSniff::getActualArrayKey(): handle FQN true/false/null - #668

Merged
jrfnl merged 1 commit into
developfrom
feature/abstractarraysniff-getactualkey-support-fqn-true-false-null
Jun 1, 2025
Merged

jrfnl merged 1 commit into
developfrom
feature/abstractarraysniff-getactualkey-support-fqn-true-false-null

Conversation

@jrfnl

@jrfnl jrfnl commented Jun 1, 2025

Copy link
Copy Markdown
Member

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
@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