Complete commits list: 2.68.1...2.69.0
Summary:
- Added #2813 Implement
Psr\Clock\ClockInterface
— @kylekatarnls - Fixed #2823 Make createFromFormat work the same with mocked time — @kylekatarnls
- Fixed #2822 Exclude locale from
getSetting()
if set by default — @kylekatarnls - Fixed #2819 Carbon constructor mutates passed DateTime argument — @kylekatarnls
- Fixed #2829 Fix dual for month in Slovenian language — @alesf
- Fixed #2825 Change before Malay translation to "sebelum" — @kylekatarnls
- Fixed #2155 #2160 Dedupe the diff methods set — @kylekatarnls
Breaking chances (for edge-case usages):
⚠️ getSetting()
now longer return the locale when it's unchanged default, so you can distinguish between explicit 'en'
which has Sunday as start of week vs. null
which is English but with Monday as start of week. To get the previous behavior you can use:
$settings = array_merge(['locale' => 'en'], $date->getSettings());