Skip to content

Commit cbd0c25

Browse files
committed
Add a non-negative-int hint for searchCutoffMs setting value
1 parent 63eaa6a commit cbd0c25

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/Endpoints/Delegates/HandlesSettings.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -402,11 +402,17 @@ public function resetProximityPrecision(): Task
402402

403403
// Settings - searchCutoffMs
404404

405+
/**
406+
* @return non-negative-int|null
407+
*/
405408
public function getSearchCutoffMs(): ?int
406409
{
407410
return $this->http->get(self::PATH.'/'.$this->uid.'/settings/search-cutoff-ms');
408411
}
409412

413+
/**
414+
* @param non-negative-int $value
415+
*/
410416
public function updateSearchCutoffMs(int $value): Task
411417
{
412418
return Task::fromArray($this->http->put(self::PATH.'/'.$this->uid.'/settings/search-cutoff-ms', $value));

0 commit comments

Comments
 (0)