From e39d1da852f280c3ffebfadc0c0a720014087bd1 Mon Sep 17 00:00:00 2001 From: Tomas Date: Tue, 16 Jan 2024 06:36:10 +0200 Subject: [PATCH] Use proper typehint for proximityPrecision --- src/Endpoints/Delegates/HandlesSettings.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/Endpoints/Delegates/HandlesSettings.php b/src/Endpoints/Delegates/HandlesSettings.php index edca244a..d1c93552 100644 --- a/src/Endpoints/Delegates/HandlesSettings.php +++ b/src/Endpoints/Delegates/HandlesSettings.php @@ -345,13 +345,16 @@ public function resetNonSeparatorTokens(): array // Settings - proximityPrecision /** - * @return non-empty-string + * @return 'byWord'|'byAttribute' */ public function getProximityPrecision(): string { return $this->http->get(self::PATH.'/'.$this->uid.'/settings/proximity-precision'); } + /** + * @param 'byWord'|'byAttribute' $type + */ public function updateProximityPrecision(string $type): array { return $this->http->put(self::PATH.'/'.$this->uid.'/settings/proximity-precision', $type);