We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 9a53450 + fc715a3 commit d79cea9Copy full SHA for d79cea9
src/Search/Collapsing/InnerHits.php
@@ -4,14 +4,15 @@
4
5
use Ensi\LaravelElasticQuery\Contracts\DSLAware;
6
use Ensi\LaravelElasticQuery\Search\Sorting\Sort;
7
+use Ensi\LaravelElasticQuery\Search\Sorting\SortCollection;
8
use Webmozart\Assert\Assert;
9
10
class InnerHits implements DSLAware
11
{
12
public function __construct(
13
protected string $name,
14
protected int $size,
- protected ?Sort $sort,
15
+ protected Sort|SortCollection|null $sort,
16
) {
17
Assert::stringNotEmpty(trim($name));
18
}
0 commit comments