From 1d1ff6fddc7bff58df6ac0362e5ff8e41969c9a0 Mon Sep 17 00:00:00 2001 From: Moritz Friedrich Date: Thu, 22 Apr 2021 14:09:55 +0200 Subject: [PATCH] Fixed terms filter return type hint --- src/Concerns/BuildsFluentQueries.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Concerns/BuildsFluentQueries.php b/src/Concerns/BuildsFluentQueries.php index 6513347..dc58aad 100644 --- a/src/Concerns/BuildsFluentQueries.php +++ b/src/Concerns/BuildsFluentQueries.php @@ -528,7 +528,7 @@ public function termsFilter( string $field, $value, ?float $boost = null - ): BuildsFluentQueries { + ): self { $value = value($value, $this, $field); if ($boost === null) {