Skip to content

Commit

Permalink
PES-2404: Increased the PHPStan analysis level from 5 to 6 for Packet…
Browse files Browse the repository at this point in the history
…ery/Module and add specific ignore rules

- to suppress parameter and return type errors related to arrays lacking specified value types.
  • Loading branch information
Karpec committed Dec 6, 2024
1 parent eca2a93 commit 1dc24a5
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion phpstan/module.neon
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,10 @@ parameters:
- ../vendor/php-stubs/woocommerce-stubs/woocommerce-stubs.php
- ../vendor/php-stubs/woocommerce-stubs/woocommerce-packages-stubs.php
- ../constants.php
level: 5
level: 6
ignoreErrors:
- '#Method .*::.*\(\) has parameter \$\w+ with no value type specified in iterable type array#'
- '#Method .*::.*\(\) return type has no value type specified in iterable type array#'
paths:
- ../src/Packetery/Module
treatPhpDocTypesAsCertain: false
Expand Down

0 comments on commit 1dc24a5

Please sign in to comment.