Skip to content

Commit 9ee8886

Browse files
committed
simplify
1 parent 6af1bb8 commit 9ee8886

1 file changed

Lines changed: 4 additions & 5 deletions

File tree

src/Analyser/ExprHandler/FuncCallHandler.php

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -869,11 +869,10 @@ public function resolveType(MutatingScope $scope, Expr $expr): Type
869869

870870
private function resolveCallUserFuncCalleeReflection(FuncCall $innerFuncCall, MutatingScope $scope): FunctionReflection|MethodReflection|null
871871
{
872-
if ($innerFuncCall->name instanceof Name && $this->reflectionProvider->hasFunction($innerFuncCall->name, $scope)) {
873-
return $this->reflectionProvider->getFunction($innerFuncCall->name, $scope);
874-
}
875-
876-
if (!$innerFuncCall->name instanceof Expr) {
872+
if ($innerFuncCall->name instanceof Name) {
873+
if ($this->reflectionProvider->hasFunction($innerFuncCall->name, $scope)) {
874+
return $this->reflectionProvider->getFunction($innerFuncCall->name, $scope);
875+
}
877876
return null;
878877
}
879878

0 commit comments

Comments
 (0)