We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 980e3b8 commit 251b626Copy full SHA for 251b626
src/Api/Filter/ElasticSearch/DateRangeFilter.php
@@ -82,6 +82,9 @@ public function getDescription(string $resourceClass): array
82
83
private function getElasticSearchQueryRanges($property, $filter): array
84
{
85
+ if (null === $this->properties) {
86
+ throw new \InvalidArgumentException('The property must be defined in the filter.');
87
+ }
88
if (!\is_array($filter)) {
89
$fallbackOperator = $this->properties[$property];
90
$operator = $this->config[$fallbackOperator]->limit;
0 commit comments