-
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathphpstan.neon
33 lines (33 loc) · 1.38 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
32
33
parameters:
tmpDir: ./cache/.phpstan.result.cache
level: 10
paths:
- src
- tests
phpVersion: 80300 # Lowest currently supported version
treatPhpDocTypesAsCertain: false
checkBenevolentUnionTypes: true
reportPossiblyNonexistentGeneralArrayOffset: true
reportPossiblyNonexistentConstantArrayOffset: true
reportWrongPhpDocTypeInVarTag: true
reportAnyTypeWideningInVarTag: true
checkMissingOverrideMethodAttribute: true
ignoreErrors:
- identifier: property.uninitializedReadonly # Used in several objects to cache parsed/decoded data
- identifier: property.readOnlyAssignNotInConstructor # Used in several objects to cache parsed/decoded data
exceptions:
implicitThrows: false
reportUncheckedExceptionDeadCatch: true
uncheckedExceptionRegexes:
- '#^PHPUnit\\Framework\\#'
uncheckedExceptionClasses:
- 'PrinsFrank\PdfParser\Exception\PdfParserException'
- 'PrinsFrank\PdfParser\Exception\InvalidArgumentException'
- 'PrinsFrank\PdfParser\Exception\ParseFailureException'
- 'PrinsFrank\PdfParser\Exception\RuntimeException'
check:
missingCheckedExceptionInThrows: true
tooWideThrowType: true
includes:
- phar://phpstan.phar/conf/bleedingEdge.neon
- vendor/phpstan/phpstan-strict-rules/rules.neon