Skip to content

Commit 47caa6f

Browse files
committed
Fix
1 parent d06d017 commit 47caa6f

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

rules/TypeDeclarationDocblocks/NodeFinder/ReturnNodeFinder.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,10 @@ public function findOnlyReturnWithExpr(ClassMethod|Function_ $functionLike): ?Re
2525
return null;
2626
}
2727

28+
if (count($returnsScoped) !== 1) {
29+
return null;
30+
}
31+
2832
return $returnsScoped[0];
2933
}
3034
}

0 commit comments

Comments
 (0)