Releases: CarbonPHP/carbon
Releases · CarbonPHP/carbon
Release list
3.13.0
What's Changed
- Add year interval/period with overflow modes by @kylekatarnls in #127
- Allow to load custom locales even when mute-operator is bypassed by @kylekatarnls in #128
- Implement
overflowandanchorDayparameters formonth(),setMonth(),year()andsetYear()by @kylekatarnls in #129
Full Changelog: 3.12.3...3.13.0
3.12.3
What's Changed
- Improve
plus()andminus()method by @kylekatarnls in #126- Add
$anchorDayparameter andOverflowModefor$overflowparameter - Add float support for
$weeks,$days,$hours,$minutes,$secondsand$microseconds - Use
__callso sub-classes are allowed to override those methods with divergent signatures
- Add
Full Changelog: 3.12.2...3.12.3
3.12.2
What's Changed
- Add
plus()andminus()methods by @kylekatarnls in #124
Full Changelog: 3.12.1...3.12.2
3.12.1
What's Changed
- Remove
plus()andminus()methods by @kylekatarnls in #123
Full Changelog: 3.12.0...3.12.1
3.12.0
What's Changed
- Add
plus()andminus()methods by @kylekatarnls in #120 - Implement
withNegativesoption toCarbonInterval::spec()by @kylekatarnls in #111 - Fix scientist notation issue with small numbers by @kylekatarnls in #105
- Create
CarbonInterval::monthWithAnchorDay()by @kylekatarnls in #106 - Add
anchorDayparameter to methods that can overflow by @kylekatarnls in #109 - Allow to set component value on immutable dates (resulting in a copy) by @kylekatarnls in #116
- Invert interval when converting it to period with inverted start and end by @kylekatarnls in #48
- Fix default timezone when using
createFromFormatwith a test-now by @kylekatarnls in #118 #121 - Fix
->endproperty not updating aftersetEndDate()on PHP 8.2+ by @Abdu-Ahmed in briannesbitt/Carbon#3333 - Fix incorrect casing of
ucFirst()inphpdoc.phpby @Soean in briannesbitt/Carbon#3337 - Remove unneeded
instanceof selfby @kylekatarnls in #102 - Cleanup dead code by @kylekatarnls in #108
- Fix negative specs handling by @kylekatarnls in #112
- Fix minor wording issues in contributing guide by @maprokopiou in #114
- Improve deprecation message for setTestNow() by @kylekatarnls in #119
- Fix messages memory leak by @kylekatarnls in #122
- Narrow getter/setter return types via conditional return by @alies-dev in briannesbitt/Carbon#3331
New Contributors
- @maprokopiou made their first contribution in #114
- @alies-dev made their first contribution in briannesbitt/Carbon#3331
- @Abdu-Ahmed made their first contribution in briannesbitt/Carbon#3333
- @Soean made their first contribution in briannesbitt/Carbon#3337
Full Changelog: briannesbitt/Carbon@3.11.4...3.12.0
3.11.4
What's Changed
- Help PHPStan discover UnprotectedDatePeriod by @kylekatarnls in #100
Full Changelog: 3.11.3...3.11.4
3.11.3
3.11.2
What's Changed
- Lazy loading of mixin class methods by @kylekatarnls in #91
Full Changelog: 3.11.1...3.11.2
3.11.1
What's Changed
- Get last errors to return false by @MizouziE in #70
- Remove "ς" for singular Greek year and month accusative form by @kylekatarnls in #75
- Create dedicated interfaces for constants by @kylekatarnls in #76
- Fix: isoFormat('MMMM') for sl_SI not working by @hoRacy in #65
- Add test for parse 0 and empty string by @kylekatarnls in #62
- Drop (dead) code for PHP 7 by @kylekatarnls in #59
- Fix month/week/unit translation using fallback locale while main locale has it set by @kylekatarnls in #77
- Fix English meridiem when another locale is used as fallback by @kylekatarnls in #78
- Don't clone when casting from immutable to immutable by @kylekatarnls in #85
- Fix Yiddish translation for time difference by @yisraeldov in briannesbitt/Carbon#3273
- Fix
withTestNow()to restore previous test state instead of clearing it by @kyryl-bogach in briannesbitt/Carbon#3283
New Contributors
- @MizouziE made their first contribution in #70
- @hoRacy made their first contribution in #65
- @yisraeldov made their first contribution in briannesbitt/Carbon#3273
- @kyryl-bogach made their first contribution in briannesbitt/Carbon#3283
Full Changelog: 3.11.0...3.11.1
3.11.0
Complete commits list: 3.10.3...3.11.0
Summary:
- Allow symfony 8 by @Chris53897 in #73
- Micro-optimization for standalone months translation by @kylekatarnls in #68
- Support passing Unit enums to sub method and update type-hints by @hackel in briannesbitt/Carbon#3250
- Align Bangla locale files with English reference strings by @imhayatunnabi in briannesbitt/Carbon#3257
- Comprehensive Yiddish (yi_US) locale update by @BenyominMandel in briannesbitt/Carbon#3267
New Contributors
- @imhayatunnabi made their first contribution in briannesbitt/Carbon#3257
- @BenyominMandel made their first contribution in briannesbitt/Carbon#3267