@@ -138,6 +138,7 @@ public function updateAliases(string $index): Elasticsearch|Promise
138
138
],
139
139
];
140
140
141
+ /** @phpstan-ignore argument.type */
141
142
return $ this ->client ->indices ()->updateAliases ($ params );
142
143
}
143
144
@@ -169,6 +170,7 @@ public function createIndex(
169
170
],
170
171
];
171
172
173
+ /** @phpstan-ignore argument.type */
172
174
return $ this ->client ->indices ()->create ($ params );
173
175
}
174
176
@@ -182,6 +184,7 @@ public function createIndex(
182
184
*/
183
185
public function search (array $ params ): Elasticsearch
184
186
{
187
+ /** @phpstan-ignore argument.type */
185
188
$ result = $ this ->client ->search ($ params );
186
189
187
190
if (!$ result instanceof Elasticsearch) {
@@ -201,6 +204,7 @@ public function search(array $params): Elasticsearch
201
204
*/
202
205
public function count (array $ params ): Elasticsearch
203
206
{
207
+ /** @phpstan-ignore argument.type */
204
208
$ result = $ this ->client ->count ($ params );
205
209
206
210
if (!$ result instanceof Elasticsearch) {
@@ -219,6 +223,7 @@ public function count(array $params): Elasticsearch
219
223
*/
220
224
public function deleteDocument (string $ index , int |string $ id , bool $ shouldReturnResult = false ): bool
221
225
{
226
+ /** @phpstan-ignore argument.type */
222
227
$ result = $ this ->client ->delete ([
223
228
'index ' => $ index ,
224
229
'id ' => $ id ,
@@ -237,6 +242,7 @@ public function deleteDocument(string $index, int|string $id, bool $shouldReturn
237
242
*/
238
243
public function deleteIndex (string $ index ): bool
239
244
{
245
+ /** @phpstan-ignore argument.type */
240
246
$ result = $ this ->client ->indices ()->delete ([
241
247
'index ' => $ index ,
242
248
]);
@@ -259,6 +265,7 @@ public function isAsync(): bool
259
265
*/
260
266
public function isIndexExists (string $ index ): bool
261
267
{
268
+ /** @phpstan-ignore argument.type */
262
269
$ result = $ this ->client ->indices ()->exists ([
263
270
'index ' => $ index ,
264
271
]);
@@ -276,6 +283,7 @@ public function isIndexExists(string $index): bool
276
283
*/
277
284
public function index (DocumentModel $ model , bool $ shouldReturnResult ): bool
278
285
{
286
+ /** @phpstan-ignore argument.type */
279
287
$ result = $ this ->client ->index ($ model ->toArray ());
280
288
281
289
return $ this
0 commit comments