-
Notifications
You must be signed in to change notification settings - Fork 10
/
phpstan.neon.dist
35 lines (33 loc) · 1.1 KB
/
phpstan.neon.dist
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
includes:
- phar://phpstan.phar/conf/bleedingEdge.neon
- ./vendor/phpstan/phpstan-strict-rules/rules.neon
- ./vendor/phpstan/phpstan-phpunit/extension.neon
- ./vendor/phpstan/phpstan-phpunit/rules.neon
parameters:
level: max
phpVersion: 70200
paths:
- bin/composer-dependency-analyser
- src
- tests
excludePaths:
analyseAndScan:
- tests/data/not-autoloaded/*
tmpDir: cache/phpstan/
reportAnyTypeWideningInVarTag: true
checkMissingCallableSignature: true
checkUninitializedProperties: true
checkBenevolentUnionTypes: true
checkImplicitMixed: true
checkTooWideReturnTypesInProtectedAndPublicMethods: true
exceptions:
check:
missingCheckedExceptionInThrows: true
tooWideThrowType: true
implicitThrows: false
checkedExceptionClasses:
- ShipMonk\ComposerDependencyAnalyser\Exception\RuntimeException
ignoreErrors:
-
message: "#but it's missing from the PHPDoc @throws tag\\.$#" # allow uncatched exceptions in tests
path: tests/*