Skip to content

Releases: briannesbitt/Carbon

2.57.0

13 Feb 20:14
4a54375
Compare
Choose a tag to compare

Complete commits list: 2.56.0...2.57.0

Summary:

  • Fixed #2547 ceil() diff with short month
  • Fixed #2531 Invalid floatDiffInDays() calculate
  • Fixed #2548 Use unmodified English for period conversion

2.56.0

24 Jan 08:34
626ec8c
Compare
Choose a tag to compare

Complete commits list: 2.55.2...2.56.0

Summary:

  • Added #2528 CarbonPeriod Handle infinite recurrences when parsing period string by @dbohn
  • Added #2537 Allow precision 0 in Carbon DBAL types by @kdaniel95
  • Added #2507 Support for PHPStan 1.*
  • Fixed #2520 Replace Polish ending in grouped units
  • Fixed #2529 Allow strings in comparison methods
    ⚠️ Breaking change: null now fallback to "now", as it's still ambigus, we highly encourage you not to compare null to date/Carbon instances and do null-check before comparison.

New Contributors 🎉

2.55.2

03 Dec 15:01
8c2a18c
Compare
Choose a tag to compare

Complete commits list: 2.55.1...2.55.2

Summary:

2.55.1

03 Dec 13:48
67f34dc
Compare
Choose a tag to compare

Complete commits list: 2.55.0...2.55.1

Summary:

  • Fixed #2512 Move translator definition outside autoload

2.55.0

02 Dec 17:22
b462499
Compare
Choose a tag to compare

Complete commits list: 2.54.0...2.55.0

Summary:

  • Added #2488 "skip" option in forHumans() and diffForHumans()
  • Added #2509 Symfony 6 support
  • Added #2497 composer docs section (thanks to @lucasmichot)
  • Fixed #2492 Past declensions in Polish
  • Fixed #2506 nds_DE translation
  • Fixed #2490 Documentation (thanks to @Jo-chana)
  • Fixed #2452 Throw exception on wrong unit added
  • Fixed #2503 Remove work-around for PHP bug 81458
  • Changed #2501 Throw exception on invalid timezone ID in setTestNowAndTimezone()
  • Improved code style #2487 (thanks to @lucasmichot)
  • Improved tests #2494 #2495 #2496 (thanks to @lucasmichot)

New Contributors 🎉

2.54.0

02 Nov 11:48
eed8393
Compare
Choose a tag to compare

Complete commits list: 2.53.1...2.54.0

Summary:

  • Fixed #2481 Make time handling with setTestNow() closest to real time behavior
    • ⚠️ see BC notice for this change #2481 (comment) the BC only changes the way to mock time in tests (which will no longer fake the timezone by default) behavior outside testing env is not impacted.
  • Fixed #2433 Fix Malay meridiem
  • Fixed #2478 Fix Latvian short name for months
  • Fixed #2479 Fix month plural for Gujarati
  • Fixed #2452 Throw exception on wrong unit added
  • Added #2484 setTestNowAndTimezone()
  • Refactored tests and CI (thanks to @lucasmichot)

New Contributors 🎉

2.53.1

06 Sep 09:40
f465585
Compare
Choose a tag to compare

Complete commits list: 2.53.0...2.53.1

Summary:

  • Allow PHP 8.1 return types for Countable

2.53.0

06 Sep 08:28
875f62a
Compare
Choose a tag to compare

Complete commits list: 2.52.0...2.53.0

Summary:

  • Fixed #2439 PHP 8.1 compatibility
  • Added #2424 unit test for PHP bug 80974
  • Removed #2419 work-around for bug 81106 fixed in PHP 8.1 beta 3
  • Refactored #2427 Use null coalescing operator when possible
  • Optimized #2428 RegExp
  • Upgraded #2426 friendsofphp/php-cs-fixer to ^3

2.52.0

20 Aug 11:08
369c0e2
Compare
Choose a tag to compare

Complete commits list: 2.51.1...2.52.0

Summary:

2.51.1

28 Jul 13:17
8619c29
Compare
Choose a tag to compare

Complete commits list: 2.51.0...2.51.1

Summary:

  • Restored #2400 PHPStan extension config in package