Releases: briannesbitt/Carbon
Releases · briannesbitt/Carbon
2.65.0
Complete commits list: 2.64.1...2.65.0
Summary:
- Added #2712 getDaysFromStartOfWeek and setDaysFromStartOfWeek methods —@kylekatarnls
- Added #2731 Provide basic completion assistance in PhpStorm —@wbars
- Added #2750 Add
isLongIsoYear()
method —@kylekatarnls - Fixed #2742 Updated Polish translation — @maciek-szn
- Fixed #2740 Fix Serbian pluralization — @kylekatarnls
- Fixed #2729 Add allowed type to create method — @driesvints
- Fixed #2727 Fix docs of milliseconds field (
CarbonInterval
) — @scrummer - Fixed #2718 Fix doc-block — @aivchen
- Fixed #2721 Update PHPDoc for magic methods — @kylekatarnls
- Fixed #2719 Translate escaped word in
createFromLocaleFormat()
— @kylekatarnls - Fixed #2745 Enforce
$skip
array type — @kylekatarnls - Improved #2735 Update Serbian tests — @perisicnikola37
- Improved #2726 Add cast test for
addRealHours()
—@kylekatarnls - Improved #2729 Add allowed type to create method — @driesvints
- Improved #2734 Add PHP 8.3 to GitHub Actions —@kylekatarnls
New Contributors
- @aivchen made their first contribution in #2718
- @scrummer made their first contribution in #2727
- @wbars made their first contribution in #2731
- @perisicnikola37 made their first contribution in #2735
- @maciek-szn made their first contribution in #2742
2.64.1
Complete commits list: 2.64.0...2.64.1
Summary:
What's Changed
- Fixed #2744 passing
$skip
parameter as string indiffForHumans()
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
2.63.0
Complete commits list: 2.62.1...2.63.0
Summary:
- Added #2682 Added case 'yr', 'yrs' and 'mos' alias in CarbonInterval string parser — @OmnibladeZ
- Added #2693 Translate ordinal word when parsing
- Improved #2677 Print original params in Carbon\Traits\Units::addUnit error message — @costasovo
- Fixed #2689 Update SL language ("2 years ago" translation) — @Mihc3
- Fixed #2683 Allow lowercase macro-format per-language customization
- Fixed #2665 Prevent floor overflow
- Fixed #2667 Prevent ceil precision loss
- Fixed #2669 Harmonize toStringFormat config
- Fixed #2670 Distinguish months and months_standalone in Latvian
- Fixed #2681 Fix float unit tests
- Fixed #2687 Fix weekday setter
- Fixed #2688 Fix PHPStan macro arguments check
- Fixed #2684 Update Laravel compatibility GH workflow
New Contributors
- @costasovo made their first contribution in #2677
- @OmnibladeZ made their first contribution in #2682
- @Mihc3 made their first contribution in #2689
- @gam04 made their first contribution in #2693
2.62.1
Complete commits list: 2.62.0...2.62.1
Summary:
What's Changed
- Fixed #2663 PHP 8.2 issue with false for lastErrors — @driesvints
2.62.0
Complete commits list: 2.61.0...2.62.0
Summary:
- Added #2653 toFormattedDayDateString() 'Day, Month Day, Year' — @Axum25
- Added #2655 Allow float numbers in cascade factors — @kylekatarnls
New Contributors
2.61.0
Complete commits list: 2.60.0...2.61.0
Summary:
- Added #2651 options for microseconds on
getDateIntervalSpec()
— @Nakatox - Added #2649 Allow comparison with strings — @kylekatarnls
- Added #2644 PHP 8.2 support — @kylekatarnls
New Contributors
2.60.0
Complete commits list: 2.59.1...2.60.0
Summary:
- Updated #2647 Sorani language (ckb locale) — @swarakaka
- Updated #2646 Align Kurmanji language with CLDR data (ku locale) — Unicode
- Fixed #2640 Fixes updating locale when app instance changes in Octane — @nunomaduro
- Fixed #2645 Make Laravel ServiceProvider more resilient — @kylekatarnls
- Removed #2641 false positives fixed by PHPStan — @kylekatarnls
New Contributors
- @nunomaduro made their first contribution in #2640
2.59.1
Complete commits list: 2.59.0...2.59.1
Summary:
- Fixed #2632 Php 8.2 utf8_encode deprecation — @erikn69
- Fixed #2635 regression for MacroExtension — @evertharmeling
New Contributors
- @erikn69 made their first contribution in #2632
- @evertharmeling made their first contribution in #2635
2.59.0
Complete commits list: 2.58.0...2.59.0
Summary:
- Added #2631 Support for PHPStan 1.7.14 — @kylekatarnls
- Added #2616 Exception for endless periods — @kylekatarnls
- Fixed #2595 Update Slovak translations — @AlterwebStudio
- Fixed #2614 Months translations in Czech — @waclaw66
- Fixed #2607 Improved typehint for year of
CarbonInterval
— @kang8 - Fixed #2622 Replaced deprecated
${var}
string interpolation patterns (PHP 8.2) — @jnoordsij - Refactored #2612 Simplify some regex — @lucasmichot
- Refactored #2608 Use expectExceptionObject assertion for consistency — @lucasmichot