From d3ba8cdd9873142ab25555c79b4e69589f5abe01 Mon Sep 17 00:00:00 2001 From: Holger Veltrup Date: Mon, 13 May 2024 12:03:50 +0200 Subject: [PATCH] refactore: allow null DateTime arguments for AbsoluteDateRangeFacet DTO --- src/Dto/Search/Query/Facet/AbsoluteDateRangeFacet.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Dto/Search/Query/Facet/AbsoluteDateRangeFacet.php b/src/Dto/Search/Query/Facet/AbsoluteDateRangeFacet.php index d7da3da..dce9d9e 100644 --- a/src/Dto/Search/Query/Facet/AbsoluteDateRangeFacet.php +++ b/src/Dto/Search/Query/Facet/AbsoluteDateRangeFacet.php @@ -17,8 +17,8 @@ class AbsoluteDateRangeFacet extends Facet */ public function __construct( string $key, - public readonly DateTime $from, - public readonly DateTime $to, + public readonly ?DateTime $from, + public readonly ?DateTime $to, public readonly ?DateInterval $gap, array $excludeFilter = [] ) {