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