-
Notifications
You must be signed in to change notification settings - Fork 439
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
introduce Teller class #630
Conversation
After making several changes to soothe the CI checks, all remaining failures appear to be problem with the build system, not with the PR. |
Is this planned to be merged? |
We should rebase this towards current master. |
@frederikbosch looks like it’s merged |
also, PhpCalculator is gone, so use default calculator
@frederikbosch @lukeholder I have updated to master. However, a problem is revealed in testing. Previously, I used the PhpCalculator for the Teller tests, and the How to proceed? |
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.
First review. I think there be a second one needed, because of the time I have myself to review a PR of this size, but I feel this is close to the finish line already.
Great work @pmjones, and thanks for the quick response, especially after us not giving this time in the first place. |
@frederikbosch I will make the changes as noted. Shall I also add property typehints? |
@frederikbosch All corrections made, and added some more typehinting to soothe Psalm (though it still complains a bit). |
If you can allow edits from maintainers, I am happy to commit some changes. |
I have sent you a "collaborator" invitation! |
All checks are green. The class is now |
@pmjones If you believe this is good to go, we can merge it in. |
@frederikbosch Send it! |
Thanks for the work @pmjones. After quite some time, but it did finally get included in the package! |
@frederikbosch I know how these things go -- everyone is working on their own time. Thanks for getting to it at all! |
Has this been tagged in a release? |
Not yet, don't know why not. I'll tag today. |
Done! |
Thanks @frederikbosch ! (Not to be a nag, but the moneyphp.org site probably needs the updated docs for Teller as well.) |
In all these years that I am doing this, I think I have maybe once logged in there. I will try to fix this, but it will take some time to figure how this works, and how to gain access. I always believed that we automated this. |
/me nods No rush on my part, and thanks again! |
This PR introduces a Teller class, nominally to help ease legacy codebases away from float math over to using Money object.
It differs from the tentative offering in #629 in several ways, most notably that it is PHP 5.6 compatible, and reproduces a larger number of Money methods, using their same names.
I have attempted to match the existing project conventions; please let me know if changes of any kind are needed.
Tests and docs are included.
fixes #629