@@ -14,47 +14,111 @@ parameters:
14
14
reportMaybesInPropertyPhpDocTypes : true
15
15
featureToggles :
16
16
illegalConstructorMethodCall : %featureToggles.bleedingEdge%
17
+ strictRules :
18
+ enabled : true
19
+ booleansInConditions : %strictRules.enabled%
20
+ cast : %strictRules.enabled%
21
+ classes : %strictRules.enabled%
22
+ disallowedConstructs : %strictRules.enabled%
23
+ foreachLoop : %strictRules.enabled%
24
+ forLoop : %strictRules.enabled%
25
+ functions : %strictRules.enabled%
26
+ methods : %strictRules.enabled%
27
+ operators : %strictRules.enabled%
28
+ strictCalls : %strictRules.enabled%
29
+ switchConditions : %strictRules.enabled%
30
+ variableVariables : %strictRules.enabled%
17
31
18
- rules :
19
- - PHPStan\Rules\BooleansInConditions\BooleanInBooleanAndRule
20
- - PHPStan\Rules\BooleansInConditions\BooleanInBooleanNotRule
21
- - PHPStan\Rules\BooleansInConditions\BooleanInBooleanOrRule
22
- - PHPStan\Rules\BooleansInConditions\BooleanInElseIfConditionRule
23
- - PHPStan\Rules\BooleansInConditions\BooleanInIfConditionRule
24
- - PHPStan\Rules\BooleansInConditions\BooleanInTernaryOperatorRule
25
- - PHPStan\Rules\Classes\RequireParentConstructCallRule
26
- - PHPStan\Rules\DisallowedConstructs\DisallowedBacktickRule
27
- - PHPStan\Rules\DisallowedConstructs\DisallowedEmptyRule
28
- - PHPStan\Rules\DisallowedConstructs\DisallowedImplicitArrayCreationRule
29
- - PHPStan\Rules\DisallowedConstructs\DisallowedShortTernaryRule
30
- - PHPStan\Rules\ForeachLoop\OverwriteVariablesWithForeachRule
31
- - PHPStan\Rules\ForLoop\OverwriteVariablesWithForLoopInitRule
32
- - PHPStan\Rules\Functions\ClosureUsesThisRule
33
- - PHPStan\Rules\Methods\WrongCaseOfInheritedMethodRule
34
- - PHPStan\Rules\Operators\OperandInArithmeticPostDecrementRule
35
- - PHPStan\Rules\Operators\OperandInArithmeticPostIncrementRule
36
- - PHPStan\Rules\Operators\OperandInArithmeticPreDecrementRule
37
- - PHPStan\Rules\Operators\OperandInArithmeticPreIncrementRule
38
- - PHPStan\Rules\Operators\OperandsInArithmeticAdditionRule
39
- - PHPStan\Rules\Operators\OperandsInArithmeticDivisionRule
40
- - PHPStan\Rules\Operators\OperandsInArithmeticExponentiationRule
41
- - PHPStan\Rules\Operators\OperandsInArithmeticModuloRule
42
- - PHPStan\Rules\Operators\OperandsInArithmeticMultiplicationRule
43
- - PHPStan\Rules\Operators\OperandsInArithmeticSubtractionRule
44
- - PHPStan\Rules\StrictCalls\DynamicCallOnStaticMethodsRule
45
- - PHPStan\Rules\StrictCalls\DynamicCallOnStaticMethodsCallableRule
46
- - PHPStan\Rules\StrictCalls\StrictFunctionCallsRule
47
- - PHPStan\Rules\SwitchConditions\MatchingTypeInSwitchCaseConditionRule
48
- - PHPStan\Rules\VariableVariables\VariableMethodCallRule
49
- - PHPStan\Rules\VariableVariables\VariableMethodCallableRule
50
- - PHPStan\Rules\VariableVariables\VariableStaticMethodCallRule
51
- - PHPStan\Rules\VariableVariables\VariableStaticMethodCallableRule
52
- - PHPStan\Rules\VariableVariables\VariableStaticPropertyFetchRule
53
- - PHPStan\Rules\VariableVariables\VariableVariablesRule
32
+ parametersSchema :
33
+ strictRules : structure ([
34
+ enabled : bool (),
35
+ booleansInConditions : bool ()
36
+ cast : bool ()
37
+ classes : bool ()
38
+ disallowedConstructs : bool ()
39
+ foreachLoop : bool ()
40
+ forLoop : bool ()
41
+ functions : bool ()
42
+ methods : bool ()
43
+ operators : bool ()
44
+ strictCalls : bool ()
45
+ switchConditions : bool ()
46
+ variableVariables : bool ()
47
+ ])
54
48
55
49
conditionalTags :
56
50
PHPStan\Rules\DisallowedConstructs\DisallowedLooseComparisonRule :
57
51
phpstan.rules.rule : %featureToggles.bleedingEdge%
52
+ PHPStan\Rules\BooleansInConditions\BooleanInBooleanAndRule :
53
+ phpstan.rules.rule : %strictRules.booleansInConditions%
54
+ PHPStan\Rules\BooleansInConditions\BooleanInBooleanNotRule :
55
+ phpstan.rules.rule : %strictRules.booleansInConditions%
56
+ PHPStan\Rules\BooleansInConditions\BooleanInBooleanOrRule :
57
+ phpstan.rules.rule : %strictRules.booleansInConditions%
58
+ PHPStan\Rules\BooleansInConditions\BooleanInElseIfConditionRule :
59
+ phpstan.rules.rule : %strictRules.booleansInConditions%
60
+ PHPStan\Rules\BooleansInConditions\BooleanInIfConditionRule :
61
+ phpstan.rules.rule : %strictRules.booleansInConditions%
62
+ PHPStan\Rules\BooleansInConditions\BooleanInTernaryOperatorRule :
63
+ phpstan.rules.rule : %strictRules.booleansInConditions%
64
+ PHPStan\Rules\Classes\RequireParentConstructCallRule :
65
+ phpstan.rules.rule : %strictRules.classes%
66
+ PHPStan\Rules\DisallowedConstructs\DisallowedBacktickRule :
67
+ phpstan.rules.rule : %strictRules.disallowedConstructs%
68
+ PHPStan\Rules\DisallowedConstructs\DisallowedEmptyRule :
69
+ phpstan.rules.rule : %strictRules.disallowedConstructs%
70
+ PHPStan\Rules\DisallowedConstructs\DisallowedImplicitArrayCreationRule :
71
+ phpstan.rules.rule : %strictRules.disallowedConstructs%
72
+ PHPStan\Rules\DisallowedConstructs\DisallowedShortTernaryRule :
73
+ phpstan.rules.rule : %strictRules.disallowedConstructs%
74
+ PHPStan\Rules\ForeachLoop\OverwriteVariablesWithForeachRule :
75
+ phpstan.rules.rule : %strictRules.foreachLoop%
76
+ PHPStan\Rules\ForLoop\OverwriteVariablesWithForLoopInitRule :
77
+ phpstan.rules.rule : %strictRules.forLoop%
78
+ PHPStan\Rules\Functions\ClosureUsesThisRule :
79
+ phpstan.rules.rule : %strictRules.functions%
80
+ PHPStan\Rules\Methods\WrongCaseOfInheritedMethodRule :
81
+ phpstan.rules.rule : %strictRules.methods%
82
+ PHPStan\Rules\Operators\OperandInArithmeticPostDecrementRule :
83
+ phpstan.rules.rule : %strictRules.operators%
84
+ PHPStan\Rules\Operators\OperandInArithmeticPostIncrementRule :
85
+ phpstan.rules.rule : %strictRules.operators%
86
+ PHPStan\Rules\Operators\OperandInArithmeticPreDecrementRule :
87
+ phpstan.rules.rule : %strictRules.operators%
88
+ PHPStan\Rules\Operators\OperandInArithmeticPreIncrementRule :
89
+ phpstan.rules.rule : %strictRules.operators%
90
+ PHPStan\Rules\Operators\OperandsInArithmeticAdditionRule :
91
+ phpstan.rules.rule : %strictRules.operators%
92
+ PHPStan\Rules\Operators\OperandsInArithmeticDivisionRule :
93
+ phpstan.rules.rule : %strictRules.operators%
94
+ PHPStan\Rules\Operators\OperandsInArithmeticExponentiationRule :
95
+ phpstan.rules.rule : %strictRules.operators%
96
+ PHPStan\Rules\Operators\OperandsInArithmeticModuloRule :
97
+ phpstan.rules.rule : %strictRules.operators%
98
+ PHPStan\Rules\Operators\OperandsInArithmeticMultiplicationRule :
99
+ phpstan.rules.rule : %strictRules.operators%
100
+ PHPStan\Rules\Operators\OperandsInArithmeticSubtractionRule :
101
+ phpstan.rules.rule : %strictRules.operators%
102
+ PHPStan\Rules\StrictCalls\DynamicCallOnStaticMethodsRule :
103
+ phpstan.rules.rule : %strictRules.strictCalls%
104
+ PHPStan\Rules\StrictCalls\DynamicCallOnStaticMethodsCallableRule :
105
+ phpstan.rules.rule : %strictRules.strictCalls%
106
+ PHPStan\Rules\StrictCalls\StrictFunctionCallsRule :
107
+ phpstan.rules.rule : %strictRules.strictCalls%
108
+ PHPStan\Rules\SwitchConditions\MatchingTypeInSwitchCaseConditionRule :
109
+ phpstan.rules.rule : %strictRules.switchConditions%
110
+ PHPStan\Rules\VariableVariables\VariableMethodCallRule :
111
+ phpstan.rules.rule : %strictRules.variableVariables%
112
+ PHPStan\Rules\VariableVariables\VariableMethodCallableRule :
113
+ phpstan.rules.rule : %strictRules.variableVariables%
114
+ PHPStan\Rules\VariableVariables\VariableStaticMethodCallRule :
115
+ phpstan.rules.rule : %strictRules.variableVariables%
116
+ PHPStan\Rules\VariableVariables\VariableStaticMethodCallableRule :
117
+ phpstan.rules.rule : %strictRules.variableVariables%
118
+ PHPStan\Rules\VariableVariables\VariableStaticPropertyFetchRule :
119
+ phpstan.rules.rule : %strictRules.variableVariables%
120
+ PHPStan\Rules\VariableVariables\VariableVariablesRule :
121
+ phpstan.rules.rule : %strictRules.variableVariables%
58
122
59
123
services :
60
124
-
@@ -78,3 +142,108 @@ services:
78
142
79
143
-
80
144
class : PHPStan\Rules\DisallowedConstructs\DisallowedLooseComparisonRule
145
+
146
+ -
147
+ class : PHPStan\Rules\BooleansInConditions\BooleanInBooleanAndRule
148
+
149
+ -
150
+ class : PHPStan\Rules\BooleansInConditions\BooleanInBooleanNotRule
151
+
152
+ -
153
+ class : PHPStan\Rules\BooleansInConditions\BooleanInBooleanOrRule
154
+
155
+ -
156
+ class : PHPStan\Rules\BooleansInConditions\BooleanInElseIfConditionRule
157
+
158
+ -
159
+ class : PHPStan\Rules\BooleansInConditions\BooleanInIfConditionRule
160
+
161
+ -
162
+ class : PHPStan\Rules\BooleansInConditions\BooleanInTernaryOperatorRule
163
+
164
+ -
165
+ class : PHPStan\Rules\Classes\RequireParentConstructCallRule
166
+
167
+ -
168
+ class : PHPStan\Rules\DisallowedConstructs\DisallowedBacktickRule
169
+
170
+ -
171
+ class : PHPStan\Rules\DisallowedConstructs\DisallowedEmptyRule
172
+
173
+ -
174
+ class : PHPStan\Rules\DisallowedConstructs\DisallowedImplicitArrayCreationRule
175
+
176
+ -
177
+ class : PHPStan\Rules\DisallowedConstructs\DisallowedShortTernaryRule
178
+
179
+ -
180
+ class : PHPStan\Rules\ForeachLoop\OverwriteVariablesWithForeachRule
181
+
182
+ -
183
+ class : PHPStan\Rules\ForLoop\OverwriteVariablesWithForLoopInitRule
184
+
185
+ -
186
+ class : PHPStan\Rules\Functions\ClosureUsesThisRule
187
+
188
+ -
189
+ class : PHPStan\Rules\Methods\WrongCaseOfInheritedMethodRule
190
+
191
+ -
192
+ class : PHPStan\Rules\Operators\OperandInArithmeticPostDecrementRule
193
+
194
+ -
195
+ class : PHPStan\Rules\Operators\OperandInArithmeticPostIncrementRule
196
+
197
+ -
198
+ class : PHPStan\Rules\Operators\OperandInArithmeticPreDecrementRule
199
+
200
+ -
201
+ class : PHPStan\Rules\Operators\OperandInArithmeticPreIncrementRule
202
+
203
+ -
204
+ class : PHPStan\Rules\Operators\OperandsInArithmeticAdditionRule
205
+
206
+ -
207
+ class : PHPStan\Rules\Operators\OperandsInArithmeticDivisionRule
208
+
209
+ -
210
+ class : PHPStan\Rules\Operators\OperandsInArithmeticExponentiationRule
211
+
212
+ -
213
+ class : PHPStan\Rules\Operators\OperandsInArithmeticModuloRule
214
+
215
+ -
216
+ class : PHPStan\Rules\Operators\OperandsInArithmeticMultiplicationRule
217
+
218
+ -
219
+ class : PHPStan\Rules\Operators\OperandsInArithmeticSubtractionRule
220
+
221
+ -
222
+ class : PHPStan\Rules\StrictCalls\DynamicCallOnStaticMethodsRule
223
+
224
+ -
225
+ class : PHPStan\Rules\StrictCalls\DynamicCallOnStaticMethodsCallableRule
226
+
227
+ -
228
+ class : PHPStan\Rules\StrictCalls\StrictFunctionCallsRule
229
+
230
+ -
231
+ class : PHPStan\Rules\SwitchConditions\MatchingTypeInSwitchCaseConditionRule
232
+
233
+ -
234
+ class : PHPStan\Rules\VariableVariables\VariableMethodCallRule
235
+
236
+ -
237
+ class : PHPStan\Rules\VariableVariables\VariableMethodCallableRule
238
+
239
+ -
240
+ class : PHPStan\Rules\VariableVariables\VariableStaticMethodCallRule
241
+
242
+ -
243
+ class : PHPStan\Rules\VariableVariables\VariableStaticMethodCallableRule
244
+
245
+ -
246
+ class : PHPStan\Rules\VariableVariables\VariableStaticPropertyFetchRule
247
+
248
+ -
249
+ class : PHPStan\Rules\VariableVariables\VariableVariablesRule
0 commit comments