-
-
Notifications
You must be signed in to change notification settings - Fork 163
Fix generator #260
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
Fix generator #260
Conversation
c359810
to
bf9c959
Compare
bf9c959
to
71e1673
Compare
Codecov Report
@@ Coverage Diff @@
## master #260 +/- ##
============================================
- Coverage 46.89% 46.88% -0.01%
- Complexity 291 292 +1
============================================
Files 16 16
Lines 740 738 -2
============================================
- Hits 347 346 -1
+ Misses 393 392 -1
Continue to review full report at Codecov.
|
Thanks a lot! The only issue with this pr is that a lot of functions have been remove from safe, so if I merge this, I will have to make a new major version. |
@asbiin Just pinging you to make sure you are ok with what I said. |
Thanks to reach out @Kharhamel ! Anyway, what do you think about the fixes on the generator itself, are they relevant? |
Not sure I get the purpose of the parameter $position you introduced but if no tests were broken I am fine with it. |
I'll explain: the |
@soullivaneuh It's not mine to decide, but I agree with it ;) @Kharhamel maybe? |
This fix generate the functions with the last data.
Recent changes in https://github.com/php/doc-en have been made, especially on the variadic arguments.
You will find multiple changes here:
position
parameter toPhpStanFunction::getParameter
so we can find the right parameter using the position, instead of the name, because sometimes parameter name differs between phpstan and php/doc-en.