Skip to content

Commit eecbfc6

Browse files
committed
Enable richParserNodeVisitor for tests
Fixes HEAD for PHPStan 1.6.0+ on tests which use bleedingEdge until #399 is finished.
1 parent 2c72ac6 commit eecbfc6

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

.github/workflows/php.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ jobs:
7474
- name: "Install dependencies"
7575
run: "composer update --no-progress --prefer-dist"
7676
- name: "PHPUnit"
77-
run: "php vendor/bin/phpunit --debug"
77+
run: "php vendor/bin/phpunit"
7878

7979
build_integration:
8080
needs:

tests/fixtures/config/phpunit-drupal-phpstan.neon

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,3 +17,7 @@ includes:
1717
- ../../../extension.neon
1818
- ../../../rules.neon
1919
- ../../../vendor/phpstan/phpstan-deprecation-rules/rules.neon
20+
# @todo remove after https://github.com/mglaman/phpstan-drupal/issues/399.
21+
conditionalTags:
22+
PhpParser\NodeVisitor\NodeConnectingVisitor:
23+
phpstan.parser.richParserNodeVisitor: true

0 commit comments

Comments
 (0)