Skip to content

Commit

Permalink
🐛 Fix bugs introduced by drupal/coder 8.3.24
Browse files Browse the repository at this point in the history
  • Loading branch information
dpi committed Jun 4, 2024
1 parent 132d6e4 commit f63093d
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 2 deletions.
12 changes: 12 additions & 0 deletions PreviousNextDrupal/ruleset.xml
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,14 @@
<!-- Drupal -->
<rule ref="Drupal" />

<!-- Undo the DeclareStrictTypesMissing ignore introduced by
https://www.drupal.org/project/coder/issues/3407995
This must be placed after the above ref="Drupal"
-->
<rule ref="SlevomatCodingStandard.TypeHints.DeclareStrictTypes.DeclareStrictTypesMissing">
<severity>5</severity>
</rule>

<!-- Drupal.Arrays -->
<rule ref="Drupal.Arrays.Array.LongLineDeclaration"><severity>0</severity></rule>

Expand All @@ -77,4 +85,8 @@
<rule ref="Drupal.Commenting.TodoComment.TodoFormat"><severity>0</severity></rule>
<!-- Do not require @var for properties since PHP has property typing -->
<rule ref="Drupal.Commenting.VariableComment.Missing"><severity>0</severity></rule>

<!-- Drupal.Functions -->
<!-- This duplicates SlevomatCodingStandard.Functions.RequireTrailingCommaInDeclaration -->
<rule ref="Drupal.Functions.MultiLineFunctionDeclaration.MissingTrailingComma"><severity>0</severity></rule>
</ruleset>
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"require": {
"php": "^8.0",
"dealerdirect/phpcodesniffer-composer-installer": "^1.0.0",
"drupal/coder": "^8.3.21",
"drupal/coder": "^8.3.24",
"slevomat/coding-standard": "^8.13.2",
"squizlabs/php_codesniffer": "^3.7.1"
},
Expand Down
4 changes: 3 additions & 1 deletion phpstan.neon
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,6 @@ parameters:
- %currentWorkingDirectory%/vendor/squizlabs/php_codesniffer/autoload.php
excludePaths:
- %currentWorkingDirectory%/tests/*/fixtures/*
checkGenericClassInNonGenericObjectType: false
ignoreErrors:
-
identifier: missingType.generics

0 comments on commit f63093d

Please sign in to comment.