@@ -15,6 +15,7 @@ parameters:
15
15
allRules : true
16
16
disallowedLooseComparison : %strictRules.allRules%
17
17
booleansInConditions : %strictRules.allRules%
18
+ booleansInLoopConditions : [%strictRules.allRules% , %featureToggles.bleedingEdge% ]
18
19
uselessCast : %strictRules.allRules%
19
20
requireParentConstructorCall : %strictRules.allRules%
20
21
disallowedBacktick : %strictRules.allRules%
@@ -37,6 +38,7 @@ parametersSchema:
37
38
allRules : anyOf (bool (), arrayOf (bool ())),
38
39
disallowedLooseComparison : anyOf (bool (), arrayOf (bool ())),
39
40
booleansInConditions : anyOf (bool (), arrayOf (bool ()))
41
+ booleansInLoopConditions : anyOf (bool (), arrayOf (bool ()))
40
42
uselessCast : anyOf (bool (), arrayOf (bool ()))
41
43
requireParentConstructorCall : anyOf (bool (), arrayOf (bool ()))
42
44
disallowedBacktick : anyOf (bool (), arrayOf (bool ()))
@@ -65,15 +67,15 @@ conditionalTags:
65
67
PHPStan\Rules\BooleansInConditions\BooleanInBooleanOrRule :
66
68
phpstan.rules.rule : %strictRules.booleansInConditions%
67
69
PHPStan\Rules\BooleansInConditions\BooleanInDoWhileConditionRule :
68
- phpstan.rules.rule : %strictRules.booleansInConditions %
70
+ phpstan.rules.rule : %strictRules.booleansInLoopConditions %
69
71
PHPStan\Rules\BooleansInConditions\BooleanInElseIfConditionRule :
70
72
phpstan.rules.rule : %strictRules.booleansInConditions%
71
73
PHPStan\Rules\BooleansInConditions\BooleanInIfConditionRule :
72
74
phpstan.rules.rule : %strictRules.booleansInConditions%
73
75
PHPStan\Rules\BooleansInConditions\BooleanInTernaryOperatorRule :
74
76
phpstan.rules.rule : %strictRules.booleansInConditions%
75
77
PHPStan\Rules\BooleansInConditions\BooleanInWhileConditionRule :
76
- phpstan.rules.rule : %strictRules.booleansInConditions %
78
+ phpstan.rules.rule : %strictRules.booleansInLoopConditions %
77
79
PHPStan\Rules\Cast\UselessCastRule :
78
80
phpstan.rules.rule : %strictRules.uselessCast%
79
81
PHPStan\Rules\Classes\RequireParentConstructCallRule :
0 commit comments