Skip to content

Commit 85d26b2

Browse files
committed
Replace SlevomatCodingStandard.TypeHints.UnionTypeHintFormat sniff with SlevomatCodingStandard.TypeHints.DNFTypeHintFormat sniff
1 parent 244a221 commit 85d26b2

6 files changed

Lines changed: 17 additions & 10 deletions

File tree

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
1010
### Changed
1111

1212
- `slevomat/coding-standard` upgraded to `^8.16.0`
13+
- Replaced `SlevomatCodingStandard.TypeHints.UnionTypeHintFormat` sniff with
14+
`SlevomatCodingStandard.TypeHints.DNFTypeHintFormat` sniff
1315

1416
### Removed
1517

src/ruleset-8.0.xml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,9 +42,10 @@
4242
</rule>
4343
<rule ref="SlevomatCodingStandard.Functions.RequireTrailingCommaInClosureUse"/>
4444
<rule ref="SlevomatCodingStandard.Functions.RequireTrailingCommaInDeclaration"/>
45-
<rule ref="SlevomatCodingStandard.TypeHints.UnionTypeHintFormat">
45+
<rule ref="SlevomatCodingStandard.TypeHints.DNFTypeHintFormat">
4646
<properties>
47-
<property name="withSpaces" value="no"/>
47+
<property name="withSpacesAroundOperators" value="no"/>
48+
<property name="withSpacesInsideParentheses" value="no"/>
4849
<property name="shortNullable" value="no"/>
4950
<property name="nullPosition" value="last"/>
5051
</properties>

src/ruleset-8.1.xml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,9 +42,10 @@
4242
</rule>
4343
<rule ref="SlevomatCodingStandard.Functions.RequireTrailingCommaInClosureUse"/>
4444
<rule ref="SlevomatCodingStandard.Functions.RequireTrailingCommaInDeclaration"/>
45-
<rule ref="SlevomatCodingStandard.TypeHints.UnionTypeHintFormat">
45+
<rule ref="SlevomatCodingStandard.TypeHints.DNFTypeHintFormat">
4646
<properties>
47-
<property name="withSpaces" value="no"/>
47+
<property name="withSpacesAroundOperators" value="no"/>
48+
<property name="withSpacesInsideParentheses" value="no"/>
4849
<property name="shortNullable" value="no"/>
4950
<property name="nullPosition" value="last"/>
5051
</properties>

src/ruleset-8.2.xml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,9 +42,10 @@
4242
</rule>
4343
<rule ref="SlevomatCodingStandard.Functions.RequireTrailingCommaInClosureUse"/>
4444
<rule ref="SlevomatCodingStandard.Functions.RequireTrailingCommaInDeclaration"/>
45-
<rule ref="SlevomatCodingStandard.TypeHints.UnionTypeHintFormat">
45+
<rule ref="SlevomatCodingStandard.TypeHints.DNFTypeHintFormat">
4646
<properties>
47-
<property name="withSpaces" value="no"/>
47+
<property name="withSpacesAroundOperators" value="no"/>
48+
<property name="withSpacesInsideParentheses" value="no"/>
4849
<property name="shortNullable" value="no"/>
4950
<property name="nullPosition" value="last"/>
5051
</properties>

src/ruleset-8.3.xml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,9 +42,10 @@
4242
</rule>
4343
<rule ref="SlevomatCodingStandard.Functions.RequireTrailingCommaInClosureUse"/>
4444
<rule ref="SlevomatCodingStandard.Functions.RequireTrailingCommaInDeclaration"/>
45-
<rule ref="SlevomatCodingStandard.TypeHints.UnionTypeHintFormat">
45+
<rule ref="SlevomatCodingStandard.TypeHints.DNFTypeHintFormat">
4646
<properties>
47-
<property name="withSpaces" value="no"/>
47+
<property name="withSpacesAroundOperators" value="no"/>
48+
<property name="withSpacesInsideParentheses" value="no"/>
4849
<property name="shortNullable" value="no"/>
4950
<property name="nullPosition" value="last"/>
5051
</properties>

src/ruleset-8.4.xml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,9 +42,10 @@
4242
</rule>
4343
<rule ref="SlevomatCodingStandard.Functions.RequireTrailingCommaInClosureUse"/>
4444
<rule ref="SlevomatCodingStandard.Functions.RequireTrailingCommaInDeclaration"/>
45-
<rule ref="SlevomatCodingStandard.TypeHints.UnionTypeHintFormat">
45+
<rule ref="SlevomatCodingStandard.TypeHints.DNFTypeHintFormat">
4646
<properties>
47-
<property name="withSpaces" value="no"/>
47+
<property name="withSpacesAroundOperators" value="no"/>
48+
<property name="withSpacesInsideParentheses" value="no"/>
4849
<property name="shortNullable" value="no"/>
4950
<property name="nullPosition" value="last"/>
5051
</properties>

0 commit comments

Comments
 (0)