We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6c67390 commit 8e802eeCopy full SHA for 8e802ee
1 file changed
src/Stopwords.php
@@ -55,24 +55,15 @@ public function getAll()
55
}
56
57
/**
58
- * @param array $options
+ * @param array $stopwordSet
59
*
60
* @return array
61
* @throws HttpClientException
62
* @throws TypesenseClientError
63
*/
64
- public function put(array $options = [])
+ public function put(array $stopwordSet)
65
{
66
- $stopwordsName = $options['name'];
67
- $stopwordsData = $options['stopwords'];
68
- $stopwordsLocale = $options['locale'];
69
- return $this->apiCall->put(
70
- $this->endpointPath($stopwordsName),
71
- [
72
- 'stopwords' => $stopwordsData,
73
- 'locale' => $stopwordsLocale
74
- ]
75
- );
+ return $this->apiCall->put($this->endpointPath($stopwordSet['name']), $stopwordSet);
76
77
78
0 commit comments