Skip to content

Releases: whitecube/php-prices

v4.0.0-beta.3

v4.0.0-beta.3 Pre-release
Pre-release

Choose a tag to compare

@voidgraphics voidgraphics released this 28 Aug 14:27

What's Changed

Full Changelog: v4.0.0-beta.2...v4.0.0-beta.3

v3.3.0

Choose a tag to compare

@voidgraphics voidgraphics released this 28 Aug 11:58
635357f

What's Changed

Full Changelog: v3.2.0...v3.3.0

Upgrade to Brick\Money 0.10.x

Choose a tag to compare

@toonvandenbos toonvandenbos released this 25 Jun 16:00
4431c8a

What's Changed

Full Changelog: v3.1.1...v3.2.0

v4.0.0-beta.2

v4.0.0-beta.2 Pre-release
Pre-release

Choose a tag to compare

@voidgraphics voidgraphics released this 09 Dec 15:31
0c9c33e

What's Changed

Full Changelog: v4.0.0-beta.1...v4.0.0-beta.2

v4.0.0-beta.1

v4.0.0-beta.1 Pre-release
Pre-release

Choose a tag to compare

@voidgraphics voidgraphics released this 11 Oct 13:28
03c8f83

What's Changed

Full Changelog: v4.0.0-beta...v4.0.0-beta.1

v4.0.0-beta

v4.0.0-beta Pre-release
Pre-release

Choose a tag to compare

@voidgraphics voidgraphics released this 16 Sep 08:00
50bbf15

What's Changed

  • [4.x] Use RationalMoney when computing modifier totals by @voidgraphics in #16

Full Changelog: v3.1.1...v4.0.0-beta

Bug fixes

Choose a tag to compare

@toonvandenbos toonvandenbos released this 26 Jun 16:44
v3.1.1

Fixed serialization when working with RationalMoney

RationalMoney usage in serialized value

Choose a tag to compare

@toonvandenbos toonvandenbos released this 26 Jun 16:41
v3.1.0

Updated json serialization using RationalMoney

RationalMoney support

Choose a tag to compare

@voidgraphics voidgraphics released this 06 Mar 10:55
a428318

This new major version

  • adds support for \Brick\Money\RationalMoney instances as the base value for price objects.
  • adds typehints everywhere
  • removes support for PHP 7.4

The aim is to allow division and multiplication operations to be done without rounding errors. More information about rounding errors can be found here.

Warning
This contains breaking changes, tied to the changes in typehints in interfaces and classes you may implement/extend.

Namely, classes that implement the Whitecube\Price\PriceAmendable interface, and classes that extend Whitecube\Price\Formatting\CustomFormatter need to specify the correct, updated typehints. Consult these files and update your typehints appropriately.

PHP 8.1 support & new feature

Choose a tag to compare

@voidgraphics voidgraphics released this 17 Jan 10:16
c06c070

New features:

  • PHP 8.1 compatibility
  • toMinor method to easily access minor amount

Bug fixes:

  • Fixed parsing of values with narrow non-breaking spaces (a73bb01)