Skip to content
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

PHP 8.3 | Generic/LowerCaseType: add support for typed constants #331

Merged
merged 1 commit into from Feb 15, 2024

Conversation

jrfnl
Copy link
Member

@jrfnl jrfnl commented Feb 8, 2024

Description

This sniff is specifically targeted at type declarations.

PHP 8.3 introduces typed constants. This means that the sniff now also needs to check OO constant declarations.

Fixed now. Includes tests.

Suggested changelog entry

  • Generic.PHP.LowerCaseType : support for typed class constants

Related issues/external references

Related to #106

Types of changes

  • New feature (non-breaking change which adds functionality)

@jrfnl
Copy link
Member Author

jrfnl commented Feb 14, 2024

Unless there are objections/someone leaves a comments on this PR, I will merge this tomorrow.

This sniff is specifically targeted at type declarations.

PHP 8.3 introduces typed constants. This means that the sniff now also needs to check OO constant declarations.

Fixed now. Includes tests.
@jrfnl jrfnl force-pushed the php-8.3/generic-lowercasetype-support-typed-constants branch from 9ae470c to b265092 Compare February 15, 2024 13:21
@jrfnl
Copy link
Member Author

jrfnl commented Feb 15, 2024

Rebased without changes. Merging once the build passes.

@jrfnl jrfnl merged commit 5e9339a into master Feb 15, 2024
44 checks passed
@jrfnl jrfnl deleted the php-8.3/generic-lowercasetype-support-typed-constants branch February 15, 2024 14:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant