Closed kylekatarnls closed 5 years ago
Tagged as 1.4.3: https://github.com/spatie/period/releases/tag/1.4.3
I PR it to 2.0 so it's not in 1.4.3: https://github.com/spatie/period/compare/1.4.2...1.4.3
For now in 1.4.3, it's optimized as length() is always returned as days count: https://github.com/spatie/period/blob/1.4.3/src/Period.php#L138
But of course it does not match iterator_count
as it ignore the precision mask.
I would say, as a breaking change, this should not be in 1.x.
Oh, you're right.. My bad. No problem though, we'll merge it in when 2.0 arrives
Thanks!