@@ -136,6 +136,7 @@ public function updateAliases(string $index): Elasticsearch|Promise
136
136
],
137
137
];
138
138
139
+ /** @phpstan-ignore argument.type */
139
140
return $ this ->client ->indices ()->updateAliases ($ params );
140
141
}
141
142
@@ -166,6 +167,7 @@ public function createIndex(
166
167
],
167
168
];
168
169
170
+ /** @phpstan-ignore argument.type */
169
171
return $ this ->client ->indices ()->create ($ params );
170
172
}
171
173
@@ -179,6 +181,7 @@ public function createIndex(
179
181
*/
180
182
public function search (array $ params ): Elasticsearch
181
183
{
184
+ /** @phpstan-ignore argument.type */
182
185
$ result = $ this ->client ->search ($ params );
183
186
184
187
if (!$ result instanceof Elasticsearch) {
@@ -198,6 +201,7 @@ public function search(array $params): Elasticsearch
198
201
*/
199
202
public function count (array $ params ): Elasticsearch
200
203
{
204
+ /** @phpstan-ignore argument.type */
201
205
$ result = $ this ->client ->count ($ params );
202
206
203
207
if (!$ result instanceof Elasticsearch) {
@@ -216,6 +220,7 @@ public function count(array $params): Elasticsearch
216
220
*/
217
221
public function deleteDocument (string $ index , int |string $ id , bool $ shouldReturnResult = false ): bool
218
222
{
223
+ /** @phpstan-ignore argument.type */
219
224
$ result = $ this ->client ->delete ([
220
225
'index ' => $ index ,
221
226
'id ' => $ id ,
@@ -234,6 +239,7 @@ public function deleteDocument(string $index, int|string $id, bool $shouldReturn
234
239
*/
235
240
public function deleteIndex (string $ index ): bool
236
241
{
242
+ /** @phpstan-ignore argument.type */
237
243
$ result = $ this ->client ->indices ()->delete ([
238
244
'index ' => $ index ,
239
245
]);
@@ -256,6 +262,8 @@ public function isAsync(): bool
256
262
*/
257
263
public function isIndexExists (string $ index ): bool
258
264
{
265
+
266
+ /** @phpstan-ignore argument.type */
259
267
$ result = $ this ->client ->indices ()->exists ([
260
268
'index ' => $ index ,
261
269
]);
@@ -273,6 +281,7 @@ public function isIndexExists(string $index): bool
273
281
*/
274
282
public function index (DocumentModel $ model , bool $ shouldReturnResult ): bool
275
283
{
284
+ /** @phpstan-ignore argument.type */
276
285
$ result = $ this ->client ->index ($ model ->toArray ());
277
286
278
287
return $ this
0 commit comments