Skip to content

Commit e830105

Browse files
Update Document ID to be a string
Typesense actually expects IDs to be Strings - and this is necessary to handle UUIDs in schema
1 parent 99b68d1 commit e830105

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/Document.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,12 +39,12 @@ class Document
3939
*
4040
* @param \Devloops\Typesence\Lib\Configuration $config
4141
* @param string $collectionName
42-
* @param int $documentId
42+
* @param string $documentId
4343
*/
4444
public function __construct(
4545
Configuration $config,
4646
string $collectionName,
47-
int $documentId
47+
string $documentId
4848
) {
4949
$this->config = $config;
5050
$this->collectionName = $collectionName;
@@ -85,4 +85,4 @@ public function delete(): array
8585
return $this->apiCall->delete($this->endpoint_path());
8686
}
8787

88-
}
88+
}

0 commit comments

Comments
 (0)