-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathphpstan.neon
More file actions
69 lines (62 loc) · 2.02 KB
/
Copy pathphpstan.neon
File metadata and controls
69 lines (62 loc) · 2.02 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
64
65
66
67
68
69
includes:
- vendor/phpstan/phpstan-strict-rules/rules.neon
- phpstan-rules.neon
parameters:
phpVersion: 80300
level: 10
paths:
- src
universalObjectCratesClasses:
- Framework\IO\Errors
# Extra Rules
checkUninitializedProperties: true
checkBenevolentUnionTypes: true
reportPossiblyNonexistentGeneralArrayOffset: true
reportPossiblyNonexistentConstantArrayOffset: true
checkTooWideReturnTypesInProtectedAndPublicMethods: true
reportAnyTypeWideningInVarTag: true
checkMissingOverrideMethodAttribute: true
checkMissingCallableSignature: true
# Strict Rules
strictRules:
noVariableVariables: false
booleansInConditions: true
booleansInLoopConditions: true
numericOperandsInArithmeticOperators: true
strictFunctionCalls: true
overwriteVariablesWithLoop: true
switchConditionsMatchingType: true
dynamicCallOnStaticMethod: true
disallowedEmpty: true
disallowedShortTernary: true
matchingInheritedMethodNames: true
requireParentConstructorCall: true
disallowedBacktick: true
closureUsesThis: true
disallowedLooseComparison: true
uselessCast: true
disallowedImplicitArrayCreation: true
strictArrayFilter: true
illegalConstructorMethodCall: true
# Framework Rules
framework:
disallowClassCompare: true
disallowDebugPrint: true
disallowEmptyArray: true
disallowEnumNameValue: true
disallowIntFloatWidening: true
disallowNativeDate: true
enumSwitchExhaustive: true
methodReturnNotNeeded: true
preferListType: true
preferMatchOverSwitch: true
privateMethodReturnUnused: true
requireNamedBoolArg: true
requireOptionalComment: true
requireReturnType: true
actionLogLanguages: ['es','en']
# Ignore Errors
ignoreErrors:
-
identifier: offsetAccess.notFound
path: src/Utils/AES.php