Skip to content

Commit 6452ba2

Browse files
committed
Ignore broken Elastic Client phpDoc
1 parent cda170c commit 6452ba2

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/Client/ElasticsearchClient.php

+8
Original file line numberDiff line numberDiff line change
@@ -136,6 +136,7 @@ public function updateAliases(string $index): Elasticsearch|Promise
136136
],
137137
];
138138

139+
/** @phpstan-ignore argument.type */
139140
return $this->client->indices()->updateAliases($params);
140141
}
141142

@@ -166,6 +167,7 @@ public function createIndex(
166167
],
167168
];
168169

170+
/** @phpstan-ignore argument.type */
169171
return $this->client->indices()->create($params);
170172
}
171173

@@ -179,6 +181,7 @@ public function createIndex(
179181
*/
180182
public function search(array $params): Elasticsearch
181183
{
184+
/** @phpstan-ignore argument.type */
182185
$result = $this->client->search($params);
183186

184187
if (!$result instanceof Elasticsearch) {
@@ -198,6 +201,7 @@ public function search(array $params): Elasticsearch
198201
*/
199202
public function count(array $params): Elasticsearch
200203
{
204+
/** @phpstan-ignore argument.type */
201205
$result = $this->client->count($params);
202206

203207
if (!$result instanceof Elasticsearch) {
@@ -216,6 +220,7 @@ public function count(array $params): Elasticsearch
216220
*/
217221
public function deleteDocument(string $index, int|string $id, bool $shouldReturnResult = false): bool
218222
{
223+
/** @phpstan-ignore argument.type */
219224
$result = $this->client->delete([
220225
'index' => $index,
221226
'id' => $id,
@@ -234,6 +239,7 @@ public function deleteDocument(string $index, int|string $id, bool $shouldReturn
234239
*/
235240
public function deleteIndex(string $index): bool
236241
{
242+
/** @phpstan-ignore argument.type */
237243
$result = $this->client->indices()->delete([
238244
'index' => $index,
239245
]);
@@ -256,6 +262,7 @@ public function isAsync(): bool
256262
*/
257263
public function isIndexExists(string $index): bool
258264
{
265+
/** @phpstan-ignore argument.type */
259266
$result = $this->client->indices()->exists([
260267
'index' => $index,
261268
]);
@@ -273,6 +280,7 @@ public function isIndexExists(string $index): bool
273280
*/
274281
public function index(DocumentModel $model, bool $shouldReturnResult): bool
275282
{
283+
/** @phpstan-ignore argument.type */
276284
$result = $this->client->index($model->toArray());
277285

278286
return $this

0 commit comments

Comments
 (0)