Skip to content

Commit

Permalink
Fix first class callable to use combineAcceptors() to avoid assert Ar…
Browse files Browse the repository at this point in the history
…g instance error (#6330)
  • Loading branch information
samsonasik authored Sep 26, 2024
1 parent f619d86 commit 1d80ecf
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,10 @@ public static function select(
return ParametersAcceptorSelector::combineAcceptors($variants);
}

if ($node->isFirstClassCallable()) {
return ParametersAcceptorSelector::combineAcceptors($variants);
}

return ParametersAcceptorSelector::selectFromArgs($scope, $node->getArgs(), $variants);
}
}

0 comments on commit 1d80ecf

Please sign in to comment.