Skip to content

Commit 742c11a

Browse files
authored
🐛 Fix bugs introduced by drupal/coder 8.3.24 (#82)
1 parent c24fdce commit 742c11a

File tree

3 files changed

+16
-2
lines changed

3 files changed

+16
-2
lines changed

PreviousNextDrupal/ruleset.xml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,14 @@
6262
<!-- Drupal -->
6363
<rule ref="Drupal" />
6464

65+
<!-- Undo the DeclareStrictTypesMissing ignore introduced by
66+
https://www.drupal.org/project/coder/issues/3407995
67+
This must be placed after the above ref="Drupal"
68+
-->
69+
<rule ref="SlevomatCodingStandard.TypeHints.DeclareStrictTypes.DeclareStrictTypesMissing">
70+
<severity>5</severity>
71+
</rule>
72+
6573
<!-- Drupal.Arrays -->
6674
<rule ref="Drupal.Arrays.Array.LongLineDeclaration"><severity>0</severity></rule>
6775

@@ -77,4 +85,8 @@
7785
<rule ref="Drupal.Commenting.TodoComment.TodoFormat"><severity>0</severity></rule>
7886
<!-- Do not require @var for properties since PHP has property typing -->
7987
<rule ref="Drupal.Commenting.VariableComment.Missing"><severity>0</severity></rule>
88+
89+
<!-- Drupal.Functions -->
90+
<!-- This duplicates SlevomatCodingStandard.Functions.RequireTrailingCommaInDeclaration -->
91+
<rule ref="Drupal.Functions.MultiLineFunctionDeclaration.MissingTrailingComma"><severity>0</severity></rule>
8092
</ruleset>

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"require": {
77
"php": "^8.0",
88
"dealerdirect/phpcodesniffer-composer-installer": "^1.0.0",
9-
"drupal/coder": "^8.3.21",
9+
"drupal/coder": "^8.3.24",
1010
"slevomat/coding-standard": "^8.13.2",
1111
"squizlabs/php_codesniffer": "^3.7.1"
1212
},

phpstan.neon

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,6 @@ parameters:
77
- %currentWorkingDirectory%/vendor/squizlabs/php_codesniffer/autoload.php
88
excludePaths:
99
- %currentWorkingDirectory%/tests/*/fixtures/*
10-
checkGenericClassInNonGenericObjectType: false
10+
ignoreErrors:
11+
-
12+
identifier: missingType.generics

0 commit comments

Comments
 (0)