Skip to content

Commit 763d009

Browse files
committed
Add PHPStan's config for test codes
1 parent a09b2eb commit 763d009

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

tests/.dir-locals.el

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
((nil (php-project-root . composer)
2+
(phpstan-working-dir . (root . ""))
3+
(phpstan-config-file . (root . "tests/phpstan.neon"))))

tests/phpstan.neon.dist

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
parameters:
2+
level: max
3+
bootstrap: %currentWorkingDirectory%/vendor/autoload.php

0 commit comments

Comments
 (0)