Skip to content

Commit

Permalink
Fix PHPStan -- continued 2
Browse files Browse the repository at this point in the history
  • Loading branch information
Kaudaj committed Jul 14, 2023
1 parent 2ef7ba2 commit fa18705
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
4 changes: 0 additions & 4 deletions tests/php/phpstan.dist.neon
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,6 @@ parameters:
- %currentWorkingDirectory%/kjblocks.php
excludePaths:
- %currentWorkingDirectory%/src/Grid/Position
ignoreErrors:
-
message: '#.*Doctrine\\Persistence\\Event\\LifecycleEventArgs but does not specify its types\: TObjectManager.*#'
path: %currentWorkingDirectory%/src/EventListener/BlockGroupHooksUpdater.php
reportUnmatchedIgnoredErrors: true
level: 8

Expand Down
3 changes: 3 additions & 0 deletions tests/php/phpstan_8.0.0.dist.neon
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@ parameters:
-
message: '#^Parameter \#1 \$configuration of class PrestaShop\\PrestaShop\\Core\\ConstraintValidator\\TypedRegexValidator constructor expects PrestaShop\\PrestaShop\\Core\\ConfigurationInterface, PrestaShop\\PrestaShop\\Core\\String\\CharacterCleaner given\.$#'
path: %currentWorkingDirectory%/src/Constraint/ConstraintValidatorFactory.php
-
message: '#.*Doctrine\\Persistence\\Event\\LifecycleEventArgs but does not specify its types\: TObjectManager.*#'
path: %currentWorkingDirectory%/src/EventListener/BlockGroupHooksUpdater.php

includes:
- %currentWorkingDirectory%/tests/php/phpstan.dist.neon
Expand Down
3 changes: 3 additions & 0 deletions tests/php/phpstan_latest.dist.neon
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@ parameters:
-
message: '#^Parameter \#1 \$configuration of class PrestaShop\\PrestaShop\\Core\\ConstraintValidator\\TypedRegexValidator constructor expects PrestaShop\\PrestaShop\\Core\\ConfigurationInterface, PrestaShop\\PrestaShop\\Core\\String\\CharacterCleaner given\.$#'
path: %currentWorkingDirectory%/src/Constraint/ConstraintValidatorFactory.php
-
message: '#.*Doctrine\\Persistence\\Event\\LifecycleEventArgs but does not specify its types\: TObjectManager.*#'
path: %currentWorkingDirectory%/src/EventListener/BlockGroupHooksUpdater.php

includes:
- %currentWorkingDirectory%/tests/php/phpstan.dist.neon
Expand Down

0 comments on commit fa18705

Please sign in to comment.