Skip to content

fix: comment out PHP 8.3+ constant type hint sniffs in WPTechnix-Strict#4

Merged
owaisahmed5300 merged 1 commit into
mainfrom
fix/comment-constant-type-sniffs
Jul 11, 2026
Merged

fix: comment out PHP 8.3+ constant type hint sniffs in WPTechnix-Strict#4
owaisahmed5300 merged 1 commit into
mainfrom
fix/comment-constant-type-sniffs

Conversation

@owaisahmed5300

Copy link
Copy Markdown
Contributor

Summary

Comment out SlevomatCodingStandard.TypeHints.ClassConstantTypeHint and SlevomatCodingStandard.TypeHints.UselessConstantTypeHint in WPTechnix-Strict because they require PHP 8.3+ to be effective, while the WPTechnix baseline is PHP 8.0.

Changes

  • WPTechnix-Strict/ruleset.xml: Comment out ClassConstantTypeHint and UselessConstantTypeHint sniff references

ClassConstantTypeHint and UselessConstantTypeHint require PHP 8.3+
to be effective. Since the WPTechnix baseline is PHP 8.0, comment
them out to avoid irrelevant warnings on older runtimes.
@owaisahmed5300
owaisahmed5300 merged commit 4a7abb5 into main Jul 11, 2026
3 checks passed
@owaisahmed5300
owaisahmed5300 deleted the fix/comment-constant-type-sniffs branch July 11, 2026 10:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant