-
Notifications
You must be signed in to change notification settings - Fork 523
Fix late static binding calls for first class callable #3435
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
You've opened the pull request against the latest branch 2.0.x. PHPStan 2.0 is not going to be released for months. If your code is relevant on 1.12.x and you want it to be released sooner, please rebase your pull request and change its target to 1.12.x. |
This pull request has been marked as ready for review. |
|
||
assertType('StaticLateBinding\A', A::retStatic(...)()); | ||
assertType('StaticLateBinding\B', B::retStatic(...)()); | ||
assertType('Closure', self::retStatic()(...)); // should be static(StaticLateBinding\B) |
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.
This shows this doesn't really work well.
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.
fixed, typo on my side in the test
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.
@ondrejmirtes can this PR be merged?
This pull request has been marked as ready for review. |
This pull request has been marked as ready for review. |
Thank you. |
followup to #3361
dedup + fix first class callable