Skip to content

Commit 1f818d4

Browse files
Bleeding edge
1 parent c9218d4 commit 1f818d4

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

rules.neon

+4-2
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ parameters:
1515
allRules: true
1616
disallowedLooseComparison: %strictRules.allRules%
1717
booleansInConditions: %strictRules.allRules%
18+
booleansInLoopConditions: [%strictRules.allRules%, %featureToggles.bleedingEdge%]
1819
uselessCast: %strictRules.allRules%
1920
requireParentConstructorCall: %strictRules.allRules%
2021
disallowedBacktick: %strictRules.allRules%
@@ -37,6 +38,7 @@ parametersSchema:
3738
allRules: anyOf(bool(), arrayOf(bool())),
3839
disallowedLooseComparison: anyOf(bool(), arrayOf(bool())),
3940
booleansInConditions: anyOf(bool(), arrayOf(bool()))
41+
booleansInLoopConditions: anyOf(bool(), arrayOf(bool()))
4042
uselessCast: anyOf(bool(), arrayOf(bool()))
4143
requireParentConstructorCall: anyOf(bool(), arrayOf(bool()))
4244
disallowedBacktick: anyOf(bool(), arrayOf(bool()))
@@ -65,15 +67,15 @@ conditionalTags:
6567
PHPStan\Rules\BooleansInConditions\BooleanInBooleanOrRule:
6668
phpstan.rules.rule: %strictRules.booleansInConditions%
6769
PHPStan\Rules\BooleansInConditions\BooleanInDoWhileConditionRule:
68-
phpstan.rules.rule: %strictRules.booleansInConditions%
70+
phpstan.rules.rule: %strictRules.booleansInLoopConditions%
6971
PHPStan\Rules\BooleansInConditions\BooleanInElseIfConditionRule:
7072
phpstan.rules.rule: %strictRules.booleansInConditions%
7173
PHPStan\Rules\BooleansInConditions\BooleanInIfConditionRule:
7274
phpstan.rules.rule: %strictRules.booleansInConditions%
7375
PHPStan\Rules\BooleansInConditions\BooleanInTernaryOperatorRule:
7476
phpstan.rules.rule: %strictRules.booleansInConditions%
7577
PHPStan\Rules\BooleansInConditions\BooleanInWhileConditionRule:
76-
phpstan.rules.rule: %strictRules.booleansInConditions%
78+
phpstan.rules.rule: %strictRules.booleansInLoopConditions%
7779
PHPStan\Rules\Cast\UselessCastRule:
7880
phpstan.rules.rule: %strictRules.uselessCast%
7981
PHPStan\Rules\Classes\RequireParentConstructCallRule:

0 commit comments

Comments
 (0)