fix psalm

Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
pull/41442/head
Maxence Lange 2023-11-14 10:11:24 +07:00
parent 3af12b2a50
commit 761a688ec9
1 changed files with 1 additions and 5 deletions

@ -243,11 +243,7 @@ class SearchBuilder {
}
private function getExtraOperatorField(ISearchComparison $operator, ?IMetadataQuery $metadataQuery): array {
if (null === $metadataQuery) {
throw new \InvalidArgumentException('IMetadataQuery is null while calling getExtraOperatorField');
}
private function getExtraOperatorField(ISearchComparison $operator, IMetadataQuery $metadataQuery): array {
$field = $operator->getField();
$value = $operator->getValue();
$type = $operator->getType();