- Notifications
You must be signed in to change notification settings - Fork 545
Handle dynamic return types for bc math functions #187
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
b1a9f50 to 8fb2229 Compare | Well this got way more complicated than what I initially thought.. Might need some more tests too. Noticed that PHP doesnt always return the value as described in doc either. |
554c3a5 to 070cd25 Compare | It's never easy :) Keep me posted, thanks. You can run the build locally to get faster feedback too - I'd run |
0742536 to 21281bc Compare | I think im done with this now @ondrejmirtes. I have verified my assertions here https://3v4l.org/RWD9r. Some testcases fails, but they seem to be unrelated. |
21281bc to cb38ee3 Compare | It'd be nice if someone brought this PR over the finish line and verified that it also handles phpstan/phpstan#3551. |
3910f8c to f25b6b2 Compare | This PR is ready for another review @ondrejmirtes. 1) PHPStan tests fail. I thought PHPStan would understand the code written? 2) Tests fails on 7.4 and 8.0. Seems to be unrelated. 3) Code is a mess 😞 |
f25b6b2 to aa9eb8c Compare | Rebased on master and refactored the code so the tests passes (mentioned why in last comment). |
| Please rebase one more time and then I'll merge it, thank you. |
d7443ca to 8c07cf2 Compare Some bcmath functions will always return a specific type based on the arguments.
8c07cf2 to 7f3f610 Compare | ✔️ |
| Thank you! |
Not sure if this should be split into multiple extensions, kept it at one because they all had very similar logic.