-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathphpstan.neon
28 lines (28 loc) · 1.06 KB
/
phpstan.neon
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
parameters:
tmpDir: .phpstan.result.cache
level: 9
paths:
- src
- tests
phpVersion: 80300 # Lowest currently supported version
exceptions:
check:
missingCheckedExceptionInThrows: true
tooWideThrowType: true
implicitThrows: false
uncheckedExceptionClasses:
- 'PHPUnit\Framework\Exception'
- 'SebastianBergmann\RecursionContext\InvalidArgumentException'
- 'PrinsFrank\Enums\Exception\InvalidArgumentException'
- 'PrinsFrank\Enums\Exception\NameNotFoundException'
- 'PrinsFrank\ObjectResolver\Exception\ShouldNotHappenException'
treatPhpDocTypesAsCertain: false
checkBenevolentUnionTypes: true
reportPossiblyNonexistentGeneralArrayOffset: true
reportPossiblyNonexistentConstantArrayOffset: true
reportWrongPhpDocTypeInVarTag: true
reportAnyTypeWideningInVarTag: true
checkMissingOverrideMethodAttribute: true
includes:
- phar://phpstan.phar/conf/bleedingEdge.neon
- vendor/phpstan/phpstan-strict-rules/rules.neon