Complete commits list: 2.72.2...3.0.0-beta.1
Summary:
-
Dropped Symfony < 4.4 #2070
-
Added enums for week days, months and units #2701
-
Added generic
unitOfUnit
andunitsInUnit
getters #2885 -
Changed
CarbonPeriod
to extendDatePeriod
#1752 -
Changed
create*
method to returnnull
instead offalse
#2340 -
Changed
forHumans()
to show0 seconds
y default for empty intervals #2035 -
Changed
CarbonInterval
to be empty by default #2079 -
Changed
diffIn*
methods to returnfloat
and relative diff ($absolute = false
by default) #2119- diffIn* will use the floatDiffInReal* behavior, all other variants will be removed
-
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