diff --git a/src/Filter/DateRange.php b/src/Filter/DateRange.php index ed38d2bc8d2350f1b8b1e784b57cdc9eb4086816..0f103847a2089c4a2efaaeeab776c9a72c6afbd2 100644 --- a/src/Filter/DateRange.php +++ b/src/Filter/DateRange.php @@ -24,7 +24,7 @@ final class DateRange extends HttpFilter $fromDate = \DateTimeImmutable::createFromFormat('Y-m-d', $fromDate ?? ''); $toDate = \DateTimeImmutable::createFromFormat('Y-m-d', $toDate ?? ''); - if (! $fromDate && ! $toDate){ + if (! $fromDate && ! $toDate) { throw new FilterParameterValueIsNullException($this->field); }