@@ -367,9 +367,9 @@ |
||
367 | 367 | |
368 | 368 | private function filterByDate(QueryBuilder $queryBuilder, ?DateTime $startDate, ?DateTime $endDate): QueryBuilder |
369 | 369 | { |
370 | - if (null !== $startDate && null !== $endDate && $endDate < $startDate) { |
|
371 | - throw new \InvalidArgumentException('$endDate must be greater than $startDate.'); |
|
372 | - } |
|
370 | + if (null !== $startDate && null !== $endDate && $endDate < $startDate) { |
|
371 | + throw new \InvalidArgumentException('$endDate must be greater than $startDate.'); |
|
372 | + } |
|
373 | 373 | |
374 | 374 | if (null !== $startDate) { |
375 | 375 | $queryBuilder |