Closed Lednick closed 5 years ago
Can you share the concrete values of $dateFrom
, $dateTo
, $compareDateFrom
and $compareDateTo
?
$dateFrom = 2019-01-08 12:32:49.0 UTC (+00:00) $dateTo = 2019-01-31 12:32:49.0 UTC (+00:00) $compareDateFrom = 2019-03-09 10:15:52.0 UTC (+00:00) $compareDateTo = 2019-06-22 10:15:52.0 UTC (+00:00)
Fixed in 0.4.1: https://github.com/spatie/period/releases/tag/0.4.1
When I try to use PeriodCollection's function isEmpty this return false, but when i dump
I have that:
So method isEmpty works not right, because array only with one null element.
Here in my code:
Can you fix this issue?