Skip to content

Commit d5b0046

Browse files
committed
Require slevomat/coding-standard v8.16
Use DNFTypeHintFormat instead of deprecated UnionTypeHintFormat sniff
1 parent 0308bc4 commit d5b0046

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
"require": {
2525
"php": "^7.2 || ^8.0",
2626
"dealerdirect/phpcodesniffer-composer-installer": "^0.6.2 || ^0.7 || ^1.0.0",
27-
"slevomat/coding-standard": "^8.14",
27+
"slevomat/coding-standard": "^8.16",
2828
"squizlabs/php_codesniffer": "^3.7"
2929
},
3030
"config": {

lib/Doctrine/ruleset.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -482,8 +482,8 @@
482482
</property>
483483
</properties>
484484
</rule>
485-
<!-- Define unions style -->
486-
<rule ref="SlevomatCodingStandard.TypeHints.UnionTypeHintFormat">
485+
<!-- Define DNF style -->
486+
<rule ref="SlevomatCodingStandard.TypeHints.DNFTypeHintFormat">
487487
<properties>
488488
<property name="withSpaces" value="no" />
489489
<property name="shortNullable" value="no" />

0 commit comments

Comments
 (0)