Skip to content

0.4.0

Compare
Choose a tag to compare
@BenMorel BenMorel released this 23 Dec 00:04
· 184 commits to master since this release

💥 Breaking changes

  • Minimum PHP version is now 7.4
  • TimeZoneOffset does not allow seconds anymore (#35):
    • TimeZoneOffset::of()'s $seconds parameter is removed
    • TimeZoneOffset::ofTotalSeconds() now throws if the number of seconds is not a multiple of 60
    • IsoParsers::timeZoneOffset() does not allow seconds in timezone offset anymore; this affects not only TimeZoneOffset:parse() but also ZonedDateTime::parse()

🔧 Fix

  • Fixed return type of TimeZoneRegion::parse() (#38) Thanks to @adrianguenter

New methods

  • Period::fromDateInterval() converts a native DateInterval object to Period