Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
There's an error, if you pass an empty PeriodCollection to `overlap()` or `subtract()` method since there's no check whether the collection actually has any values. Steps to reproduce: ```php $period = Period::make('2021-12-31', '2022-01-01'); $collection = new PeriodCollection; $period->overlap(... $collection); // Throws ErrorException "Undefined array key 0" $period->subtract(... $collection); // Throws ErrorException "Undefined array key 0" ``` P.S. Thank you for your products and Merry Christmas! :)
- Loading branch information