Skip to content

Releases: briannesbitt/Carbon

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

2.51.0

28 Jul 08:37
48ebff2
Compare
Choose a tag to compare

Complete commits list: 2.50.0...2.51.0

Summary:

2.50.0

29 Jun 08:26
f47f17d
Compare
Choose a tag to compare

Complete commits list: 2.49.0...2.50.0

Summary:

  • Added #2353 Use the return value from callback in withTestNow()
  • Added #2351 avoidMutation() method to copy an instance only if mutable
  • Fixed #2349 polish translation causing a runtime error
  • Fixed PHP 8.1 compatibility #2319 #2364
  • Fixed #2368 Precision bug when converting float with leading zero in decimal part of a timestamp
  • Refactored typing #2367 #2366 #2365 #2359 #2360

2.49.0

09 Jun 10:19
93d9db9
Compare
Choose a tag to compare

Complete commits list: 2.48.1...2.49.0

Summary:

  • Added #2332 instantiation method Carbon::createStrict()
  • Added #2344 Doctrine Types Annotations
  • Fixed #2336 Belarusian translation
  • Fixed #2337 passing null to non-nullable arguments
  • ⚠️ Changed ac6f8dd negative interval strings (such as -30 minutes) used in CarbonPeriod constructor are now considered as the step of the period and no longer as the start/end date (previously referring to now - interval)

2.48.1

26 May 22:27
8d1f50f
Compare
Choose a tag to compare

Complete commits list: 2.48.0...2.48.1

Summary:

  • Fixed unwanted timezone mutation when calling floatDiffInRealDays(), floatDiffInRealWeeks(), floatDiffInRealMonths(), or floatDiffInRealYears()

2.47.1

26 May 22:26
902fc35
Compare
Choose a tag to compare

Complete commits list: 2.47.0...2.47.1

Summary:

  • Fixed unwanted timezone mutation when calling floatDiffInRealDays(), floatDiffInRealWeeks(), floatDiffInRealMonths(), or floatDiffInRealYears()

2.48.0

12 May 07:55
d3c447f
Compare
Choose a tag to compare

Complete commits list: 2.47.0...2.48.0

Summary:

  • Fixed #2322 Allow numeric locales such as es_419 to use dash (e.g. es-419)
  • Fixed #2324 Optimize period end calculation and allow infinite recurrences
  • Fixed #2326 handle p format in canBeCreatedFromFormat()
  • Fixed #2328 Add Estonian unit abbreviations