Skip to content

Commit 39e4a76

Browse files
authored
Merge pull request #325 from simPod/bumpie
Require slevomat/coding-standard v8.16
2 parents 0308bc4 + a18e94d commit 39e4a76

File tree

10 files changed

+21
-1106
lines changed

10 files changed

+21
-1106
lines changed

.github/workflows/continuous-integration.yml

Lines changed: 2 additions & 6 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,8 +128,6 @@ jobs:
130128
fail-fast: false
131129
matrix:
132130
php-version:
133-
- "7.2"
134-
- "7.3"
135131
- "7.4"
136132
- "8.0"
137133
- "8.1"

Makefile

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -10,20 +10,6 @@ test-report: vendor
1010
test-fix: vendor
1111
./bin/test-fix
1212

13-
update-compatibility-patch-72:
14-
@git apply tests/php72-compatibility.patch
15-
@printf "Please open your editor and apply your changes\n"
16-
@until [ "$${compatibility_resolved}" == "y" ]; do read -p "Have finished your changes (y|n)? " compatibility_resolved; done && compatibility_resolved=
17-
@git diff -- tests/expected_report.txt tests/fixed tests/input > .tmp-patch && mv .tmp-patch tests/php72-compatibility.patch && git apply -R tests/php72-compatibility.patch
18-
@git commit -m 'Update compatibility patch' tests/php72-compatibility.patch
19-
20-
update-compatibility-patch-73:
21-
@git apply tests/php73-compatibility.patch
22-
@printf "Please open your editor and apply your changes\n"
23-
@until [ "$${compatibility_resolved}" == "y" ]; do read -p "Have finished your changes (y|n)? " compatibility_resolved; done && compatibility_resolved=
24-
@git diff -- tests/expected_report.txt tests/fixed tests/input > .tmp-patch && mv .tmp-patch tests/php73-compatibility.patch && git apply -R tests/php73-compatibility.patch
25-
@git commit -m 'Update compatibility patch' tests/php73-compatibility.patch
26-
2713
update-compatibility-patch-74:
2814
@git apply tests/php74-compatibility.patch
2915
@printf "Please open your editor and apply your changes\n"

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: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -482,10 +482,11 @@
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>
488-
<property name="withSpaces" value="no" />
488+
<property name="withSpacesAroundOperators" value="no" />
489+
<property name="withSpacesInsideParentheses" value="no" />
489490
<property name="shortNullable" value="no" />
490491
<property name="nullPosition" value="last" />
491492
</properties>

tests/expected_report.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ FILE ERRORS WARNINGS
55
----------------------------------------------------------------------
66
tests/input/annotation-name.php 8 0
77
tests/input/array_indentation.php 10 0
8-
tests/input/arrow-functions-format.php 10 0
8+
tests/input/arrow-functions-format.php 12 0
99
tests/input/assignment-operators.php 4 0
1010
tests/input/attributes.php 15 0
1111
tests/input/binary_operators.php 9 0
@@ -54,9 +54,9 @@ tests/input/use-ordering.php 1 0
5454
tests/input/useless-semicolon.php 2 0
5555
tests/input/UselessConditions.php 21 0
5656
----------------------------------------------------------------------
57-
A TOTAL OF 464 ERRORS AND 2 WARNINGS WERE FOUND IN 50 FILES
57+
A TOTAL OF 466 ERRORS AND 2 WARNINGS WERE FOUND IN 50 FILES
5858
----------------------------------------------------------------------
59-
PHPCBF CAN FIX 380 OF THESE SNIFF VIOLATIONS AUTOMATICALLY
59+
PHPCBF CAN FIX 382 OF THESE SNIFF VIOLATIONS AUTOMATICALLY
6060
----------------------------------------------------------------------
6161

6262

tests/fixed/arrow-functions-format.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,12 +32,12 @@
3232
];
3333

3434
$singleLineArrayReturn = Collection::map(
35-
static fn () => [1, 2]
35+
static fn () => [1, 2],
3636
);
3737

3838
$wrongMultiLineArrayReturn = Collection::map(
3939
static fn () => [
4040
1,
4141
2,
42-
]
42+
],
4343
);

0 commit comments

Comments
 (0)