Skip to content

Commit

Permalink
Add modules/custom/social_graphql/src/GraphQL/Violation.php to ignore…
Browse files Browse the repository at this point in the history
… list

This happens because we can't add the error to PHPStan baseline and using it on ignoreErrors triggers another PHPStan issue stating that we need to add the file into excludePaths
  • Loading branch information
tbsiqueira committed Jun 23, 2023
1 parent d8437c3 commit 8e910cd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion phpstan.neon
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ parameters:
- translations/
analyse:
- *SocialProfileTrait.php
- modules/custom/social_graphql/src/GraphQL/Violation.php
# Not sure we can specify generic types properly with Drupal coding standards
# yet, disable for now.
checkGenericClassInNonGenericObjectType: false
Expand Down Expand Up @@ -70,4 +71,3 @@ parameters:
# The accessCheck test seems to be horribly broken and providing false positives
# Disable until https://github.com/mglaman/phpstan-drupal/issues/396 is fixed.
- "#^Missing explicit access check on entity query\\.$#"

0 comments on commit 8e910cd

Please sign in to comment.