Skip to content

Commit 5985682

Browse files
committed
Check ovewritten variables by a for loop
1 parent 94c6ac1 commit 5985682

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

rules.neon

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ rules:
2121
- PHPStan\Rules\DisallowedConstructs\DisallowedImplicitArrayCreationRule
2222
- PHPStan\Rules\DisallowedConstructs\DisallowedShortTernaryRule
2323
- PHPStan\Rules\ForeachLoop\OverwriteVariablesWithForeachRule
24+
- PHPStan\Rules\ForLoop\OverwriteVariablesWithForLoopInitRule
2425
- PHPStan\Rules\Methods\WrongCaseOfInheritedMethodRule
2526
- PHPStan\Rules\Operators\OperandInArithmeticPostDecrementRule
2627
- PHPStan\Rules\Operators\OperandInArithmeticPostIncrementRule
@@ -40,10 +41,6 @@ rules:
4041
- PHPStan\Rules\VariableVariables\VariableStaticPropertyFetchRule
4142
- PHPStan\Rules\VariableVariables\VariableVariablesRule
4243

43-
conditionalTags:
44-
PHPStan\Rules\ForLoop\OverwriteVariablesWithForLoopInitRule:
45-
phpstan.rules.rule: %featureToggles.bleedingEdge%
46-
4744
services:
4845
-
4946
class: PHPStan\Rules\BooleansInConditions\BooleanInBooleanAndRule
@@ -77,6 +74,3 @@ services:
7774
universalObjectCratesClasses: %universalObjectCratesClasses%
7875
tags:
7976
- phpstan.rules.rule
80-
81-
-
82-
class: PHPStan\Rules\ForLoop\OverwriteVariablesWithForLoopInitRule

0 commit comments

Comments
 (0)