-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathphpstan.neon
35 lines (35 loc) · 1.27 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
34
35
parameters:
tmpDir: ./cache/.phpstan.result.cache
level: 9
paths:
- src
- tests
phpVersion: 80100 # Lowest currently supported version
exceptions:
check:
missingCheckedExceptionInThrows: true
tooWideThrowType: true
implicitThrows: false
uncheckedExceptionClasses:
- 'PHPUnit\Framework\Exception'
- 'PHPUnit\Event\Exception'
- 'PHPUnit\Framework\MockObject\Exception'
- 'ReflectionException'
- 'SebastianBergmann\RecursionContext\InvalidArgumentException'
- 'PrinsFrank\Container\Exception\ShouldNotHappenException'
- 'PrinsFrank\Container\Exception\InvalidArgumentException'
treatPhpDocTypesAsCertain: false
checkBenevolentUnionTypes: true
reportPossiblyNonexistentGeneralArrayOffset: true
reportPossiblyNonexistentConstantArrayOffset: true
reportWrongPhpDocTypeInVarTag: true
reportAnyTypeWideningInVarTag: true
checkMissingOverrideMethodAttribute: true
ignoreErrors:
-
path: src/Container.php
identifier: method.childParameterType
count: 2
includes:
- phar://phpstan.phar/conf/bleedingEdge.neon
- vendor/phpstan/phpstan-strict-rules/rules.neon