Skip to content

Commit

Permalink
Fix phpstan
Browse files Browse the repository at this point in the history
  • Loading branch information
samsonasik committed Apr 14, 2023
1 parent e23e2e3 commit 5b306c2
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -168,6 +168,7 @@ private function refactorStmtsAware(StmtsAwareInterface $stmtsAware): ?StmtsAwar
return null;
}

/** @var int $lastKey */
$lastKey = array_key_last($stmtsAware->stmts);
if (! isset($stmtsAware->stmts[$lastKey], $stmtsAware->stmts[$lastKey - 1])) {
return null;
Expand Down

0 comments on commit 5b306c2

Please sign in to comment.