Skip to content

Commit 251b626

Browse files
committed
3879: Added null check
1 parent 980e3b8 commit 251b626

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/Api/Filter/ElasticSearch/DateRangeFilter.php

+3
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,9 @@ public function getDescription(string $resourceClass): array
8282

8383
private function getElasticSearchQueryRanges($property, $filter): array
8484
{
85+
if (null === $this->properties) {
86+
throw new \InvalidArgumentException('The property must be defined in the filter.');
87+
}
8588
if (!\is_array($filter)) {
8689
$fallbackOperator = $this->properties[$property];
8790
$operator = $this->config[$fallbackOperator]->limit;

0 commit comments

Comments
 (0)