Skip to content

Commit 5b256af

Browse files
committed
Add SlevomatCodingStandard.TypeHints.ClassConstantTypeHint sniff
1 parent 8790bb6 commit 5b256af

3 files changed

Lines changed: 7 additions & 0 deletions

File tree

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,11 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
77

88
## [Unreleased](https://github.com/orisai/coding-standard-php/compare/3.10.3...v3.x)
99

10+
### Added
11+
12+
- `SlevomatCodingStandard.TypeHints.ClassConstantTypeHint` sniff
13+
- require typed class constants on PHP 8.3+
14+
1015
### Changed
1116

1217
- `slevomat/coding-standard` upgraded to `^8.16.0`

src/ruleset-8.3.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,5 +53,6 @@
5353
<!-- - since 8.1 -->
5454
<!-- - since 8.2 -->
5555
<!-- - since 8.3 -->
56+
<rule ref="SlevomatCodingStandard.TypeHints.ClassConstantTypeHint"/>
5657

5758
</ruleset>

src/ruleset-8.4.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@
5353
<!-- - since 8.1 -->
5454
<!-- - since 8.2 -->
5555
<!-- - since 8.3 -->
56+
<rule ref="SlevomatCodingStandard.TypeHints.ClassConstantTypeHint"/>
5657
<!-- - since 8.4 -->
5758

5859
</ruleset>

0 commit comments

Comments
 (0)