What's Changed
- Add
plus()andminus()methods by @kylekatarnls in CarbonPHP/carbon#120 - Implement
withNegativesoption toCarbonInterval::spec()by @kylekatarnls in CarbonPHP/carbon#111 - Fix scientist notation issue with small numbers by @kylekatarnls in CarbonPHP/carbon#105
- Create
CarbonInterval::monthWithAnchorDay()by @kylekatarnls in CarbonPHP/carbon#106 - Add
anchorDayparameter to methods that can overflow by @kylekatarnls in CarbonPHP/carbon#109 - Allow to set component value on immutable dates (resulting in a copy) by @kylekatarnls in CarbonPHP/carbon#116
- Invert interval when converting it to period with inverted start and end by @kylekatarnls in CarbonPHP/carbon#48
- Fix default timezone when using
createFromFormatwith a test-now by @kylekatarnls in CarbonPHP/carbon#118 CarbonPHP/carbon#121 - Fix
->endproperty not updating aftersetEndDate()on PHP 8.2+ by @Abdu-Ahmed in #3333 - Fix incorrect casing of
ucFirst()inphpdoc.phpby @Soean in #3337 - Remove unneeded
instanceof selfby @kylekatarnls in CarbonPHP/carbon#102 - Cleanup dead code by @kylekatarnls in CarbonPHP/carbon#108
- Fix negative specs handling by @kylekatarnls in CarbonPHP/carbon#112
- Fix minor wording issues in contributing guide by @maprokopiou in CarbonPHP/carbon#114
- Improve deprecation message for setTestNow() by @kylekatarnls in CarbonPHP/carbon#119
- Fix messages memory leak by @kylekatarnls in CarbonPHP/carbon#122
- Narrow getter/setter return types via conditional return by @alies-dev in #3331
New Contributors
- @maprokopiou made their first contribution in CarbonPHP/carbon#114
- @alies-dev made their first contribution in #3331
- @Abdu-Ahmed made their first contribution in #3333
- @Soean made their first contribution in #3337
Full Changelog: 3.11.4...3.12.0