Skip to content
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

[WIP] Add immutable number #2

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

[WIP] Add immutable number #2

wants to merge 2 commits into from

Conversation

rande
Copy link

@rande rande commented Jan 16, 2014

No description provided.

@rande rande mentioned this pull request Jan 16, 2014
@rande
Copy link
Author

rande commented Jan 16, 2014

The immutable object is usefull if you want to display a price without changing the object itself.

$product->getUnitPrice()->mul($quantity = 4) ...

@rande
Copy link
Author

rande commented Jan 17, 2014

@ramsey Any comment on this PR ? I will add unit test on the class if you are agree on the change. By the way the changes are BC

@ramsey
Copy link
Contributor

ramsey commented Jan 17, 2014

I had to take time to review the changes, and it looked like there were a lot of them, but that's just because of all the whitespace changes.

Everything looks good. Please add the unit test, and I'll merge in the changes.

Thanks for contributing this!

@rande
Copy link
Author

rande commented Jan 20, 2014

Thanks for the feedback, I will do the unit test ASAP.

Thanks

@stefanotorresi
Copy link

@rande any update on this? I'd very much like this functionality. If you don't have the time let me know, I could pick this up.

peter279k pushed a commit to peter279k/math-3 that referenced this pull request May 22, 2018
php 7.0 unit tests fixes - correct octal numbers
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants