briannesbitt/Carbon (nesbot/carbon)
### [`v3.8.1`](https://redirect.github.com/briannesbitt/Carbon/releases/tag/3.8.1)
[Compare Source](https://redirect.github.com/briannesbitt/Carbon/compare/3.8.0...3.8.1)
Complete commits list: https://github.com/briannesbitt/Carbon/compare/3.8.0...3.8.1
Summary:
- Consider absolute flag when comparing intervals by [@kylekatarnls](https://redirect.github.com/kylekatarnls) in [https://github.com/briannesbitt/Carbon/pull/3073](https://redirect.github.com/briannesbitt/Carbon/pull/3073)
- Optimize `setUnitNoOverflow()` by [@takaram](https://redirect.github.com/takaram) in [https://github.com/briannesbitt/Carbon/pull/3071](https://redirect.github.com/briannesbitt/Carbon/pull/3071)
- Fix timezone issue when add/sub with overflow by [@kylekatarnls](https://redirect.github.com/kylekatarnls) in [https://github.com/briannesbitt/Carbon/pull/3074](https://redirect.github.com/briannesbitt/Carbon/pull/3074)
- Automate documentation update by [@kylekatarnls](https://redirect.github.com/kylekatarnls) in [https://github.com/briannesbitt/Carbon/pull/3079](https://redirect.github.com/briannesbitt/Carbon/pull/3079)
- Parse microseconds as integer when making from specs by [@kylekatarnls](https://redirect.github.com/kylekatarnls) in [https://github.com/briannesbitt/Carbon/pull/3098](https://redirect.github.com/briannesbitt/Carbon/pull/3098)
### [`v3.8.0`](https://redirect.github.com/briannesbitt/Carbon/releases/tag/3.8.0)
[Compare Source](https://redirect.github.com/briannesbitt/Carbon/compare/3.7.0...3.8.0)
Complete commits list: https://github.com/briannesbitt/Carbon/compare/3.7.0...3.8.0
Summary:
- Accept Unit enum in `startOf` and `endOf` by [@kylekatarnls](https://redirect.github.com/kylekatarnls) in [https://github.com/briannesbitt/Carbon/pull/3052](https://redirect.github.com/briannesbitt/Carbon/pull/3052)
- Add test for German period translation by [@kylekatarnls](https://redirect.github.com/kylekatarnls) in [https://github.com/briannesbitt/Carbon/pull/3054](https://redirect.github.com/briannesbitt/Carbon/pull/3054)
- Add tests for `CarbonInterval` and `CarbonPeriod` by [@kylekatarnls](https://redirect.github.com/kylekatarnls) in [https://github.com/briannesbitt/Carbon/pull/3055](https://redirect.github.com/briannesbitt/Carbon/pull/3055)
- Add generic methods `isStartOfUnit` and `isEndOfUnit` by [@kylekatarnls](https://redirect.github.com/kylekatarnls) in [https://github.com/briannesbitt/Carbon/pull/3053](https://redirect.github.com/briannesbitt/Carbon/pull/3053)
- Implement `isStartOf*` and `isEndOf*` for all units by [@kylekatarnls](https://redirect.github.com/kylekatarnls) in [https://github.com/briannesbitt/Carbon/pull/3056](https://redirect.github.com/briannesbitt/Carbon/pull/3056)
- Update Spanish translations by [@DannyJJK](https://redirect.github.com/DannyJJK) in [https://github.com/briannesbitt/Carbon/pull/3060](https://redirect.github.com/briannesbitt/Carbon/pull/3060)
- Optimize `getIntervalDayDiff` by [@kylekatarnls](https://redirect.github.com/kylekatarnls) in [https://github.com/briannesbitt/Carbon/pull/3061](https://redirect.github.com/briannesbitt/Carbon/pull/3061)
- Optimize `diffInDays` by [@kylekatarnls](https://redirect.github.com/kylekatarnls) in [https://github.com/briannesbitt/Carbon/pull/3062](https://redirect.github.com/briannesbitt/Carbon/pull/3062)
- Use arrow functions to `getIsoUnits` by [@kylekatarnls](https://redirect.github.com/kylekatarnls) in [https://github.com/briannesbitt/Carbon/pull/3064](https://redirect.github.com/briannesbitt/Carbon/pull/3064)
- Simplify PHPStan extension by [@ondrejmirtes](https://redirect.github.com/ondrejmirtes) in [https://github.com/briannesbitt/Carbon/pull/3065](https://redirect.github.com/briannesbitt/Carbon/pull/3065)
#### New Contributors
- [@DannyJJK](https://redirect.github.com/DannyJJK) made their first contribution in [https://github.com/briannesbitt/Carbon/pull/3060](https://redirect.github.com/briannesbitt/Carbon/pull/3060)
### [`v3.7.0`](https://redirect.github.com/briannesbitt/Carbon/releases/tag/3.7.0)
[Compare Source](https://redirect.github.com/briannesbitt/Carbon/compare/3.6.0...3.7.0)
Complete commits list: https://github.com/briannesbitt/Carbon/compare/3.6.0...3.7.0
Summary:
- Use static instead of `CarbonInterface` return type in doclocks by [@philbates35](https://redirect.github.com/philbates35) in [https://github.com/briannesbitt/Carbon/pull/3047](https://redirect.github.com/briannesbitt/Carbon/pull/3047)
- Added period German translations by [@marcheffels](https://redirect.github.com/marcheffels) in [https://github.com/briannesbitt/Carbon/pull/3045](https://redirect.github.com/briannesbitt/Carbon/pull/3045)
- Use pro rata to calculate decimal part of month/year diffs by [@kylekatarnls](https://redirect.github.com/kylekatarnls) in [https://github.com/briannesbitt/Carbon/pull/3051](https://redirect.github.com/briannesbitt/Carbon/pull/3051)
- Add more `between()` / `isBetween()` tests by [@faissaloux](https://redirect.github.com/faissaloux) in [https://github.com/briannesbitt/Carbon/pull/3043](https://redirect.github.com/briannesbitt/Carbon/pull/3043)
#### New Contributors
- [@faissaloux](https://redirect.github.com/faissaloux) made their first contribution in [https://github.com/briannesbitt/Carbon/pull/3043](https://redirect.github.com/briannesbitt/Carbon/pull/3043)
- [@philbates35](https://redirect.github.com/philbates35) made their first contribution in [https://github.com/briannesbitt/Carbon/pull/3047](https://redirect.github.com/briannesbitt/Carbon/pull/3047)
- [@marcheffels](https://redirect.github.com/marcheffels) made their first contribution in [https://github.com/briannesbitt/Carbon/pull/3045](https://redirect.github.com/briannesbitt/Carbon/pull/3045)
### [`v3.6.0`](https://redirect.github.com/briannesbitt/Carbon/releases/tag/3.6.0)
[Compare Source](https://redirect.github.com/briannesbitt/Carbon/compare/3.5.0...3.6.0)
Complete commits list: https://github.com/briannesbitt/Carbon/compare/3.5.0...3.6.0
Summary:
- Add support for `Month` and `WeekDay` enums in `is()` method [@kylekatarnls](https://redirect.github.com/kylekatarnls) [#3036](https://redirect.github.com/briannesbitt/Carbon/issues/3036)
- Build period with given timezone [@kylekatarnls](https://redirect.github.com/kylekatarnls) [#3041](https://redirect.github.com/briannesbitt/Carbon/issues/3041)
- Unserialize carbon interval created by v2 [@kylekatarnls](https://redirect.github.com/kylekatarnls) [#3042](https://redirect.github.com/briannesbitt/Carbon/issues/3042)
### [`v3.5.0`](https://redirect.github.com/briannesbitt/Carbon/releases/tag/3.5.0)
[Compare Source](https://redirect.github.com/briannesbitt/Carbon/compare/3.4.0...3.5.0)
Complete commits list: https://github.com/briannesbitt/Carbon/compare/3.4.0...3.5.0
Summary:
- Fix New Zealand daylight saving time format to pass hasFormat v3 [@Luoti](https://redirect.github.com/Luoti) [#3031](https://redirect.github.com/briannesbitt/Carbon/issues/3031)
- Split CarbonPeriod construction into multiple steps [@kylekatarnls](https://redirect.github.com/kylekatarnls) [#3024](https://redirect.github.com/briannesbitt/Carbon/issues/3024)
- Make CarbonPeriod compatible with PHP 8.4 [@kylekatarnls](https://redirect.github.com/kylekatarnls) [#3023](https://redirect.github.com/briannesbitt/Carbon/issues/3023)
- Fix diffInDays DST bug [@kylekatarnls](https://redirect.github.com/kylekatarnls) [#3026](https://redirect.github.com/briannesbitt/Carbon/issues/3026)
- Fix issue with is month check [@kylekatarnls](https://redirect.github.com/kylekatarnls) [#3033](https://redirect.github.com/briannesbitt/Carbon/issues/3033)
#### New Contributors
- [@Luoti](https://redirect.github.com/Luoti) made their first contribution in [#3031](https://redirect.github.com/briannesbitt/Carbon/issues/3031)
### [`v3.4.0`](https://redirect.github.com/briannesbitt/Carbon/releases/tag/3.4.0)
[Compare Source](https://redirect.github.com/briannesbitt/Carbon/compare/3.3.1...3.4.0)
Complete commits list: https://github.com/briannesbitt/Carbon/compare/3.3.1...3.4.0
Summary:
- Unserialize `CarbonInterval` from v2 [@kylekatarnls](https://redirect.github.com/kylekatarnls) [#3016](https://redirect.github.com/briannesbitt/Carbon/issues/3016)
- Remove overridden `EXCLUDE_START_DATE` constant [@iluuu1994](https://redirect.github.com/iluuu1994) [#3022](https://redirect.github.com/briannesbitt/Carbon/issues/3022)
#### New Contributors
- [@iluuu1994](https://redirect.github.com/iluuu1994) made their first contribution in [#3022](https://redirect.github.com/briannesbitt/Carbon/issues/3022)
### [`v3.3.1`](https://redirect.github.com/briannesbitt/Carbon/releases/tag/3.3.1)
[Compare Source](https://redirect.github.com/briannesbitt/Carbon/compare/3.3.0...3.3.1)
Complete commits list: https://github.com/briannesbitt/Carbon/compare/3.3.0...3.3.1
Summary:
- Fix days for `diffForHumans` for slovak [@edvordo](https://redirect.github.com/edvordo) [#3007](https://redirect.github.com/briannesbitt/Carbon/issues/3007)
- Support `%a` format [#3013](https://redirect.github.com/briannesbitt/Carbon/issues/3013)
- Fix translator and interval serialization [#3005](https://redirect.github.com/briannesbitt/Carbon/issues/3005)
- Fallback to default timezone for mocked now [#3014](https://redirect.github.com/briannesbitt/Carbon/issues/3014)
#### New Contributors
- [@edvordo](https://redirect.github.com/edvordo) made their first contribution in [#3007](https://redirect.github.com/briannesbitt/Carbon/issues/3007)
### [`v3.3.0`](https://redirect.github.com/briannesbitt/Carbon/releases/tag/3.3.0)
[Compare Source](https://redirect.github.com/briannesbitt/Carbon/compare/3.2.4...3.3.0)
Complete commits list: https://github.com/briannesbitt/Carbon/compare/3.2.4...3.3.0
Summary:
- Create a dedicated method for each step of the magic `__call` process [#2992](https://redirect.github.com/briannesbitt/Carbon/issues/2992)
- Update Bosnian translations [#2994](https://redirect.github.com/briannesbitt/Carbon/issues/2994)
- Handle `null` in `canBeCreatedFromFormat` [#2997](https://redirect.github.com/briannesbitt/Carbon/issues/2997)
- Allow carbon instance to be rounded by a `CarbonInterval`, which is not in default language [@kohlerdominik](https://redirect.github.com/kohlerdominik) [#2999](https://redirect.github.com/briannesbitt/Carbon/issues/2999)
- Update Slovak translations [@pkundis](https://redirect.github.com/pkundis) [#2995](https://redirect.github.com/briannesbitt/Carbon/issues/2995)
- Add `locale` and `translator` options to `forHumans` and `diffForHumans` [#3001](https://redirect.github.com/briannesbitt/Carbon/issues/3001)
#### New Contributors
- [@kohlerdominik](https://redirect.github.com/kohlerdominik) made their first contribution in [#2999](https://redirect.github.com/briannesbitt/Carbon/issues/2999)
- [@pkundis](https://redirect.github.com/pkundis) made their first contribution in [#2995](https://redirect.github.com/briannesbitt/Carbon/issues/2995)
### [`v3.2.4`](https://redirect.github.com/briannesbitt/Carbon/releases/tag/3.2.4)
[Compare Source](https://redirect.github.com/briannesbitt/Carbon/compare/3.2.3...3.2.4)
Complete commits list: https://github.com/briannesbitt/Carbon/compare/3.2.3...3.2.4
Summary:
- Re-allow macro with names starting with diff [#2991](https://redirect.github.com/briannesbitt/Carbon/issues/2991)
### [`v3.2.3`](https://redirect.github.com/briannesbitt/Carbon/releases/tag/3.2.3)
[Compare Source](https://redirect.github.com/briannesbitt/Carbon/compare/3.2.2...3.2.3)
Complete commits list: https://github.com/briannesbitt/Carbon/compare/3.2.2...3.2.3
Summary:
- Update Docs for `diffIn` methods that return float [@Nathanjms](https://redirect.github.com/Nathanjms) [#2988](https://redirect.github.com/briannesbitt/Carbon/issues/2988)
- Fix deprecation notice for diffInReal\* (prefer diffInUTC\*, or for any unit smaller than day, simply diffIn\*)
### [`v3.2.2`](https://redirect.github.com/briannesbitt/Carbon/releases/tag/3.2.2)
[Compare Source](https://redirect.github.com/briannesbitt/Carbon/compare/3.2.1...3.2.2)
Complete commits list: https://github.com/briannesbitt/Carbon/compare/3.2.1...3.2.2
Summary:
- Fallback to default parameters if period construction fails [#2987](https://redirect.github.com/briannesbitt/Carbon/issues/2987)
### [`v3.2.1`](https://redirect.github.com/briannesbitt/Carbon/releases/tag/3.2.1)
[Compare Source](https://redirect.github.com/briannesbitt/Carbon/compare/3.2.0...3.2.1)
Complete commits list: https://github.com/briannesbitt/Carbon/compare/3.2.0...3.2.1
Summary:
- Make start and end period properties correct at creation [#2984](https://redirect.github.com/briannesbitt/Carbon/issues/2984)
### [`v3.2.0`](https://redirect.github.com/briannesbitt/Carbon/releases/tag/3.2.0)
[Compare Source](https://redirect.github.com/briannesbitt/Carbon/compare/3.1.1...3.2.0)
Complete commits list: https://github.com/briannesbitt/Carbon/compare/3.1.1...3.2.0
Summary:
- Fix PHP 8.4 implicit nullability deprecation [@Ayesh](https://redirect.github.com/Ayesh) [#2969](https://redirect.github.com/briannesbitt/Carbon/issues/2969)
- Use current timezone if identical to compared value for diff [#2972](https://redirect.github.com/briannesbitt/Carbon/issues/2972)
- Correction of Months' Names In CKB language [#2973](https://redirect.github.com/briannesbitt/Carbon/issues/2973)
- Stop using start/end on interval if they are changed after creation [#2981](https://redirect.github.com/briannesbitt/Carbon/issues/2981)
- Deprecate Real diff in favor of UTC diff [#2975](https://redirect.github.com/briannesbitt/Carbon/issues/2975)
- Allow integer in createFromFormat() [#2983](https://redirect.github.com/briannesbitt/Carbon/issues/2983)
#### New Contributors
- [@kawan97](https://redirect.github.com/kawan97) made their first contribution in [#2973](https://redirect.github.com/briannesbitt/Carbon/issues/2973)
### [`v3.1.1`](https://redirect.github.com/briannesbitt/Carbon/releases/tag/3.1.1)
[Compare Source](https://redirect.github.com/briannesbitt/Carbon/compare/3.1.0...3.1.1)
Complete commits list: https://github.com/briannesbitt/Carbon/compare/3.1.0...3.1.1
Summary:
- Fixed Persian translation for before and after [#2963](https://redirect.github.com/briannesbitt/Carbon/issues/2963)
- Cleaned up region list and add warranty notice on methods relying on it [#2964](https://redirect.github.com/briannesbitt/Carbon/issues/2964)
- Fixed incomplete type for create method PHPDoc [#2962](https://redirect.github.com/briannesbitt/Carbon/issues/2962)
#### New Contributors
- [@shane-zeng](https://redirect.github.com/shane-zeng) made their first contribution in [#2962](https://redirect.github.com/briannesbitt/Carbon/issues/2962)
### [`v3.1.0`](https://redirect.github.com/briannesbitt/Carbon/releases/tag/3.1.0)
[Compare Source](https://redirect.github.com/briannesbitt/Carbon/compare/3.0.2...3.1.0)
Complete commits list: https://github.com/briannesbitt/Carbon/compare/3.0.2...3.1.0
Summary:
- Fixed Persian translation for before and after [#2941](https://redirect.github.com/briannesbitt/Carbon/issues/2941)
- Allowed to pass Unit enum for unit name [#2944](https://redirect.github.com/briannesbitt/Carbon/issues/2944)
- Updated PHPDoc [#2946](https://redirect.github.com/briannesbitt/Carbon/issues/2946)
- Removed suffix to Taiwan name [#2957](https://redirect.github.com/briannesbitt/Carbon/issues/2957)
#### New Contributors
- [@azim-kordpour](https://redirect.github.com/azim-kordpour) made their first contribution in [#2941](https://redirect.github.com/briannesbitt/Carbon/issues/2941)
### [`v3.0.2`](https://redirect.github.com/briannesbitt/Carbon/releases/tag/3.0.2)
[Compare Source](https://redirect.github.com/briannesbitt/Carbon/compare/3.0.1...3.0.2)
Complete commits list: https://github.com/briannesbitt/Carbon/compare/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](https://redirect.github.com/briannesbitt/Carbon/issues/2938)
### [`v3.0.1`](https://redirect.github.com/briannesbitt/Carbon/releases/tag/3.0.1)
[Compare Source](https://redirect.github.com/briannesbitt/Carbon/compare/3.0.0...3.0.1)
Complete commits list: https://github.com/briannesbitt/Carbon/compare/3.0.0...3.0.1
Summary:
- Allowed to remove macro by passing `null` value [#2935](https://redirect.github.com/briannesbitt/Carbon/issues/2935) [#2936](https://redirect.github.com/briannesbitt/Carbon/issues/2936) [#2937](https://redirect.github.com/briannesbitt/Carbon/issues/2937)
### [`v3.0.0`](https://redirect.github.com/briannesbitt/Carbon/releases/tag/3.0.0)
[Compare Source](https://redirect.github.com/briannesbitt/Carbon/compare/2.72.5...3.0.0)
Complete commits list: https://github.com/briannesbitt/Carbon/compare/2.72.2...3.0.0
Summary:
- Dropped PHP < 8.1 [#2810](https://redirect.github.com/briannesbitt/Carbon/issues/2810) [#2385](https://redirect.github.com/briannesbitt/Carbon/issues/2385) [#2346](https://redirect.github.com/briannesbitt/Carbon/issues/2346)
- Dropped Symfony < 4.4 [#2070](https://redirect.github.com/briannesbitt/Carbon/issues/2070)
- Added enums for week days, months and units [#2701](https://redirect.github.com/briannesbitt/Carbon/issues/2701)
- Added generic `unitOfUnit` and `unitsInUnit` getters [#2885](https://redirect.github.com/briannesbitt/Carbon/issues/2885)
- ⚠ Changed `diffIn*` methods to return `float` and relative diff (`$absolute = false` by default) [#2119](https://redirect.github.com/briannesbitt/Carbon/issues/2119)
- diffIn\* will use the floatDiffInReal\* behavior, all other variants will be removed
- Changed `CarbonPeriod` to extend `DatePeriod` [#1752](https://redirect.github.com/briannesbitt/Carbon/issues/1752)
- Changed `create*` method to return `null` instead of `false` [#2340](https://redirect.github.com/briannesbitt/Carbon/issues/2340)
- Changed `forHumans()` to show `0 seconds` y default for empty intervals [#2035](https://redirect.github.com/briannesbitt/Carbon/issues/2035)
- Changed `CarbonInterval` to be empty by default [#2079](https://redirect.github.com/briannesbitt/Carbon/issues/2079)
- Changed week methods to work with current global locale [#1967](https://redirect.github.com/briannesbitt/Carbon/issues/1967)
- Allowed to add and subtract decimal numbers of any unit [#2347](https://redirect.github.com/briannesbitt/Carbon/issues/2347) [#2519](https://redirect.github.com/briannesbitt/Carbon/issues/2519)
- Changed factories to have isolated settings, locale, testNow, macros and default timezone [#2345](https://redirect.github.com/briannesbitt/Carbon/issues/2345)
- Changed `$tz` with `$timezone` for named argument [#2925](https://redirect.github.com/briannesbitt/Carbon/issues/2925)
- Changed `parse()` return type to non-nullable `static` [#2931](https://redirect.github.com/briannesbitt/Carbon/issues/2931) — [@jnoordsij](https://redirect.github.com/jnoordsij)
- Fixed short year Ukrainian plural [#2923](https://redirect.github.com/briannesbitt/Carbon/issues/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](https://redirect.github.com/briannesbitt/Carbon/issues/2922)
Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
[ ] If you want to rebase/retry this PR, check this box
This PR contains the following updates:
^2.43
->^3.0
Release Notes
briannesbitt/Carbon (nesbot/carbon)
### [`v3.8.1`](https://redirect.github.com/briannesbitt/Carbon/releases/tag/3.8.1) [Compare Source](https://redirect.github.com/briannesbitt/Carbon/compare/3.8.0...3.8.1) Complete commits list: https://github.com/briannesbitt/Carbon/compare/3.8.0...3.8.1 Summary: - Consider absolute flag when comparing intervals by [@kylekatarnls](https://redirect.github.com/kylekatarnls) in [https://github.com/briannesbitt/Carbon/pull/3073](https://redirect.github.com/briannesbitt/Carbon/pull/3073) - Optimize `setUnitNoOverflow()` by [@takaram](https://redirect.github.com/takaram) in [https://github.com/briannesbitt/Carbon/pull/3071](https://redirect.github.com/briannesbitt/Carbon/pull/3071) - Fix timezone issue when add/sub with overflow by [@kylekatarnls](https://redirect.github.com/kylekatarnls) in [https://github.com/briannesbitt/Carbon/pull/3074](https://redirect.github.com/briannesbitt/Carbon/pull/3074) - Automate documentation update by [@kylekatarnls](https://redirect.github.com/kylekatarnls) in [https://github.com/briannesbitt/Carbon/pull/3079](https://redirect.github.com/briannesbitt/Carbon/pull/3079) - Parse microseconds as integer when making from specs by [@kylekatarnls](https://redirect.github.com/kylekatarnls) in [https://github.com/briannesbitt/Carbon/pull/3098](https://redirect.github.com/briannesbitt/Carbon/pull/3098) ### [`v3.8.0`](https://redirect.github.com/briannesbitt/Carbon/releases/tag/3.8.0) [Compare Source](https://redirect.github.com/briannesbitt/Carbon/compare/3.7.0...3.8.0) Complete commits list: https://github.com/briannesbitt/Carbon/compare/3.7.0...3.8.0 Summary: - Accept Unit enum in `startOf` and `endOf` by [@kylekatarnls](https://redirect.github.com/kylekatarnls) in [https://github.com/briannesbitt/Carbon/pull/3052](https://redirect.github.com/briannesbitt/Carbon/pull/3052) - Add test for German period translation by [@kylekatarnls](https://redirect.github.com/kylekatarnls) in [https://github.com/briannesbitt/Carbon/pull/3054](https://redirect.github.com/briannesbitt/Carbon/pull/3054) - Add tests for `CarbonInterval` and `CarbonPeriod` by [@kylekatarnls](https://redirect.github.com/kylekatarnls) in [https://github.com/briannesbitt/Carbon/pull/3055](https://redirect.github.com/briannesbitt/Carbon/pull/3055) - Add generic methods `isStartOfUnit` and `isEndOfUnit` by [@kylekatarnls](https://redirect.github.com/kylekatarnls) in [https://github.com/briannesbitt/Carbon/pull/3053](https://redirect.github.com/briannesbitt/Carbon/pull/3053) - Implement `isStartOf*` and `isEndOf*` for all units by [@kylekatarnls](https://redirect.github.com/kylekatarnls) in [https://github.com/briannesbitt/Carbon/pull/3056](https://redirect.github.com/briannesbitt/Carbon/pull/3056) - Update Spanish translations by [@DannyJJK](https://redirect.github.com/DannyJJK) in [https://github.com/briannesbitt/Carbon/pull/3060](https://redirect.github.com/briannesbitt/Carbon/pull/3060) - Optimize `getIntervalDayDiff` by [@kylekatarnls](https://redirect.github.com/kylekatarnls) in [https://github.com/briannesbitt/Carbon/pull/3061](https://redirect.github.com/briannesbitt/Carbon/pull/3061) - Optimize `diffInDays` by [@kylekatarnls](https://redirect.github.com/kylekatarnls) in [https://github.com/briannesbitt/Carbon/pull/3062](https://redirect.github.com/briannesbitt/Carbon/pull/3062) - Use arrow functions to `getIsoUnits` by [@kylekatarnls](https://redirect.github.com/kylekatarnls) in [https://github.com/briannesbitt/Carbon/pull/3064](https://redirect.github.com/briannesbitt/Carbon/pull/3064) - Simplify PHPStan extension by [@ondrejmirtes](https://redirect.github.com/ondrejmirtes) in [https://github.com/briannesbitt/Carbon/pull/3065](https://redirect.github.com/briannesbitt/Carbon/pull/3065) #### New Contributors - [@DannyJJK](https://redirect.github.com/DannyJJK) made their first contribution in [https://github.com/briannesbitt/Carbon/pull/3060](https://redirect.github.com/briannesbitt/Carbon/pull/3060) ### [`v3.7.0`](https://redirect.github.com/briannesbitt/Carbon/releases/tag/3.7.0) [Compare Source](https://redirect.github.com/briannesbitt/Carbon/compare/3.6.0...3.7.0) Complete commits list: https://github.com/briannesbitt/Carbon/compare/3.6.0...3.7.0 Summary: - Use static instead of `CarbonInterface` return type in doclocks by [@philbates35](https://redirect.github.com/philbates35) in [https://github.com/briannesbitt/Carbon/pull/3047](https://redirect.github.com/briannesbitt/Carbon/pull/3047) - Added period German translations by [@marcheffels](https://redirect.github.com/marcheffels) in [https://github.com/briannesbitt/Carbon/pull/3045](https://redirect.github.com/briannesbitt/Carbon/pull/3045) - Use pro rata to calculate decimal part of month/year diffs by [@kylekatarnls](https://redirect.github.com/kylekatarnls) in [https://github.com/briannesbitt/Carbon/pull/3051](https://redirect.github.com/briannesbitt/Carbon/pull/3051) - Add more `between()` / `isBetween()` tests by [@faissaloux](https://redirect.github.com/faissaloux) in [https://github.com/briannesbitt/Carbon/pull/3043](https://redirect.github.com/briannesbitt/Carbon/pull/3043) #### New Contributors - [@faissaloux](https://redirect.github.com/faissaloux) made their first contribution in [https://github.com/briannesbitt/Carbon/pull/3043](https://redirect.github.com/briannesbitt/Carbon/pull/3043) - [@philbates35](https://redirect.github.com/philbates35) made their first contribution in [https://github.com/briannesbitt/Carbon/pull/3047](https://redirect.github.com/briannesbitt/Carbon/pull/3047) - [@marcheffels](https://redirect.github.com/marcheffels) made their first contribution in [https://github.com/briannesbitt/Carbon/pull/3045](https://redirect.github.com/briannesbitt/Carbon/pull/3045) ### [`v3.6.0`](https://redirect.github.com/briannesbitt/Carbon/releases/tag/3.6.0) [Compare Source](https://redirect.github.com/briannesbitt/Carbon/compare/3.5.0...3.6.0) Complete commits list: https://github.com/briannesbitt/Carbon/compare/3.5.0...3.6.0 Summary: - Add support for `Month` and `WeekDay` enums in `is()` method [@kylekatarnls](https://redirect.github.com/kylekatarnls) [#3036](https://redirect.github.com/briannesbitt/Carbon/issues/3036) - Build period with given timezone [@kylekatarnls](https://redirect.github.com/kylekatarnls) [#3041](https://redirect.github.com/briannesbitt/Carbon/issues/3041) - Unserialize carbon interval created by v2 [@kylekatarnls](https://redirect.github.com/kylekatarnls) [#3042](https://redirect.github.com/briannesbitt/Carbon/issues/3042) ### [`v3.5.0`](https://redirect.github.com/briannesbitt/Carbon/releases/tag/3.5.0) [Compare Source](https://redirect.github.com/briannesbitt/Carbon/compare/3.4.0...3.5.0) Complete commits list: https://github.com/briannesbitt/Carbon/compare/3.4.0...3.5.0 Summary: - Fix New Zealand daylight saving time format to pass hasFormat v3 [@Luoti](https://redirect.github.com/Luoti) [#3031](https://redirect.github.com/briannesbitt/Carbon/issues/3031) - Split CarbonPeriod construction into multiple steps [@kylekatarnls](https://redirect.github.com/kylekatarnls) [#3024](https://redirect.github.com/briannesbitt/Carbon/issues/3024) - Make CarbonPeriod compatible with PHP 8.4 [@kylekatarnls](https://redirect.github.com/kylekatarnls) [#3023](https://redirect.github.com/briannesbitt/Carbon/issues/3023) - Fix diffInDays DST bug [@kylekatarnls](https://redirect.github.com/kylekatarnls) [#3026](https://redirect.github.com/briannesbitt/Carbon/issues/3026) - Fix issue with is month check [@kylekatarnls](https://redirect.github.com/kylekatarnls) [#3033](https://redirect.github.com/briannesbitt/Carbon/issues/3033) #### New Contributors - [@Luoti](https://redirect.github.com/Luoti) made their first contribution in [#3031](https://redirect.github.com/briannesbitt/Carbon/issues/3031) ### [`v3.4.0`](https://redirect.github.com/briannesbitt/Carbon/releases/tag/3.4.0) [Compare Source](https://redirect.github.com/briannesbitt/Carbon/compare/3.3.1...3.4.0) Complete commits list: https://github.com/briannesbitt/Carbon/compare/3.3.1...3.4.0 Summary: - Unserialize `CarbonInterval` from v2 [@kylekatarnls](https://redirect.github.com/kylekatarnls) [#3016](https://redirect.github.com/briannesbitt/Carbon/issues/3016) - Remove overridden `EXCLUDE_START_DATE` constant [@iluuu1994](https://redirect.github.com/iluuu1994) [#3022](https://redirect.github.com/briannesbitt/Carbon/issues/3022) #### New Contributors - [@iluuu1994](https://redirect.github.com/iluuu1994) made their first contribution in [#3022](https://redirect.github.com/briannesbitt/Carbon/issues/3022) ### [`v3.3.1`](https://redirect.github.com/briannesbitt/Carbon/releases/tag/3.3.1) [Compare Source](https://redirect.github.com/briannesbitt/Carbon/compare/3.3.0...3.3.1) Complete commits list: https://github.com/briannesbitt/Carbon/compare/3.3.0...3.3.1 Summary: - Fix days for `diffForHumans` for slovak [@edvordo](https://redirect.github.com/edvordo) [#3007](https://redirect.github.com/briannesbitt/Carbon/issues/3007) - Support `%a` format [#3013](https://redirect.github.com/briannesbitt/Carbon/issues/3013) - Fix translator and interval serialization [#3005](https://redirect.github.com/briannesbitt/Carbon/issues/3005) - Fallback to default timezone for mocked now [#3014](https://redirect.github.com/briannesbitt/Carbon/issues/3014) #### New Contributors - [@edvordo](https://redirect.github.com/edvordo) made their first contribution in [#3007](https://redirect.github.com/briannesbitt/Carbon/issues/3007) ### [`v3.3.0`](https://redirect.github.com/briannesbitt/Carbon/releases/tag/3.3.0) [Compare Source](https://redirect.github.com/briannesbitt/Carbon/compare/3.2.4...3.3.0) Complete commits list: https://github.com/briannesbitt/Carbon/compare/3.2.4...3.3.0 Summary: - Create a dedicated method for each step of the magic `__call` process [#2992](https://redirect.github.com/briannesbitt/Carbon/issues/2992) - Update Bosnian translations [#2994](https://redirect.github.com/briannesbitt/Carbon/issues/2994) - Handle `null` in `canBeCreatedFromFormat` [#2997](https://redirect.github.com/briannesbitt/Carbon/issues/2997) - Allow carbon instance to be rounded by a `CarbonInterval`, which is not in default language [@kohlerdominik](https://redirect.github.com/kohlerdominik) [#2999](https://redirect.github.com/briannesbitt/Carbon/issues/2999) - Update Slovak translations [@pkundis](https://redirect.github.com/pkundis) [#2995](https://redirect.github.com/briannesbitt/Carbon/issues/2995) - Add `locale` and `translator` options to `forHumans` and `diffForHumans` [#3001](https://redirect.github.com/briannesbitt/Carbon/issues/3001) #### New Contributors - [@kohlerdominik](https://redirect.github.com/kohlerdominik) made their first contribution in [#2999](https://redirect.github.com/briannesbitt/Carbon/issues/2999) - [@pkundis](https://redirect.github.com/pkundis) made their first contribution in [#2995](https://redirect.github.com/briannesbitt/Carbon/issues/2995) ### [`v3.2.4`](https://redirect.github.com/briannesbitt/Carbon/releases/tag/3.2.4) [Compare Source](https://redirect.github.com/briannesbitt/Carbon/compare/3.2.3...3.2.4) Complete commits list: https://github.com/briannesbitt/Carbon/compare/3.2.3...3.2.4 Summary: - Re-allow macro with names starting with diff [#2991](https://redirect.github.com/briannesbitt/Carbon/issues/2991) ### [`v3.2.3`](https://redirect.github.com/briannesbitt/Carbon/releases/tag/3.2.3) [Compare Source](https://redirect.github.com/briannesbitt/Carbon/compare/3.2.2...3.2.3) Complete commits list: https://github.com/briannesbitt/Carbon/compare/3.2.2...3.2.3 Summary: - Update Docs for `diffIn` methods that return float [@Nathanjms](https://redirect.github.com/Nathanjms) [#2988](https://redirect.github.com/briannesbitt/Carbon/issues/2988) - Fix deprecation notice for diffInReal\* (prefer diffInUTC\*, or for any unit smaller than day, simply diffIn\*) ### [`v3.2.2`](https://redirect.github.com/briannesbitt/Carbon/releases/tag/3.2.2) [Compare Source](https://redirect.github.com/briannesbitt/Carbon/compare/3.2.1...3.2.2) Complete commits list: https://github.com/briannesbitt/Carbon/compare/3.2.1...3.2.2 Summary: - Fallback to default parameters if period construction fails [#2987](https://redirect.github.com/briannesbitt/Carbon/issues/2987) ### [`v3.2.1`](https://redirect.github.com/briannesbitt/Carbon/releases/tag/3.2.1) [Compare Source](https://redirect.github.com/briannesbitt/Carbon/compare/3.2.0...3.2.1) Complete commits list: https://github.com/briannesbitt/Carbon/compare/3.2.0...3.2.1 Summary: - Make start and end period properties correct at creation [#2984](https://redirect.github.com/briannesbitt/Carbon/issues/2984) ### [`v3.2.0`](https://redirect.github.com/briannesbitt/Carbon/releases/tag/3.2.0) [Compare Source](https://redirect.github.com/briannesbitt/Carbon/compare/3.1.1...3.2.0) Complete commits list: https://github.com/briannesbitt/Carbon/compare/3.1.1...3.2.0 Summary: - Fix PHP 8.4 implicit nullability deprecation [@Ayesh](https://redirect.github.com/Ayesh) [#2969](https://redirect.github.com/briannesbitt/Carbon/issues/2969) - Use current timezone if identical to compared value for diff [#2972](https://redirect.github.com/briannesbitt/Carbon/issues/2972) - Correction of Months' Names In CKB language [#2973](https://redirect.github.com/briannesbitt/Carbon/issues/2973) - Stop using start/end on interval if they are changed after creation [#2981](https://redirect.github.com/briannesbitt/Carbon/issues/2981) - Deprecate Real diff in favor of UTC diff [#2975](https://redirect.github.com/briannesbitt/Carbon/issues/2975) - Allow integer in createFromFormat() [#2983](https://redirect.github.com/briannesbitt/Carbon/issues/2983) #### New Contributors - [@kawan97](https://redirect.github.com/kawan97) made their first contribution in [#2973](https://redirect.github.com/briannesbitt/Carbon/issues/2973) ### [`v3.1.1`](https://redirect.github.com/briannesbitt/Carbon/releases/tag/3.1.1) [Compare Source](https://redirect.github.com/briannesbitt/Carbon/compare/3.1.0...3.1.1) Complete commits list: https://github.com/briannesbitt/Carbon/compare/3.1.0...3.1.1 Summary: - Fixed Persian translation for before and after [#2963](https://redirect.github.com/briannesbitt/Carbon/issues/2963) - Cleaned up region list and add warranty notice on methods relying on it [#2964](https://redirect.github.com/briannesbitt/Carbon/issues/2964) - Fixed incomplete type for create method PHPDoc [#2962](https://redirect.github.com/briannesbitt/Carbon/issues/2962) #### New Contributors - [@shane-zeng](https://redirect.github.com/shane-zeng) made their first contribution in [#2962](https://redirect.github.com/briannesbitt/Carbon/issues/2962) ### [`v3.1.0`](https://redirect.github.com/briannesbitt/Carbon/releases/tag/3.1.0) [Compare Source](https://redirect.github.com/briannesbitt/Carbon/compare/3.0.2...3.1.0) Complete commits list: https://github.com/briannesbitt/Carbon/compare/3.0.2...3.1.0 Summary: - Fixed Persian translation for before and after [#2941](https://redirect.github.com/briannesbitt/Carbon/issues/2941) - Allowed to pass Unit enum for unit name [#2944](https://redirect.github.com/briannesbitt/Carbon/issues/2944) - Updated PHPDoc [#2946](https://redirect.github.com/briannesbitt/Carbon/issues/2946) - Removed suffix to Taiwan name [#2957](https://redirect.github.com/briannesbitt/Carbon/issues/2957) #### New Contributors - [@azim-kordpour](https://redirect.github.com/azim-kordpour) made their first contribution in [#2941](https://redirect.github.com/briannesbitt/Carbon/issues/2941) ### [`v3.0.2`](https://redirect.github.com/briannesbitt/Carbon/releases/tag/3.0.2) [Compare Source](https://redirect.github.com/briannesbitt/Carbon/compare/3.0.1...3.0.2) Complete commits list: https://github.com/briannesbitt/Carbon/compare/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](https://redirect.github.com/briannesbitt/Carbon/issues/2938) ### [`v3.0.1`](https://redirect.github.com/briannesbitt/Carbon/releases/tag/3.0.1) [Compare Source](https://redirect.github.com/briannesbitt/Carbon/compare/3.0.0...3.0.1) Complete commits list: https://github.com/briannesbitt/Carbon/compare/3.0.0...3.0.1 Summary: - Allowed to remove macro by passing `null` value [#2935](https://redirect.github.com/briannesbitt/Carbon/issues/2935) [#2936](https://redirect.github.com/briannesbitt/Carbon/issues/2936) [#2937](https://redirect.github.com/briannesbitt/Carbon/issues/2937) ### [`v3.0.0`](https://redirect.github.com/briannesbitt/Carbon/releases/tag/3.0.0) [Compare Source](https://redirect.github.com/briannesbitt/Carbon/compare/2.72.5...3.0.0) Complete commits list: https://github.com/briannesbitt/Carbon/compare/2.72.2...3.0.0 Summary: - Dropped PHP < 8.1 [#2810](https://redirect.github.com/briannesbitt/Carbon/issues/2810) [#2385](https://redirect.github.com/briannesbitt/Carbon/issues/2385) [#2346](https://redirect.github.com/briannesbitt/Carbon/issues/2346) - Dropped Symfony < 4.4 [#2070](https://redirect.github.com/briannesbitt/Carbon/issues/2070) - Added enums for week days, months and units [#2701](https://redirect.github.com/briannesbitt/Carbon/issues/2701) - Added generic `unitOfUnit` and `unitsInUnit` getters [#2885](https://redirect.github.com/briannesbitt/Carbon/issues/2885) - ⚠ Changed `diffIn*` methods to return `float` and relative diff (`$absolute = false` by default) [#2119](https://redirect.github.com/briannesbitt/Carbon/issues/2119) - diffIn\* will use the floatDiffInReal\* behavior, all other variants will be removed - Changed `CarbonPeriod` to extend `DatePeriod` [#1752](https://redirect.github.com/briannesbitt/Carbon/issues/1752) - Changed `create*` method to return `null` instead of `false` [#2340](https://redirect.github.com/briannesbitt/Carbon/issues/2340) - Changed `forHumans()` to show `0 seconds` y default for empty intervals [#2035](https://redirect.github.com/briannesbitt/Carbon/issues/2035) - Changed `CarbonInterval` to be empty by default [#2079](https://redirect.github.com/briannesbitt/Carbon/issues/2079) - Changed week methods to work with current global locale [#1967](https://redirect.github.com/briannesbitt/Carbon/issues/1967) - Allowed to add and subtract decimal numbers of any unit [#2347](https://redirect.github.com/briannesbitt/Carbon/issues/2347) [#2519](https://redirect.github.com/briannesbitt/Carbon/issues/2519) - Changed factories to have isolated settings, locale, testNow, macros and default timezone [#2345](https://redirect.github.com/briannesbitt/Carbon/issues/2345) - Changed `$tz` with `$timezone` for named argument [#2925](https://redirect.github.com/briannesbitt/Carbon/issues/2925) - Changed `parse()` return type to non-nullable `static` [#2931](https://redirect.github.com/briannesbitt/Carbon/issues/2931) — [@jnoordsij](https://redirect.github.com/jnoordsij) - Fixed short year Ukrainian plural [#2923](https://redirect.github.com/briannesbitt/Carbon/issues/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](https://redirect.github.com/briannesbitt/Carbon/issues/2922)Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR has been generated by Renovate Bot.