-
-
Notifications
You must be signed in to change notification settings - Fork 12
/
phpstan.neon
31 lines (31 loc) · 1.14 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
29
30
31
parameters:
tmpDir: ./cache/.phpstan.result.cache
level: 10
paths:
- src
- tests
- dev
phpVersion: 80100 # 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\Standards\ShouldNotHappenException'
treatPhpDocTypesAsCertain: false
checkBenevolentUnionTypes: true
reportPossiblyNonexistentGeneralArrayOffset: true
reportPossiblyNonexistentConstantArrayOffset: true
reportWrongPhpDocTypeInVarTag: true
reportAnyTypeWideningInVarTag: true
checkMissingOverrideMethodAttribute: true
rules:
- PrinsFrank\Standards\Dev\PHPStan\Rules\SourceTagRule
includes:
- phar://phpstan.phar/conf/bleedingEdge.neon
- vendor/phpstan/phpstan-strict-rules/rules.neon