Replaced usage of deprecated methods in DateRange class

This commit is contained in:
Alejandro Celaya
2022-08-04 11:27:33 +02:00
parent ba517eeeb5
commit 7acf27dd38
8 changed files with 53 additions and 51 deletions

View File

@@ -19,7 +19,7 @@ final class VisitsParams extends AbstractInfinitePaginableListParams
public readonly bool $excludeBots = false,
) {
parent::__construct($page, $itemsPerPage);
$this->dateRange = $dateRange ?? DateRange::emptyInstance();
$this->dateRange = $dateRange ?? DateRange::allTime();
}
public static function fromRawData(array $query): self