File tree Expand file tree Collapse file tree 2 files changed +1
-7
lines changed Expand file tree Collapse file tree 2 files changed +1
-7
lines changed Original file line number Diff line number Diff line change @@ -276,7 +276,6 @@ public function resetTypoTolerance(): array
276
276
return $ this ->http ->delete (self ::PATH .'/ ' .$ this ->uid .'/settings/typo-tolerance ' );
277
277
}
278
278
279
-
280
279
// Settings - Word dictionary
281
280
282
281
/**
@@ -289,16 +288,12 @@ public function getWordDictionary(): array
289
288
290
289
/**
291
290
* @param list<non-empty-string> $wordDictionary
292
- * @return array
293
291
*/
294
292
public function updateWordDictionary (array $ wordDictionary ): array
295
293
{
296
294
return $ this ->http ->put (self ::PATH .'/ ' .$ this ->uid .'/settings/dictionary ' , $ wordDictionary );
297
295
}
298
296
299
- /**
300
- * @return array
301
- */
302
297
public function resetWordDictionary (): array
303
298
{
304
299
return $ this ->http ->delete (self ::PATH .'/ ' .$ this ->uid .'/settings/dictionary ' );
Original file line number Diff line number Diff line change @@ -30,7 +30,7 @@ public function testUpdateWordDictionary(): void
30
30
{
31
31
$ newWordDictionary = [
32
32
'J. K. ' ,
33
- 'J. R. R. '
33
+ 'J. R. R. ' ,
34
34
];
35
35
36
36
$ promise = $ this ->index ->updateWordDictionary ($ newWordDictionary );
@@ -46,7 +46,6 @@ public function testResetWordDictionary(): void
46
46
{
47
47
$ promise = $ this ->index ->resetWordDictionary ();
48
48
49
-
50
49
$ this ->index ->waitForTask ($ promise ['taskUid ' ]);
51
50
$ wordDictionary = $ this ->index ->getWordDictionary ();
52
51
You can’t perform that action at this time.
0 commit comments