-
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathphpstan.neon
36 lines (28 loc) · 869 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
31
32
33
34
35
36
includes:
- ./vendor/nunomaduro/larastan/extension.neon
- ./vendor/phpstan/phpstan-strict-rules/rules.neon
parameters:
paths:
- src
# The level 8 is the highest level
level: max
checkMissingIterableValueType: false
reportUnmatchedIgnoredErrors: false
ignoreErrors:
- '#Internal.*#'
- '#Cannot access offset .* on array\{scheme.*#'
strictRules:
disallowedLooseComparison: true
booleansInConditions: true
uselessCast: true
requireParentConstructorCall: true
disallowedConstructs: true
overwriteVariablesWithLoop: true
closureUsesThis: true
matchingInheritedMethodNames: true
numericOperandsInArithmeticOperators: true
strictCalls: false
switchConditionsMatchingType: true
noVariableVariables: false
stubFiles:
- tests/Static/phpstan/stubs/Model.php