apply parameter closure type extension in FunctionCallParametersCheck#3347
apply parameter closure type extension in FunctionCallParametersCheck#3347schlndh wants to merge 1 commit intophpstan:1.12.xfrom
Conversation
|
I thought about this. I thought I wanted a different solution using virtual nodes but it'd need a lot of refactoring. And maybe it'd still be very hard. For similar reasons I already added $scope->pushInFunctionCall() in the same Check class. So feel free to pursue the same direction you started 😊 |
ee278fc to
3d593f5
Compare
74e9ac6 to
1665c48
Compare
|
This pull request has been marked as ready for review. |
7fda20c to
f63df3b
Compare
f63df3b to
b308008
Compare
|
I've looked at this and here are my thoughts: I don't like that Since the goal is to basically change So the rules that call |
|
Alright, I see this is just an alternative to #3282. I will merge that instead. Thank you. |
Fixes https://phpstan.org/r/8ff9bc8f-4162-4ccf-bf5c-8b3d2061e68d
Partially fixes: phpstan/phpstan#10396
Related to #3282 (comment)