-
Notifications
You must be signed in to change notification settings - Fork 185
Fix missing '()' for function definition #340
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
Codecov Report
@@ Coverage Diff @@
## master #340 +/- ##
=========================================
Coverage 84.18% 84.18%
Complexity 812 812
=========================================
Files 59 59
Lines 1720 1720
=========================================
Hits 1448 1448
Misses 272 272
Continue to review full report at Codecov.
|
src/DefinitionResolver.php
Outdated
@@ -446,7 +446,7 @@ public function resolveExpressionNodeToType(Node\Expr $expr): Type | |||
// Cannot get type for dynamic function call | |||
return new Types\Mixed; | |||
} | |||
$fqn = (string)($expr->getAttribute('namespacedName') ?? $expr->name); | |||
$fqn = (string)($expr->getAttribute('namespacedName') ?? $expr->name . '()'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pretty sure namespacedName
would need to get the ()
too, so you have to move the parenthesis
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, you're right. I have made wrong assumption as to what namespacedName
actually contains.
Thanks for getting to the bottom of this! |
Should fix:
#311
#325
#326