$period = Period::make('2022-11-16 21:00:00.0 UTC (+00:00)', '2022-11-16 23:00:00.0 UTC (+00:00)', Precision::MINUTE()); (the start and ends are actually carbon times, but ive made them strings for simplification)
$dayPeriods = $dayPeriods->add($period);
//period two
$period = Period::make('2022-11-16 22:00:00.0 UTC (+00:00)', '2022-11-16 23:00:00.0 UTC (+00:00)', Precision::MINUTE());
$dayPeriods = $dayPeriods->add($period);
//period three
$period = Period::make('2022-11-16 22:00:00.0 UTC (+00:00)', '2022-11-16 23:00:00.0 UTC (+00:00)', Precision::MINUTE());
$dayPeriods = $dayPeriods->add($period);
when I run $overlap = $dayPeriods->overlapAll();
The $overlap is simply the same period collection with exactly the same 3 periods I've defined, it doesn't return the overlaps between the 3 periods inside the period collection.
I've created the following PeriodCollection:
$dayPeriods = new PeriodCollection();
//period one
//period two
//period three
when I run $overlap = $dayPeriods->overlapAll();
The $overlap is simply the same period collection with exactly the same 3 periods I've defined, it doesn't return the overlaps between the 3 periods inside the period collection.
Any idea why this is happening?