-
Notifications
You must be signed in to change notification settings - Fork 547
Remember function return type extensions #4644
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
|
interessting.. I don't see this errors locally.. will have another look |
|
This pull request has been marked as ready for review. |
| $supportedFunctions[] = $dynamicFunctionReturnTypeExtension; | ||
| } | ||
|
|
||
| return $this->dynamicReturnTypeExtensionsByFunction[$functionName] ??= $supportedFunctions; |
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.
I'd say this line doesn't have to use ??= because of isset above. It should just be =.
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.
good catch, fixed
|
btw: including this PR and the most recent 10 commits we got considerable faster with the recent changes: before now |
|
Yeah, great, thank you! A similar thing could be done for methods+static methods. |
before this PR:
after this PR: