Skip to content

Commit

Permalink
refactore: allow null DateTime arguments for AbsoluteDateRangeFacet DTO
Browse files Browse the repository at this point in the history
  • Loading branch information
sitepark-veltrup committed May 13, 2024
1 parent 680231f commit d3ba8cd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Dto/Search/Query/Facet/AbsoluteDateRangeFacet.php
Original file line number Diff line number Diff line change
Expand Up @@ -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 = []
) {
Expand Down

0 comments on commit d3ba8cd

Please sign in to comment.