Skip to content

Commit c8bc4e4

Browse files
committed
chore: fix SearchBinaryOperator constructor type hint
Signed-off-by: Robin Appelman <robin@icewind.nl>
1 parent 12da679 commit c8bc4e4

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

lib/private/Files/Search/SearchBinaryOperator.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,13 @@
1313
use OCP\Files\Search\ISearchOperator;
1414

1515
class SearchBinaryOperator implements ISearchBinaryOperator {
16-
private $hints = [];
16+
private array $hints = [];
1717

1818
/**
1919
* SearchBinaryOperator constructor.
2020
*
2121
* @param string $type
22-
* @param (SearchBinaryOperator|SearchComparison)[] $arguments
22+
* @param ISearchOperator[] $arguments
2323
*/
2424
public function __construct(
2525
private $type,
@@ -62,6 +62,7 @@ public function setQueryHint(string $name, $value): void {
6262
}
6363

6464
public function __toString(): string {
65+
/** @var (SearchBinaryOperator|SearchComparison)[] $this->arguments */
6566
if ($this->type === ISearchBinaryOperator::OPERATOR_NOT) {
6667
return '(not ' . $this->arguments[0] . ')';
6768
}

0 commit comments

Comments
 (0)