Skip to content

Releases: whitecube/php-prices

v4.0.0-beta.3

28 Aug 14:27

Choose a tag to compare

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

What's Changed

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

v3.3.0

28 Aug 11:58
635357f

Choose a tag to compare

What's Changed

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

Upgrade to Brick\Money 0.10.x

25 Jun 16:00
4431c8a

Choose a tag to compare

What's Changed

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

v4.0.0-beta.2

09 Dec 15:31
0c9c33e

Choose a tag to compare

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

What's Changed

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

v4.0.0-beta.1

11 Oct 13:28
03c8f83

Choose a tag to compare

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

What's Changed

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

v4.0.0-beta

16 Sep 08:00
50bbf15

Choose a tag to compare

v4.0.0-beta Pre-release
Pre-release

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

26 Jun 16:44

Choose a tag to compare

v3.1.1

Fixed serialization when working with RationalMoney

RationalMoney usage in serialized value

26 Jun 16:41

Choose a tag to compare

v3.1.0

Updated json serialization using RationalMoney

RationalMoney support

06 Mar 10:55
a428318

Choose a tag to compare

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

17 Jan 10:16
c06c070

Choose a tag to compare

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)