Releases: briannesbitt/Carbon
3.1.0
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
- @azim-kordpour made their first contribution in #2941
3.0.2
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
Complete commits list: 3.0.0...3.0.1
Summary:
3.0.0
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
andunitsInUnit
getters #2885 - ⚠ 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
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 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-nullablestatic
#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
Complete commits list: 3.0.0-rc.1...3.0.0-rc.3
Summary:
- Changed #2931 Use non-nullable
static
return type forparse()
— @jnoordsij
3.0.0-rc.1
Complete commits list: 3.0.0-beta.3...3.0.0-rc.1
Summary:
- Changed #2925 Replace
$tz
with$timezone
for named argument — @kylekatarnls - Fixed #2923 short year Ukrainian plural — @kylekatarnls
2.72.3
Complete commits list: 2.72.2...2.72.3
Summary:
- Fixed #2920 typos in documentation — @szepeviktor
- Fixed #2918 Short year Ukrainian plural — @kylekatarnls
3.0.0-beta.3
Complete commits list: 3.0.0-beta.2...3.0.0-beta.3
Summary:
- Fixed fallback from setter to macro #2922
3.0.0-beta.2
Complete commits list: 3.0.0-beta.1...3.0.0-beta.2
Summary:
- Fixed
resolve*
method return type so to allow sub-classes to take other sub-classes as parameters
3.0.0-beta.1
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