Skip to content

Commit d7594b7

Browse files
committed
Add early return rector rulesets
1 parent e94cef8 commit d7594b7

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

rector.php

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,12 @@
3434
RemoveAlwaysTrueIfConditionRector2::class,
3535
]
3636
)
37-
->withSets( [ SetList::DEAD_CODE ] )
37+
->withSets(
38+
[
39+
SetList::DEAD_CODE,
40+
SetList::EARLY_RETURN,
41+
]
42+
)
3843
->withSkip(
3944
[
4045
// Allow explicit loops to consume iterators for side-effects

0 commit comments

Comments
 (0)