Skip to content

Commit 3891e2d

Browse files
committed
comment
1 parent 642d85a commit 3891e2d

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

rules/DeadCode/Rector/Ternary/RemoveUselessTernaryRector.php

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,8 +66,11 @@ public function refactor(Node $node): ?Node
6666
return null;
6767
}
6868

69-
// if condition is negated
70-
// switch negated ternary condition via SwitchNegatedTernaryRector for that
69+
/**
70+
* if condition is negated, skip
71+
* switch negated ternary condition early via SwitchNegatedTernaryRector for that
72+
* if needed
73+
*/
7174
if ($node->cond instanceof BooleanNot) {
7275
return null;
7376
}

0 commit comments

Comments
 (0)