Skip to content

Releases

v8.5.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.5.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.5.1...8.5.2

v8.5.1

Choose a tag to compare

@MoamenEltouny MoamenEltouny released this 11 Oct 08:58
e0cf279

A tooling and README patch release. Output is identical to 8.5.0.

Changed

  • The development tooling moved to Pest, Pint and PHPStan at level max. composer check now validates composer.json, checks the code style, runs static analysis and the tests, and audits the dependencies. The library's output is unchanged.

Full Changelog: 8.5.0...8.5.1

v8.4.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.4.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.4.1...8.4.2

v8.4.1

Choose a tag to compare

@MoamenEltouny MoamenEltouny released this 11 Oct 08:58
66e27c2

A tooling and README patch release. Output is identical to 8.4.0.

Changed

  • The development tooling moved to Pest, Pint and PHPStan at level max. composer check now validates composer.json, checks the code style, runs static analysis and the tests, and audits the dependencies. The library's output is unchanged.

Full Changelog: 8.4.0...8.4.1

v8.3.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.3.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.3.1...8.3.2

v8.3.1

Choose a tag to compare

@MoamenEltouny MoamenEltouny released this 11 Oct 08:58
9bcbc16

A tooling and README patch release. Output is identical to 8.3.0.

Changed

  • The development tooling moved to Pest, Pint and PHPStan at level max. composer check now validates composer.json, checks the code style, runs static analysis and the tests, and audits the dependencies. The library's output is unchanged.

Full Changelog: 8.3.0...8.3.1

v8.2.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.2.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.2.1...8.2.2

v8.2.1

Choose a tag to compare

@MoamenEltouny MoamenEltouny released this 11 Oct 08:58
8a0d68d

A tooling and README patch release. Output is identical to 8.2.0.

Changed

  • The development tooling moved to Pest, Pint and PHPStan at level max. composer check now validates composer.json, checks the code style, runs static analysis and the tests, and audits the dependencies. The library's output is unchanged.

Full Changelog: 8.2.0...8.2.1

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

v8.1.1

Choose a tag to compare

@MoamenEltouny MoamenEltouny released this 11 Oct 08:58
5f71289

A tooling and README patch release. Output is identical to 8.1.0.

Changed

  • The development tooling moved to Pest, Pint and PHPStan at level max. composer check now validates composer.json, checks the code style, runs static analysis and the tests, and audits the dependencies. The library's output is unchanged.

Full Changelog: 8.1.0...8.1.1