-
-
Notifications
You must be signed in to change notification settings - Fork 336
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
Faster SilentVoidResolver #4923
Conversation
@@ -44,15 +46,14 @@ public function hasExclusiveVoid(ClassMethod | Closure | Function_ $functionLike | |||
return false; | |||
} | |||
|
|||
/** @var Return_[] $returns */ | |||
$returns = $this->betterNodeFinder->findInstancesOfInFunctionLikeScoped($functionLike, Return_::class); |
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.
only search for the first return with a expression, instead of searching all returns
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.
@staabm it seems cause bug:
Ref https://getrector.com/demo/1f06cf14-382e-4161-ba39-d2061164ebab
I created PR:
for it.
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.
Let's give it a try, thank you @staabm |
No description provided.