Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
staabm committed Jul 13, 2023
1 parent 6d61b59 commit 82107dd
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ private function findCurrentScopeReturn(ClassMethod|Function_ $node): ?Return_
{
$return = null;

$this->traverseNodesWithCallable($node->stmts, function (Node $node) use (&$return): ?int {
$this->traverseNodesWithCallable($node->getStmts(), function (Node $node) use (&$return): ?int {
if (! $node instanceof Return_) {
return null;
}
Expand Down

0 comments on commit 82107dd

Please sign in to comment.