2.64.0
Complete commits list: 2.63.0...2.64.0
Summary:
- Added #2712 getDaysFromStartOfWeek and setDaysFromStartOfWeek methods —@kylekatarnls
- Added #2709 Allow named parameters in magic calls —@kylekatarnls
- Improved #2697 diffInMonths calculation — @kylekatarnls
- Fixed #2704 Use static reflection to determine whether class is
CarbonInstance
— @axlon - Fixed #2705 DBAL dependency vulnerability CVE-2021-43608 — @allanlaal
- Fixed #2707 Keep days interval from diff — @kylekatarnls
- Fixed #2711 Fix docblock — @michaelnabil230
⚠️ Breaking change
- To support named parameters in magic calls which is now a standard feature of PHP 8, we had to change the output of passing explicitly
null
in add/sub methods (addMonths, subDays, addSeconds, etc.) For instanceaddMonths(null)
now adds 0 months while it previously added 1 month.addMonths()
still add 1 month. Note that both usages are strongly discouraged, it's highly recommended to always pass a numeric value to those methods explicitly to have unambiguous expectations.
New Contributors
- @axlon made their first contribution in #2704
- @allanlaal made their first contribution in #2705
- @michaelnabil230 made their first contribution in #2711