Skip to content

3.0.0

Compare
Choose a tag to compare
@kylekatarnls kylekatarnls released this 01 Feb 10:54
· 114 commits to 3.x since this release
7ae1c6f

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