Skip to content

Commit

Permalink
chore(deps): require slevomat/coding-standard v8 and squizlabs/php_co…
Browse files Browse the repository at this point in the history
…desniffer v3.7

- Bump min php to 7.2
  • Loading branch information
simPod committed Jun 18, 2022
1 parent f86c16a commit b05c411
Show file tree
Hide file tree
Showing 8 changed files with 10 additions and 11 deletions.
2 changes: 0 additions & 2 deletions .github/workflows/continuous-integration.yml
Expand Up @@ -90,7 +90,6 @@ jobs:
strategy:
matrix:
php-version:
- "7.1"
- "7.2"
- "7.3"
- "7.4"
Expand Down Expand Up @@ -126,7 +125,6 @@ jobs:
strategy:
matrix:
php-version:
- "7.1"
- "7.4"
- "8.0"

Expand Down
6 changes: 3 additions & 3 deletions composer.json
Expand Up @@ -21,10 +21,10 @@
{"name": "Steve Müller", "email": "st.mueller@dzh-online.de"}
],
"require": {
"php": "^7.1 || ^8.0",
"php": "^7.2 || ^8.0",
"dealerdirect/phpcodesniffer-composer-installer": "^0.6.2 || ^0.7",
"slevomat/coding-standard": "^7.0.0",
"squizlabs/php_codesniffer": "^3.6.0"
"slevomat/coding-standard": "^8",
"squizlabs/php_codesniffer": "^3.7"
},
"config": {
"sort-packages": true
Expand Down
3 changes: 2 additions & 1 deletion lib/Doctrine/ruleset.xml
Expand Up @@ -133,6 +133,8 @@
</rule>
<!-- Require usage of ::class instead of __CLASS__, get_class(), get_class($this), get_called_class() and get_parent_class() -->
<rule ref="SlevomatCodingStandard.Classes.ModernClassNameReference"/>
<!-- https://github.com/slevomat/coding-standard#slevomatcodingstandardclassespropertydeclaration- -->
<rule ref="SlevomatCodingStandard.Classes.PropertyDeclaration"/>
<!-- Forbid uses of multiple traits separated by comma -->
<rule ref="SlevomatCodingStandard.Classes.TraitUseDeclaration"/>
<!-- Require no spaces before trait use, between trait uses and one space after trait uses -->
Expand Down Expand Up @@ -408,7 +410,6 @@
</property>
</properties>
</rule>
<rule ref="SlevomatCodingStandard.TypeHints.PropertyTypeHintSpacing"/>
<rule ref="SlevomatCodingStandard.TypeHints.ReturnTypeHint">
<properties>
<property name="traversableTypeHints" type="array">
Expand Down
2 changes: 1 addition & 1 deletion tests/expected_report.txt
Expand Up @@ -28,7 +28,7 @@ tests/input/not_spacing.php 8 0
tests/input/null_coalesce_equal_operator.php 1 0
tests/input/null_coalesce_operator.php 3 0
tests/input/optimized-functions.php 1 0
tests/input/PropertyTypeHintSpacing.php 6 0
tests/input/PropertyDeclaration.php 6 0
tests/input/return_type_on_closures.php 21 0
tests/input/return_type_on_methods.php 17 0
tests/input/semicolon_spacing.php 3 0
Expand Down
Expand Up @@ -4,7 +4,7 @@

namespace Spacing;

final class PropertyTypeHintSpacing
final class PropertyDeclaration
{
public bool $boolPropertyWithDefaultValue = false;
public string $stringProperty;
Expand Down
Expand Up @@ -4,7 +4,7 @@

namespace Spacing;

final class PropertyTypeHintSpacing
final class PropertyDeclaration
{
public bool $boolPropertyWithDefaultValue = false;
public string $stringProperty;
Expand Down
2 changes: 1 addition & 1 deletion tests/php74-compatibility.patch
Expand Up @@ -22,7 +22,7 @@ index fd5432c..233e24d 100644
+tests/input/null_coalesce_equal_operator.php 5 0
tests/input/null_coalesce_operator.php 3 0
tests/input/optimized-functions.php 1 0
tests/input/PropertyTypeHintSpacing.php 6 0
tests/input/PropertyDeclaration.php 6 0
@@ -39,15 +39,15 @@ tests/input/superfluous-naming.php 11 0
tests/input/test-case.php 8 0
tests/input/trailing_comma_on_array.php 1 0
Expand Down
2 changes: 1 addition & 1 deletion tests/php80-compatibility.patch
Expand Up @@ -24,7 +24,7 @@ index c644926..d0f0a44 100644
tests/input/null_coalesce_operator.php 3 0
+tests/input/null_safe_operator.php 1 0
tests/input/optimized-functions.php 1 0
tests/input/PropertyTypeHintSpacing.php 6 0
tests/input/PropertyDeclaration.php 6 0
tests/input/return_type_on_closures.php 21 0
@@ -39,15 +40,15 @@ tests/input/superfluous-naming.php 11 0
tests/input/test-case.php 8 0
Expand Down

0 comments on commit b05c411

Please sign in to comment.