Duration for PHP v4.0 Release Notes

Release Date: 2019-09-03 // over 4 years ago
    • PHP 7.3 is now the minimum required version.
    • ๐Ÿ‘ 0, null, false, true are now supported values as in that they result in Duration::none() (PT0S).
    • ๐Ÿ“œ An InvalidDuration error will be thrown if a value is given without a unit or if the given value cannot be parsed.
    • toIntervalSpec() did more than it needed to do. Instead of formatting the current value the spec itself is now returned.