From 09d6942c11fe838c888f00d44ccf2c98d4b79d31 Mon Sep 17 00:00:00 2001 From: Robin Appelman Date: Thu, 4 Jun 2026 22:31:07 +0200 Subject: [PATCH] chore: fix SearchBinaryOperator constructor type hint Signed-off-by: Robin Appelman --- lib/private/Files/Search/SearchBinaryOperator.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/private/Files/Search/SearchBinaryOperator.php b/lib/private/Files/Search/SearchBinaryOperator.php index 9bb230e76b359..b7e49009a4137 100644 --- a/lib/private/Files/Search/SearchBinaryOperator.php +++ b/lib/private/Files/Search/SearchBinaryOperator.php @@ -13,13 +13,13 @@ use OCP\Files\Search\ISearchOperator; class SearchBinaryOperator implements ISearchBinaryOperator { - private $hints = []; + private array $hints = []; /** * SearchBinaryOperator constructor. * * @param string $type - * @param (SearchBinaryOperator|SearchComparison)[] $arguments + * @param ISearchOperator[] $arguments */ public function __construct( private $type, @@ -62,6 +62,7 @@ public function setQueryHint(string $name, $value): void { } public function __toString(): string { + /** @var (SearchBinaryOperator|SearchComparison)[] $this->arguments */ if ($this->type === ISearchBinaryOperator::OPERATOR_NOT) { return '(not ' . $this->arguments[0] . ')'; }