-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathphpstan.neon
More file actions
60 lines (44 loc) · 1.39 KB
/
phpstan.neon
File metadata and controls
60 lines (44 loc) · 1.39 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
# SPDX-License-Identifier: MIT OR PMPL-1.0-or-later
# PHPStan Configuration - Maximum Strictness
parameters:
# Maximum analysis level (strictest)
level: 9
# Paths to analyze
paths:
- src
# Paths to exclude
excludePaths:
- vendor
# Treat phpdoc types as native
treatPhpDocTypesAsCertain: false
# Report unmatched ignored errors
reportUnmatchedIgnoredErrors: true
# Check missing typehints
checkMissingIterableValueType: true
checkGenericClassInNonGenericObjectType: true
# Check for unused code
checkAlwaysTrueCheckTypeFunctionCall: true
checkAlwaysTrueInstanceof: true
checkAlwaysTrueStrictComparison: true
# Pollute scope with loop variables
polluteScopeWithLoopInitialAssignments: false
polluteScopeWithAlwaysIterableForeach: false
# Report partial union types
reportMaybesInMethodSignatures: true
reportMaybesInPropertyPhpDocTypes: true
# Check dynamic properties
checkDynamicProperties: true
# Check implicit mixed
checkImplicitMixed: true
# Check benevolent union types
checkBenevolentUnionTypes: true
# Bleeding edge features (for strictest checks)
# bleedingEdge: true
# Memory limit
memoryLimit: 256M
# Parallel processing
parallel:
maximumNumberOfProcesses: 4
# Type coverage
typeAliases:
# Add type aliases here if needed