Skip to content

Commit 094a121

Browse files
authored
Merge pull request #264 from simPod/req-8
chore(deps): require slevomat/coding-standard v8 and squizlabs/php_codesniffer v3.7
2 parents 1f059bb + fd9171d commit 094a121

9 files changed

+12
-12
lines changed

.github/workflows/continuous-integration.yml

+1-2
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,6 @@ jobs:
9090
strategy:
9191
matrix:
9292
php-version:
93-
- "7.1"
9493
- "7.2"
9594
- "7.3"
9695
- "7.4"
@@ -128,7 +127,7 @@ jobs:
128127
strategy:
129128
matrix:
130129
php-version:
131-
- "7.1"
130+
- "7.2"
132131
- "7.4"
133132
- "8.0"
134133
- "8.1"

composer.json

+3-3
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,10 @@
2121
{"name": "Steve Müller", "email": "[email protected]"}
2222
],
2323
"require": {
24-
"php": "^7.1 || ^8.0",
24+
"php": "^7.2 || ^8.0",
2525
"dealerdirect/phpcodesniffer-composer-installer": "^0.6.2 || ^0.7",
26-
"slevomat/coding-standard": "^7.0.0",
27-
"squizlabs/php_codesniffer": "^3.6.0"
26+
"slevomat/coding-standard": "^8",
27+
"squizlabs/php_codesniffer": "^3.7"
2828
},
2929
"config": {
3030
"sort-packages": true

lib/Doctrine/ruleset.xml

+2-1
Original file line numberDiff line numberDiff line change
@@ -133,6 +133,8 @@
133133
</rule>
134134
<!-- Require usage of ::class instead of __CLASS__, get_class(), get_class($this), get_called_class() and get_parent_class() -->
135135
<rule ref="SlevomatCodingStandard.Classes.ModernClassNameReference"/>
136+
<!-- https://github.com/slevomat/coding-standard#slevomatcodingstandardclassespropertydeclaration- -->
137+
<rule ref="SlevomatCodingStandard.Classes.PropertyDeclaration"/>
136138
<!-- Forbid uses of multiple traits separated by comma -->
137139
<rule ref="SlevomatCodingStandard.Classes.TraitUseDeclaration"/>
138140
<!-- Require no spaces before trait use, between trait uses and one space after trait uses -->
@@ -408,7 +410,6 @@
408410
</property>
409411
</properties>
410412
</rule>
411-
<rule ref="SlevomatCodingStandard.TypeHints.PropertyTypeHintSpacing"/>
412413
<rule ref="SlevomatCodingStandard.TypeHints.ReturnTypeHint">
413414
<properties>
414415
<property name="traversableTypeHints" type="array">

tests/expected_report.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ tests/input/not_spacing.php 8 0
2828
tests/input/null_coalesce_equal_operator.php 1 0
2929
tests/input/null_coalesce_operator.php 3 0
3030
tests/input/optimized-functions.php 1 0
31-
tests/input/PropertyTypeHintSpacing.php 6 0
31+
tests/input/PropertyDeclaration.php 6 0
3232
tests/input/return_type_on_closures.php 21 0
3333
tests/input/return_type_on_methods.php 17 0
3434
tests/input/semicolon_spacing.php 3 0

tests/fixed/PropertyTypeHintSpacing.php renamed to tests/fixed/PropertyDeclaration.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
namespace Spacing;
66

7-
final class PropertyTypeHintSpacing
7+
final class PropertyDeclaration
88
{
99
public bool $boolPropertyWithDefaultValue = false;
1010
public string $stringProperty;

tests/input/PropertyTypeHintSpacing.php renamed to tests/input/PropertyDeclaration.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
namespace Spacing;
66

7-
final class PropertyTypeHintSpacing
7+
final class PropertyDeclaration
88
{
99
public bool $boolPropertyWithDefaultValue = false;
1010
public string $stringProperty;

tests/php74-compatibility.patch

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ index fd5432c..233e24d 100644
2222
+tests/input/null_coalesce_equal_operator.php 5 0
2323
tests/input/null_coalesce_operator.php 3 0
2424
tests/input/optimized-functions.php 1 0
25-
tests/input/PropertyTypeHintSpacing.php 6 0
25+
tests/input/PropertyDeclaration.php 6 0
2626
@@ -39,15 +39,15 @@ tests/input/superfluous-naming.php 11 0
2727
tests/input/test-case.php 8 0
2828
tests/input/trailing_comma_on_array.php 1 0

tests/php80-compatibility.patch

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ index c644926..d0f0a44 100644
2424
tests/input/null_coalesce_operator.php 3 0
2525
+tests/input/null_safe_operator.php 1 0
2626
tests/input/optimized-functions.php 1 0
27-
tests/input/PropertyTypeHintSpacing.php 6 0
27+
tests/input/PropertyDeclaration.php 6 0
2828
tests/input/return_type_on_closures.php 21 0
2929
@@ -39,15 +40,15 @@ tests/input/superfluous-naming.php 11 0
3030
tests/input/test-case.php 8 0

tests/php81-compatibility.patch

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ index c644926..d0f0a44 100644
2424
tests/input/null_coalesce_operator.php 3 0
2525
+tests/input/null_safe_operator.php 1 0
2626
tests/input/optimized-functions.php 1 0
27-
tests/input/PropertyTypeHintSpacing.php 6 0
27+
tests/input/PropertyDeclaration.php 6 0
2828
tests/input/return_type_on_closures.php 21 0
2929
@@ -39,15 +40,15 @@ tests/input/superfluous-naming.php 11 0
3030
tests/input/test-case.php 8 0

0 commit comments

Comments
 (0)