Skip to content

Commit 71ba8f7

Browse files
committed
Precise mergeFacets type
1 parent 03311e0 commit 71ba8f7

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/Contracts/MultiSearchFederation.php

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,9 @@ class MultiSearchFederation
2121
*/
2222
private ?array $facetsByIndex = null;
2323

24+
/**
25+
* @var array{maxValuesPerFacet: positive-int}|null
26+
*/
2427
private ?array $mergeFacets = null;
2528

2629
/**
@@ -60,6 +63,8 @@ public function setFacetsByIndex(array $facetsByIndex): self
6063
}
6164

6265
/**
66+
* @param array{maxValuesPerFacet: positive-int} $mergeFacets
67+
*
6368
* @return $this
6469
*/
6570
public function setMergeFacets(array $mergeFacets): self
@@ -74,7 +79,7 @@ public function setMergeFacets(array $mergeFacets): self
7479
* limit?: non-negative-int,
7580
* offset?: non-negative-int,
7681
* facetsByIndex?: array<non-empty-string, list<non-empty-string>>,
77-
* mergeFacets?: array,
82+
* mergeFacets?: array{maxValuesPerFacet: positive-int},
7883
* }
7984
*/
8085
public function toArray(): array

0 commit comments

Comments
 (0)