Skip to content

Commit

Permalink
fix psalm
Browse files Browse the repository at this point in the history
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
  • Loading branch information
ArtificialOwl committed Nov 14, 2023
1 parent 3af12b2 commit 761a688
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions lib/private/Files/Cache/SearchBuilder.php
Original file line number Diff line number Diff line change
Expand Up @@ -243,11 +243,7 @@ private function validateComparison(ISearchComparison $operator) {
}


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();
Expand Down

0 comments on commit 761a688

Please sign in to comment.