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

[13.x] Allow options with formatAmount #1348

Merged
merged 2 commits into from
Apr 22, 2022
Merged

Conversation

driesvints
Copy link
Member

This PR adds a new $options array to the formatAmount method. By using this, we can make this formatter function more powerful with additional features.

Specifically, in Spark, we may use the new min_fraction_digits option to limit the amount of digits for a money value in one specific place.

This is a breaking change to the method signature, however, since Cashier is a standalone class I don't expect that this will impact anyone.

@driesvints driesvints changed the title Allow options with formatAmount [13.x] Allow options with formatAmount Apr 22, 2022
@taylorotwell taylorotwell merged commit bccbfbb into 13.x Apr 22, 2022
@taylorotwell taylorotwell deleted the format-amount-options branch April 22, 2022 14:02
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.

2 participants