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

Update dependency moneyphp/money to v4 #50

Merged
merged 1 commit into from
Jan 9, 2024

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented Jan 7, 2024

Mend Renovate

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
moneyphp/money (source) ^3.2.1 -> ^3.2.1 || ^4.0.0 age adoption passing confidence

Release Notes

moneyphp/money (moneyphp/money)

v4.3.0

Compare Source

Added
  • Support for PHP 8.3
  • Allow divisor in mod to be a number as well
Removed
  • PHPSpec tests, we are using PHPUnit only now

v4.2.0

Compare Source

Added
  • Teller object to help legacy applications

v4.1.1

Compare Source

Fixed
  • Optimized result representation for BcMathCalculator
  • Use sprintf for float to string conversion in swap exchange
  • Fix rounding to unit with value between 10 and 49
  • Return type for DecimalMoneyFormatter::format is numeric-string
  • Money::ratioOf throws exception if currencies don't match.
  • Updated currencies: added SLE and VED, removed HRK.
  • Do not let php-http/discovery change composer.json.

v4.1.0

Compare Source

Added
  • Full PHP8.2 compatibility
Fixed
  • Fix parsing amounts with leading zero's
  • Fix invalid exception message in DecimalMoneyParser
  • Upgrade enchant to newer version
  • Support Psalm 5.3
  • Fix ROUND_UP and ROUND_DOWN in roundToUnit
Changes
  • composer.lock is not committed anymore
  • MoneyFactory now also contains crypto-currencies
Added

v4.0.5

Compare Source

Fixed
  • Enabled zend.assertions during CI
  • Fixed invalid assertions

v4.0.4

Compare Source

Added
  • Full PHP8.1 compatibility (#​670)
Changes
  • Dropped mutation testing as the library owners are unfamiliar with it
  • CHANGELOG BC change improvement

v4.0.3

Compare Source

Fixed
  • jsonSerialize return types, resulting in no PHP 8.1 warnings.
  • Documentation CI pipeline failure.

v4.0.2

Compare Source

Changes
  • Added all extensions to composer.json, including those bundled with PHP.
Fixed
  • Remove all empty uses. Money values of '0' gave an assertion error in decimal formats (#​655)

v4.0.1

Compare Source

Changed
  • Allow int as multiplier for Money::multiply
  • Allow int as divisor for Money::divide

v4.0.0

Compare Source

Added
  • PHP8.0 compatibility (#​633 and #​619)
  • Recommendation to use a type-checker like psalm or phpstan
  • Rounding to units
  • Converter#convertAndReturnWithCurrencyPair to get the combination of the converted money and currency pair
  • Converter#convertAgainstCurrencyPair to convert against a currency pair
Changed
  • [BC break] BC Math required as it is the default calculator
  • [BC break] The methods multiply and divide do not accept floating points any more. Callers are required to
    convert a float to string (e.g. sprintf('%.14F', $float)) before calling these methods.
  • [BC break] The constructor of the FixedExchange does not accept floating points any more. Callers are required to
    convert a float to string (e.g. sprintf('%.14F', $float)) before calling the constructor.
  • Allow multiple arguments to Money#isSameCurrency
  • Renamed second parameter of Parser#parse to $fallbackCurrency
Fixed
  • Fix GMP multiply and divide by negative (#​640 #​626)
  • Currency code must be uppercase (#​639 #​638 #​637)
  • The CPU no longer overheats when using this library (#​634)
  • No longer allowing null amount (#​615)
  • Update cached currencies (#​583)
  • Only numeric strings allowed (#​575)
  • Calculator and Number are internal (#​465)
  • Negative ratio in Money#allocate() is now allowed (#​258)
Removed
  • [BC break] Removed PhpCalculator
  • [BC break] Removed Currency#isAvailableWithin()
  • [BC break] Removed string as allowed type for second parameter to MoneyParser#parse, only Currency objects are accepted now
  • [BC break] Completely remove float usage, methods now return numeric-strings

Configuration

📅 Schedule: Branch creation - "* 6-22/3 * * 1-5,* 12-23/3 * * 0,6" in timezone Europe/Amsterdam, Automerge - At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR has been generated by Mend Renovate. View repository job log here.

@renovate renovate bot requested a review from WyriHaximus as a code owner January 7, 2024 14:49
@renovate renovate bot added Dependencies 📦 Pull requests that update a dependency file PHP 🐘 Hypertext Pre Processor labels Jan 7, 2024
@renovate renovate bot force-pushed the renovate/moneyphp-money-4.x branch from f564b62 to 04adf82 Compare January 9, 2024 23:41
Copy link

github-actions bot commented Jan 9, 2024

🏰 Composer Production Dependency changes 🏰

Prod Packages Operation Base Target Link
moneyphp/money Upgraded v3.3.3 v4.3.0 Compare

@WyriHaximus WyriHaximus merged commit aaccc83 into 4.x Jan 9, 2024
61 of 85 checks passed
@renovate renovate bot deleted the renovate/moneyphp-money-4.x branch January 9, 2024 23:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Dependencies 📦 Pull requests that update a dependency file JSON 👨‍💼 PHP 🐘 Hypertext Pre Processor
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant