@@ -16,6 +16,7 @@ parameters:
16
16
illegalConstructorMethodCall : %featureToggles.bleedingEdge%
17
17
strictRules :
18
18
allRules : true
19
+ disallowedLooseComparsion : [%strictRules.allRules% , %featureToggles.bleedingEdge% ]
19
20
booleansInConditions : %strictRules.allRules%
20
21
uselessCast : %strictRules.allRules%
21
22
requireParentConstructorCall : %strictRules.allRules%
@@ -30,23 +31,24 @@ parameters:
30
31
31
32
parametersSchema :
32
33
strictRules : structure ([
33
- allRules : bool (),
34
- booleansInConditions : bool ()
35
- uselessCast : bool ()
36
- requireParentConstructorCall : bool ()
37
- disallowedConstructs : bool ()
38
- overwriteVariablesWithLoop : bool ()
39
- closureUsesThis : bool ()
40
- matchingInheritedMethodNames : bool ()
41
- numericOperandsInArithmeticOperators : bool ()
42
- strictCalls : bool ()
43
- switchConditionsMatchingType : bool ()
44
- noVariableVariables : bool ()
34
+ allRules : anyOf (bool (), arrayOf (bool ())),
35
+ disallowedLooseComparsion : anyOf (bool (), arrayOf (bool ())),
36
+ booleansInConditions : anyOf (bool (), arrayOf (bool ()))
37
+ uselessCast : anyOf (bool (), arrayOf (bool ()))
38
+ requireParentConstructorCall : anyOf (bool (), arrayOf (bool ()))
39
+ disallowedConstructs : anyOf (bool (), arrayOf (bool ()))
40
+ overwriteVariablesWithLoop : anyOf (bool (), arrayOf (bool ()))
41
+ closureUsesThis : anyOf (bool (), arrayOf (bool ()))
42
+ matchingInheritedMethodNames : anyOf (bool (), arrayOf (bool ()))
43
+ numericOperandsInArithmeticOperators : anyOf (bool (), arrayOf (bool ()))
44
+ strictCalls : anyOf (bool (), arrayOf (bool ()))
45
+ switchConditionsMatchingType : anyOf (bool (), arrayOf (bool ()))
46
+ noVariableVariables : anyOf (bool (), arrayOf (bool ()))
45
47
])
46
48
47
49
conditionalTags :
48
50
PHPStan\Rules\DisallowedConstructs\DisallowedLooseComparisonRule :
49
- phpstan.rules.rule : %featureToggles.bleedingEdge %
51
+ phpstan.rules.rule : %strictRules.disallowedLooseComparsion %
50
52
PHPStan\Rules\BooleansInConditions\BooleanInBooleanAndRule :
51
53
phpstan.rules.rule : %strictRules.booleansInConditions%
52
54
PHPStan\Rules\BooleansInConditions\BooleanInBooleanNotRule :
0 commit comments