-
Notifications
You must be signed in to change notification settings - Fork 473
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
Narrow Closure::bind $newScope param #2817
Conversation
You've opened the pull request against the latest branch 1.11.x. If your code is relevant on 1.10.x and you want it to be released sooner, please rebase your pull request and change its target to 1.10.x. |
This pull request has been marked as ready for review. |
You could use NodeScopeResolverTest to check your assumptions |
0d0e823
to
91f403b
Compare
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.
Please do not rename parameter names
91f403b
to
b02eeb5
Compare
Did you mean |
In these tests you can only assert types. If you need to assert error messages you have to go with a rule-test |
@ondrejmirtes I can added a test to |
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.
Add whatever test you think is your best idea, I'll review if it's okay or not.
b02eeb5
to
dca3393
Compare
8a4a3c6
to
ff35e71
Compare
ff35e71
to
eac2b66
Compare
This pull request has been marked as ready for review. |
Thank you! |
Same change as in JetBrains/phpstorm-stubs#1591.
Am I right the phpstorm-stubs are used for
Pure
metadata only?The default type of
newScope
arg is'static'
which is not subtype ofclass-string
, does phpstan imply that from the real reflection?