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 44f79d6 commit a797bce
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ private function hasThrowInAssignExpr(Assign $assign): bool
/**
* @return Node[]|null
*/
private function refactorReturn(Return_ $return): array|null
private function refactorReturn(Return_ $return): ?array
{
$throw = $this->betterNodeFinder->findFirstInstanceOf($return, Throw_::class);
if (! $throw instanceof Throw_) {
Expand Down

0 comments on commit a797bce

Please sign in to comment.