Skip to content

Commit

Permalink
Check ovewritten variables by a for loop
Browse files Browse the repository at this point in the history
  • Loading branch information
ondrejmirtes committed Sep 12, 2021
1 parent 94c6ac1 commit 5985682
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions rules.neon
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ rules:
- PHPStan\Rules\DisallowedConstructs\DisallowedImplicitArrayCreationRule
- PHPStan\Rules\DisallowedConstructs\DisallowedShortTernaryRule
- PHPStan\Rules\ForeachLoop\OverwriteVariablesWithForeachRule
- PHPStan\Rules\ForLoop\OverwriteVariablesWithForLoopInitRule
- PHPStan\Rules\Methods\WrongCaseOfInheritedMethodRule
- PHPStan\Rules\Operators\OperandInArithmeticPostDecrementRule
- PHPStan\Rules\Operators\OperandInArithmeticPostIncrementRule
Expand All @@ -40,10 +41,6 @@ rules:
- PHPStan\Rules\VariableVariables\VariableStaticPropertyFetchRule
- PHPStan\Rules\VariableVariables\VariableVariablesRule

conditionalTags:
PHPStan\Rules\ForLoop\OverwriteVariablesWithForLoopInitRule:
phpstan.rules.rule: %featureToggles.bleedingEdge%

services:
-
class: PHPStan\Rules\BooleansInConditions\BooleanInBooleanAndRule
Expand Down Expand Up @@ -77,6 +74,3 @@ services:
universalObjectCratesClasses: %universalObjectCratesClasses%
tags:
- phpstan.rules.rule

-
class: PHPStan\Rules\ForLoop\OverwriteVariablesWithForLoopInitRule

0 comments on commit 5985682

Please sign in to comment.