-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathphpstan.dist.neon
More file actions
63 lines (62 loc) · 1.69 KB
/
phpstan.dist.neon
File metadata and controls
63 lines (62 loc) · 1.69 KB
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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
includes:
- vendor/phpstan/phpstan/conf/bleedingEdge.neon
- extension.neon
- phpstan-baseline.php
parameters:
phpVersion:
min: 80200
max: 80599
level: 10
tmpDir: build/phpstan
paths:
- src
- tests
- tools
excludePaths:
analyseAndScan:
- tests/data/**
analyse:
- tools/vendor/**
bootstrapFiles:
- vendor/autoload.php
ignoreErrors:
# these errors are needed for testing runtime behaviour
-
identifier: method.alreadyNarrowedType
path: tests/ExpectationTest.php
-
identifier: method.impossibleType
path: tests/ExpectationTest.php
-
identifier: method.alreadyNarrowedType
path: tests/NegatedExpectationTest.php
-
identifier: method.impossibleType
path: tests/NegatedExpectationTest.php
-
identifier: method.alreadyNarrowedType
path: tests/NullableExpectationTest.php
-
identifier: method.impossibleType
path: tests/NullableExpectationTest.php
-
identifier: method.alreadyNarrowedType
path: tests/KeysIteratingExpectationTest.php
-
identifier: method.impossibleType
path: tests/KeysIteratingExpectationTest.php
-
identifier: method.alreadyNarrowedType
path: tests/ValuesIteratingExpectationTest.php
-
identifier: method.impossibleType
path: tests/ValuesIteratingExpectationTest.php
exceptions:
check:
throwTypeCovariance: true
checkBenevolentUnionTypes: true
checkMissingCallableSignature: true
checkTooWideReturnTypesInProtectedAndPublicMethods: true
checkTooWideThrowTypesInProtectedAndPublicMethods: true
reportAlwaysTrueInLastCondition: true
reportAnyTypeWideningInVarTag: true