Carbon v2.38.0 Release Notes

Release Date: 2020-08-04 // over 3 years ago
  • Complete commits list: 2.37.0...2.38.0

    🍱 ⚠️ Since 2.38.0 CarbonInterval ->copy() method preserve the ->invert flag of the interval.

    Summary:

    • 🛠 #2144 Fixed total() result and total* properties when the interval contains negative values
    • 🛠 #2144 Fixed cascade() result and when the interval contains negative values
    • #2144 Added daysExcludedWeeks setter
    • 👍 #2144 Added support for negative values in unit constructors such as CarbonInterval::years(), CarbonInterval::months() etc.
    • #2144 Allowed getFactor() to get multiple-steps factors