-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathphpstan.neon
More file actions
38 lines (37 loc) · 1.13 KB
/
Copy pathphpstan.neon
File metadata and controls
38 lines (37 loc) · 1.13 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
includes:
- vendor/phpstan/phpstan-strict-rules/rules.neon
- vendor/phpstan/phpstan-phpunit/extension.neon
parameters:
level: max
paths:
- src
- tests
excludePaths:
analyse:
- vendor/**
strictRules:
allRules: true
disallowedLooseComparison: true
booleansInConditions: true
uselessCast: true
requireParentConstructorCall: false
disallowedBacktick: true
disallowedEmpty: true
disallowedImplicitArrayCreation: true
disallowedShortTernary: true
overwriteVariablesWithLoop: true
closureUsesThis: true
matchingInheritedMethodNames: true
numericOperandsInArithmeticOperators: true
strictFunctionCalls: true
dynamicCallOnStaticMethod: true
switchConditionsMatchingType: true
noVariableVariables: true
checkMissingCallableSignature: true
checkUninitializedProperties: true
checkDynamicProperties: true
reportAlwaysTrueInLastCondition: true
ignoreErrors:
-
message: '#Dynamic call to static method#'
path: tests/*