Skip to content

Commit

Permalink
Cast document id to string as id in the Document class supports strin…
Browse files Browse the repository at this point in the history
…g only
  • Loading branch information
sidz committed Mar 24, 2024
1 parent 8b9cda8 commit 70af657
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Index.php
Original file line number Diff line number Diff line change
Expand Up @@ -297,7 +297,7 @@ public function getDocument($id, array $options = []): Document
$data = [];
}

$doc = new Document($id, $data, $this->getName());
$doc = new Document((string) $id, $data, $this->getName());
$doc->setVersionParams($result);

return $doc;
Expand Down

0 comments on commit 70af657

Please sign in to comment.