Skip to content

Releases: briannesbitt/Carbon

3.2.0

27 Mar 18:28
6bfea14
Compare
Choose a tag to compare

Complete commits list: 3.1.1...3.2.0

Summary:

  • Fix PHP 8.4 implicit nullability deprecation @Ayesh #2969
  • Use current timezone if identical to compared value for diff #2972
  • Correction of Months' Names In CKB language #2973
  • Stop using start/end on interval if they are changed after creation #2981
  • Deprecate Real diff in favor of UTC diff #2975
  • Allow integer in createFromFormat() #2983

New Contributors

3.1.1

13 Mar 13:09
34ccf6f
Compare
Choose a tag to compare

Complete commits list: 3.1.0...3.1.1

Summary:

  • Fixed Persian translation for before and after #2963
  • Cleaned up region list and add warranty notice on methods relying on it #2964
  • Fixed incomplete type for create method PHPDoc #2962

New Contributors

3.1.0

12 Mar 10:48
237716a
Compare
Choose a tag to compare

Complete commits list: 3.0.2...3.1.0

Summary:

  • Fixed Persian translation for before and after #2941
  • Allowed to pass Unit enum for unit name #2944
  • Updated PHPDoc #2946
  • Removed suffix to Taiwan name #2957

New Contributors

3.0.2

06 Feb 10:01
cf30cfc
Compare
Choose a tag to compare

Complete commits list: 3.0.1...3.0.2

Summary:

  • Fixed PHP 8.1 issue "Enum case value must be compile-time evaluatable": Use static values for enums until dropping PHP 8.1 #2938

3.0.1

05 Feb 18:24
975ce92
Compare
Choose a tag to compare

Complete commits list: 3.0.0...3.0.1

Summary:

3.0.0

01 Feb 10:54
7ae1c6f
Compare
Choose a tag to compare

Complete commits list: 2.72.2...3.0.0

Summary:

  • Dropped PHP < 8.1 #2810 #2385 #2346
  • Dropped Symfony < 4.4 #2070
  • Added enums for week days, months and units #2701
  • Added generic unitOfUnit and unitsInUnit getters #2885
  • ⚠ Changed diffIn* methods to return float and relative diff ($absolute = false by default) #2119
    • diffIn* will use the floatDiffInReal* behavior, all other variants will be removed
  • Changed CarbonPeriod to extend DatePeriod #1752
  • Changed create* method to return null instead of false #2340
  • Changed forHumans() to show 0 seconds y default for empty intervals #2035
  • Changed CarbonInterval to be empty by default #2079
  • Changed week methods to work with current global locale #1967
  • Allowed to add and subtract decimal numbers of any unit #2347 #2519
  • Changed factories to have isolated settings, locale, testNow, macros and default timezone #2345
  • Changed $tz with $timezone for named argument #2925
  • Changed parse() return type to non-nullable static #2931@jnoordsij
  • Fixed short year Ukrainian plural #2923
  • Fixed resolve* method return type so to allow sub-classes to take other sub-classes as parameters
  • Fixed fallback from setter to macro #2922

3.0.0-rc.3

31 Jan 23:25
7ae1c6f
Compare
Choose a tag to compare
3.0.0-rc.3 Pre-release
Pre-release

Complete commits list: 3.0.0-rc.1...3.0.0-rc.3

Summary:

  • Changed #2931 Use non-nullable static return type for parse()@jnoordsij

3.0.0-rc.1

27 Jan 13:40
8cde64b
Compare
Choose a tag to compare
3.0.0-rc.1 Pre-release
Pre-release

Complete commits list: 3.0.0-beta.3...3.0.0-rc.1

Summary:

2.72.3

25 Jan 10:38
0c6fd10
Compare
Choose a tag to compare

Complete commits list: 2.72.2...2.72.3

Summary:

3.0.0-beta.3

24 Jan 09:24
4f83b0d
Compare
Choose a tag to compare
3.0.0-beta.3 Pre-release
Pre-release

Complete commits list: 3.0.0-beta.2...3.0.0-beta.3

Summary:

  • Fixed fallback from setter to macro #2922