Skip to content

Commit e42c9b8

Browse files
authored
#100614 (#10)
Co-authored-by: Ms_Natali <[email protected]>
1 parent a07bad4 commit e42c9b8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/ElasticClient.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ public function deleteByQuery(string $indexName, array $dsl): array
3535
]);
3636
}
3737

38-
public function get(string $indexName, $id): array
38+
public function get(string $indexName, int|string $id): array
3939
{
4040
return $this->client->get([
4141
'index' => $indexName,
@@ -64,7 +64,7 @@ public function bulk(string $index, array $body): array
6464
]);
6565
}
6666

67-
public function documentDelete(string $index, int $id): array
67+
public function documentDelete(string $index, int|string $id): array
6868
{
6969
return $this->client->delete([
7070
'index' => $index,

0 commit comments

Comments
 (0)