Return type of Spatie\Period\PeriodCollection::next() should either be compatible with Iterator::next(): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /var/www/html/vendor/spatie/period/src/IterableImplementation.php
Fix errors when using PHP 8.1.0 like: