@@ -16,6 +16,7 @@ parameters:
1616 illegalConstructorMethodCall : %featureToggles.bleedingEdge%
1717 strictRules :
1818 allRules : true
19+ disallowedLooseComparsion : [%strictRules.allRules% , %featureToggles.bleedingEdge% ]
1920 booleansInConditions : %strictRules.allRules%
2021 uselessCast : %strictRules.allRules%
2122 requireParentConstructorCall : %strictRules.allRules%
@@ -30,23 +31,24 @@ parameters:
3031
3132parametersSchema :
3233 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 ()))
4547 ])
4648
4749conditionalTags :
4850 PHPStan\Rules\DisallowedConstructs\DisallowedLooseComparisonRule :
49- phpstan.rules.rule : %featureToggles.bleedingEdge %
51+ phpstan.rules.rule : %strictRules.disallowedLooseComparsion %
5052 PHPStan\Rules\BooleansInConditions\BooleanInBooleanAndRule :
5153 phpstan.rules.rule : %strictRules.booleansInConditions%
5254 PHPStan\Rules\BooleansInConditions\BooleanInBooleanNotRule :
0 commit comments