Skip to content

0.7.0

Latest
Compare
Choose a tag to compare
@BenMorel BenMorel released this 23 Jun 14:35
· 4 commits to master since this release

πŸ’₯ Breaking changes

  • DayOfWeek:
    • deprecated method of() has been removed, use DayOfWeek::from() instead
    • the following deprecated methods have been removed, use enum values instead:
      • DayOfWeek::monday() β†’ DayOfWeek::MONDAY
      • DayOfWeek::tuesday() β†’ DayOfWeek::TUESDAY
      • DayOfWeek::wednesday() β†’ DayOfWeek::WEDNESDAY
      • DayOfWeek::thursday() β†’ DayOfWeek::THURSDAY
      • DayOfWeek::friday() β†’ DayOfWeek::FRIDAY
      • DayOfWeek::saturday() β†’ DayOfWeek::SATURDAY
      • DayOfWeek::sunday() β†’ DayOfWeek::SUNDAY
    • deprecated method getValue() has been removed, use $dayOfWeek->value instead
    • deprecated method is() has been removed, compare values with $dayOfWeek or $dayOfWeek->value instead
    • deprecated method isEqualTo() has been removed, use strict equality === between DayOfWeek instances instead.
  • DefaultClock:
    • deprecated method travel() has been removed, use travelTo() instead
  • LocalDate:
    • deprecated method getDay() has been removed, use getDayOfMonth() instead
    • getMonth() now returns a Month enum; use getMonthValue() if you want the month number
  • LocalDateTime:
    • deprecated method getDay() has been removed, use getDayOfMonth() instead
    • getMonth() now returns a Month enum; use getMonthValue() if you want the month number
  • Month:
    • deprecated method of() has been removed, use Month::from() instead
    • deprecated method getAll() has been removed, use Month::cases() instead
    • deprecated method getValue() has been removed, use $month->value instead
    • deprecated method is() has been removed, compare values with $month or $month->value instead
    • deprecated method isEqualTo() has been removed, use strict equality === between Month instances instead
  • MonthDay:
    • deprecated method getDay() has been removed, use getDayOfMonth() instead
    • getMonth() now returns a Month enum; use getMonthValue() if you want the month number
  • YearMonth:
    • getMonth() now returns a Month enum; use getMonthValue() if you want the month number
  • ZonedDateTime:
    • deprecated method getDay() has been removed, use getDayOfMonth() instead
    • getMonth() now returns a Month enum; use getMonthValue() if you want the month number

πŸ”§ Improvements

  • Methods returning int are now type-annotated with int ranges