Skip to content

Conversation

@renovate
Copy link
Contributor

@renovate renovate bot commented Nov 19, 2023

Mend Renovate

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
moneyphp/money (source) ^3.3 -> ^3.3 || ^4.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

v3.3.3

Compare Source

Fix some more deprecation warnings.

v3.3.2

Compare Source

Fix deprecation warnings.


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 November 19, 2023 21:36
@renovate renovate bot added Dependencies 📦 Pull requests that update a dependency file PHP 🐘 Hypertext Pre Processor labels Nov 19, 2023
@github-actions github-actions bot added this to the 1.2.0 milestone Nov 19, 2023
@renovate renovate bot force-pushed the renovate/moneyphp-money-4.x branch from ffa09fa to b33bc46 Compare December 7, 2023 17:22
@renovate renovate bot force-pushed the renovate/moneyphp-money-4.x branch from b33bc46 to 981635a Compare December 11, 2023 01:18
@renovate renovate bot changed the title Update dependency moneyphp/money to v4 Update dependency moneyphp/money to v4 - autoclosed Jan 8, 2024
@renovate renovate bot closed this Jan 8, 2024
@renovate renovate bot deleted the renovate/moneyphp-money-4.x branch January 8, 2024 13:59
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