We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3cf1f51 commit 6ea57b8Copy full SHA for 6ea57b8
rules/EarlyReturn/Rector/If_/RemoveAlwaysElseRector.php
@@ -170,7 +170,9 @@ private function doesNotLastStatementBreakFlow(If_ | ElseIf_ | Else_ $node): boo
170
$lastStmt = end($node->stmts);
171
172
if ($lastStmt instanceof If_ && $lastStmt->else instanceof Else_) {
173
- if ($this->doesNotLastStatementBreakFlow($lastStmt) || $this->doesNotLastStatementBreakFlow($lastStmt->else)) {
+ if ($this->doesNotLastStatementBreakFlow($lastStmt) || $this->doesNotLastStatementBreakFlow(
174
+ $lastStmt->else
175
+ )) {
176
return true;
177
}
178
0 commit comments