Skip to content

v8.1.2

Choose a tag to compare

@MoamenEltouny MoamenEltouny released this 11 Oct 09:32

A bug fix release. Decimals from 0 to 100 format exactly as in 8.1.1.

Fixed

  • $decimals above 100 throws InvalidArgumentException in Number::format(), Number::compact(), Number::percentage(), Bytes::format(), Money::format() and Money::compact(). Very large values used to exhaust memory with a fatal error, or return wrong digits with a locale: Number::format(1.5, 100000000, false, 'en_US') returned "0".
  • Exception messages quote at most 50 bytes of the value they reject, so a huge input no longer ends up whole in a message or a log.

Compatibility

  • Decimals from 0 to 100 format exactly as before.

Full Changelog: 8.1.1...8.1.2