-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathphpstan.dist.neon
More file actions
46 lines (46 loc) · 1.5 KB
/
phpstan.dist.neon
File metadata and controls
46 lines (46 loc) · 1.5 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
parameters:
level: 10
paths:
- src/
- tests/
type_coverage:
return: 100
param: 100
property: 100
constant: 100
# Stricter scope pollution checks
polluteScopeWithLoopInitialAssignments: false
polluteScopeWithAlwaysIterableForeach: false
polluteScopeWithBlock: false
# Check for missing returns in mixed-typed functions
checkExplicitMixedMissingReturn: true
# Check function/method name casing
checkFunctionNameCase: true
checkInternalClassCaseSensitivity: true
# Report maybe types in signatures
reportMaybesInMethodSignatures: true
reportMaybesInPropertyPhpDocTypes: true
reportStaticMethodSignatures: true
# Check for too wide return types
checkTooWideReturnTypesInProtectedAndPublicMethods: true
# Check for uninitialized properties
checkUninitializedProperties: true
# Check for dynamic properties
checkDynamicProperties: true
# Report wrong PHPDoc types
reportWrongPhpDocTypeInVarTag: true
reportAnyTypeWideningInVarTag: true
# Ergebnis rules configuration (most disabled for library flexibility)
ergebnis:
final:
enabled: false
noExtends:
enabled: false
noNullableReturnTypeDeclaration:
enabled: false
noConstructorParameterWithDefaultValue:
enabled: false
noParameterWithNullDefaultValue:
enabled: false
noParameterWithNullableTypeDeclaration:
enabled: false