aboutsummaryrefslogtreecommitdiff
path: root/phpstan.neon
diff options
context:
space:
mode:
Diffstat (limited to 'phpstan.neon')
-rw-r--r--phpstan.neon11
1 files changed, 11 insertions, 0 deletions
diff --git a/phpstan.neon b/phpstan.neon
index 8c4765c..6087678 100644
--- a/phpstan.neon
+++ b/phpstan.neon
@@ -1,3 +1,6 @@
+includes:
+ - vendor/pepakriz/phpstan-exception-rules/extension.neon
+
parameters:
level: 5
paths:
@@ -5,3 +8,11 @@ parameters:
- app/fn
- index.php
- tests
+ exceptionRules:
+ # ignore some exceptions and their chlidrens
+ uncheckedExceptions:
+ - Error
+ - LogicException
+ # ignore all exceptions errors in tests classes
+ methodWhitelist:
+ PHPUnit\Framework\TestCase: '#.*#i'