Skip to content

Commit 6470ae3

Browse files
authored
Merge pull request #79 from fedorf4/v7-collapse-with-array-sort
Update InnerHits - add sort array
2 parents 9aa57ee + 469a56d commit 6470ae3

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/Search/Collapsing/InnerHits.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,15 @@
44

55
use Ensi\LaravelElasticQuery\Contracts\DSLAware;
66
use Ensi\LaravelElasticQuery\Search\Sorting\Sort;
7+
use Ensi\LaravelElasticQuery\Search\Sorting\SortCollection;
78
use Webmozart\Assert\Assert;
89

910
class InnerHits implements DSLAware
1011
{
1112
public function __construct(
1213
protected string $name,
1314
protected int $size,
14-
protected ?Sort $sort,
15+
protected Sort|SortCollection|null $sort,
1516
) {
1617
Assert::stringNotEmpty(trim($name));
1718
}

0 commit comments

Comments
 (0)