Skip to content

Commit ffe9df4

Browse files
committed
Require slevomat/coding-standard v8.16
Use DNFTypeHintFormat instead of deprecated UnionTypeHintFormat sniff Drop support for php 7.2 + 7.3 since it's super ancient slevomat/coding-standard does not support in anymore as well.
1 parent 0308bc4 commit ffe9df4

File tree

3 files changed

+7
-9
lines changed

3 files changed

+7
-9
lines changed

.github/workflows/continuous-integration.yml

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919
strategy:
2020
matrix:
2121
php-version:
22-
- "7.2"
22+
- "7.4"
2323

2424
steps:
2525
- name: "Checkout"
@@ -52,7 +52,7 @@ jobs:
5252
strategy:
5353
matrix:
5454
php-version:
55-
- "7.2"
55+
- "7.4"
5656

5757
steps:
5858
- name: "Checkout"
@@ -91,8 +91,6 @@ jobs:
9191
fail-fast: false
9292
matrix:
9393
php-version:
94-
- "7.2"
95-
- "7.3"
9694
- "7.4"
9795
- "8.0"
9896
- "8.1"
@@ -130,7 +128,7 @@ jobs:
130128
fail-fast: false
131129
matrix:
132130
php-version:
133-
- "7.2"
131+
- "7.4"
134132
- "7.3"
135133
- "7.4"
136134
- "8.0"

composer.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,9 @@
2222
{"name": "Steve Müller", "email": "st.mueller@dzh-online.de"}
2323
],
2424
"require": {
25-
"php": "^7.2 || ^8.0",
25+
"php": "^7.4 || ^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)