✨ PHP 8.3 | New PHPCompatibility.Classes.NewTypedConstants sniff#1808
Merged
✨ PHP 8.3 | New PHPCompatibility.Classes.NewTypedConstants sniff#1808
PHPCompatibility.Classes.NewTypedConstants sniff#1808Conversation
35 tasks
b9bf2eb to
6e64a36
Compare
Base automatically changed from
feature/composer-update-for-phpcsutils-1.1.0
to
develop
July 6, 2025 13:28
Member
Author
|
Rebased without changes after the merge of #1806 and marked as "ready for review". |
6e64a36 to
a073d3b
Compare
PHP 8.3 introduced typed constants. > . Class, interface, trait, and enum constants now support type > declarations. This commit adds a new sniff to detect these. Includes unit tests. Includes documentation. Refs: * https://wiki.php.net/rfc/typed_class_constants * php/php-src 10444 * php/php-src@414f71a
Member
Author
|
Force push = minor updates to some documentation, nothing more. |
a073d3b to
013133c
Compare
wimg
approved these changes
Aug 6, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
⚠️ This PR needs for PR #1806 to be merged first. It relies on functionality from PHPCSUtils 1.1.0. ⚠️ (PR #1806 has been merged)PHP 8.3 introduced typed constants.
This commit adds a new sniff to detect these.
Includes unit tests.
Includes documentation.
Refs:
Related to #1589