Skip to content

Commit

Permalink
Fix phpstan
Browse files Browse the repository at this point in the history
  • Loading branch information
samsonasik committed Jun 13, 2024
1 parent 73f577f commit 44f79d6
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -212,12 +212,12 @@ private function refactorReturn(Return_ $return): array|null
}

if ($return->expr instanceof Ternary) {
$ternary = $this->refactorTernary($return->expr, null);
if (! $ternary instanceof If_) {
$if = $this->refactorTernary($return->expr, null);
if (! $if instanceof If_) {
return null;
}

return [$ternary, new Return_($return->expr->cond)];
return [$if, new Return_($return->expr->cond)];
}

return null;
Expand Down

0 comments on commit 44f79d6

Please sign in to comment.