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 #48

Open
wants to merge 1 commit into
base: 2.x
Choose a base branch
from

Conversation

renovate[bot]
Copy link

@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 -> ^3.2 || ^4.0 age adoption passing confidence

Release Notes

moneyphp/money (moneyphp/money)

v4.5.0

Compare Source

Fixed
  • PHPUnit 10 support
  • Update currencies
  • Updated doctrine/coding-standard
  • Updated other dev dependencies
Removed
  • PHP 8.0 support

v4.4.0

Compare Source

Added
  • Extended support for psr/cache, now version 1.0.1 up until 3.0 is supported.

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.

v3.3.1

Compare Source

Fixed
  • GMP: division of negative values
  • GMP: compare 0.x value

v3.3.0

Compare Source

Changed
  • Added types for Money to be understood as pure/immutable downstream (#​576)
Fixed
  • JSON serialization (#​551)
  • Several documentation fixes
  • Minor fixes

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 was generated by Mend Renovate. View the repository job log.

@renovate renovate bot requested a review from WyriHaximus as a code owner January 7, 2024 20:51
@renovate renovate bot added Dependencies 📦 Pull requests that update a dependency file PHP 🐘 Hypertext Pre Processor labels Jan 7, 2024
@WyriHaximus WyriHaximus added this to the 1.1.0 milestone Jan 7, 2024
@renovate renovate bot force-pushed the renovate/moneyphp-money-4.x branch 2 times, most recently from 0eb848e to 21a5e12 Compare January 9, 2024 23:47
@reactphp-parallel reactphp-parallel deleted a comment from renovate bot Jan 9, 2024
@renovate renovate bot force-pushed the renovate/moneyphp-money-4.x branch from 21a5e12 to 8df79cd Compare January 9, 2024 23:51
@renovate renovate bot force-pushed the renovate/moneyphp-money-4.x branch from 8df79cd to 397d673 Compare February 2, 2024 14:59
Copy link
Author

renovate bot commented Feb 2, 2024

⚠ Artifact update problem

Renovate failed to update an artifact related to this branch. You probably do not want to merge this PR as-is.

♻ Renovate will retry this branch, including artifacts, only when one of the following happens:

  • any of the package files in this branch needs updating, or
  • the branch becomes conflicted, or
  • you click the rebase/retry checkbox if found above, or
  • you rename this PR's title to start with "rebase!" to trigger it manually

The artifact failure details are included below:

File name: composer.lock
Command failed: composer update moneyphp/money:4.4.0 --with-dependencies --ignore-platform-req='ext-*' --ignore-platform-req='lib-*' --no-ansi --no-interaction --no-scripts --no-autoloader --no-plugins
Loading composer repositories with package information
Updating dependencies
Your requirements could not be resolved to an installable set of packages.

  Problem 1
    - Root composer.json requires moneyphp/money ^3.2 || ^4.0, found moneyphp/money[dev-master, v3.2.0, ..., 3.x-dev (alias of dev-master), v4.0.0-beta1, ..., v4.4.0] but these were not loaded, likely because it conflicts with another require.
  Problem 2
    - react-parallel/pool-tests is locked to version 4.x-dev and an update of this package was not requested.
    - react-parallel/pool-tests 4.x-dev requires moneyphp/money ^3.2.1 -> found moneyphp/money[dev-master, v3.2.1, ..., 3.x-dev (alias of dev-master)] but it conflicts with your temporary update constraint (moneyphp/money:4.4.0).

Use the option --with-all-dependencies (-W) to allow upgrades, downgrades and removals for packages currently locked to specific versions.

@renovate renovate bot force-pushed the renovate/moneyphp-money-4.x branch from 397d673 to fd8131f Compare February 12, 2024 13:51
@renovate renovate bot force-pushed the renovate/moneyphp-money-4.x branch from fd8131f to 5946016 Compare July 24, 2024 12:24
Copy link

🚧 Composer Development Dependency changes 🚧

Dev Packages Operation Base Target Link
moneyphp/money Upgraded v3.2.1 v4.5.0 Compare

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.

None yet

1 participant