-
-
Notifications
You must be signed in to change notification settings - Fork 2
/
phpstan.neon
30 lines (24 loc) · 781 Bytes
/
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
includes:
- .Build/vendor/phpstan/phpstan/conf/bleedingEdge.neon
- phpstan-baseline.neon
parameters:
parallel:
# Don't be overly greedy on machines with more CPU's to be a good neighbor especially on CI
maximumNumberOfProcesses: 5
level: 9
bootstrapFiles:
- .Build/vendor/autoload.php
paths:
- Classes
- Configuration
- Tests
# Allow instanceof checks, particularly in tests
checkAlwaysTrueCheckTypeFunctionCall: false
# Stricter checks
checkBenevolentUnionTypes: true
checkImplicitMixed: true
checkTooWideReturnTypesInProtectedAndPublicMethods: true
checkUninitializedProperties: true
reportAlwaysTrueInLastCondition: true
reportAnyTypeWideningInVarTag: true
reportPossiblyNonexistentConstantArrayOffset: true