Skip to content

Commit 9deda91

Browse files
committed
Merge remote-tracking branch 'origin/master' into use-config-facade
2 parents 7119200 + 2672fa3 commit 9deda91

File tree

3 files changed

+31
-2
lines changed

3 files changed

+31
-2
lines changed

LICENSE

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
MIT License
2+
3+
Copyright (c) 2025 rajmundtoth0
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

composer.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
"require": {
2828
"php": ">=8.2",
2929
"elasticsearch/elasticsearch": "^8.0",
30-
"owen-it/laravel-auditing": "^13.0",
30+
"owen-it/laravel-auditing": "^13.0|^14.0",
3131
"php-http/httplug": "^2.4"
3232
},
3333
"autoload": {
@@ -45,7 +45,7 @@
4545
"require-dev": {
4646
"friendsofphp/php-cs-fixer": "^3.57",
4747
"larastan/larastan": "*",
48-
"orchestra/testbench": "^8.21|^9.0",
48+
"orchestra/testbench": "^8.21|^9.0|^10.0",
4949
"php-http/mock-client": "^1.6",
5050
"phpstan/phpstan": "^2.0.2",
5151
"phpstan/phpstan-phpunit": "*",

src/Client/ElasticsearchClient.php

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

141+
/** @phpstan-ignore argument.type */
141142
return $this->client->indices()->updateAliases($params);
142143
}
143144

@@ -169,6 +170,7 @@ public function createIndex(
169170
],
170171
];
171172

173+
/** @phpstan-ignore argument.type */
172174
return $this->client->indices()->create($params);
173175
}
174176

@@ -182,6 +184,7 @@ public function createIndex(
182184
*/
183185
public function search(array $params): Elasticsearch
184186
{
187+
/** @phpstan-ignore argument.type */
185188
$result = $this->client->search($params);
186189

187190
if (!$result instanceof Elasticsearch) {
@@ -201,6 +204,7 @@ public function search(array $params): Elasticsearch
201204
*/
202205
public function count(array $params): Elasticsearch
203206
{
207+
/** @phpstan-ignore argument.type */
204208
$result = $this->client->count($params);
205209

206210
if (!$result instanceof Elasticsearch) {
@@ -219,6 +223,7 @@ public function count(array $params): Elasticsearch
219223
*/
220224
public function deleteDocument(string $index, int|string $id, bool $shouldReturnResult = false): bool
221225
{
226+
/** @phpstan-ignore argument.type */
222227
$result = $this->client->delete([
223228
'index' => $index,
224229
'id' => $id,
@@ -237,6 +242,7 @@ public function deleteDocument(string $index, int|string $id, bool $shouldReturn
237242
*/
238243
public function deleteIndex(string $index): bool
239244
{
245+
/** @phpstan-ignore argument.type */
240246
$result = $this->client->indices()->delete([
241247
'index' => $index,
242248
]);
@@ -259,6 +265,7 @@ public function isAsync(): bool
259265
*/
260266
public function isIndexExists(string $index): bool
261267
{
268+
/** @phpstan-ignore argument.type */
262269
$result = $this->client->indices()->exists([
263270
'index' => $index,
264271
]);
@@ -276,6 +283,7 @@ public function isIndexExists(string $index): bool
276283
*/
277284
public function index(DocumentModel $model, bool $shouldReturnResult): bool
278285
{
286+
/** @phpstan-ignore argument.type */
279287
$result = $this->client->index($model->toArray());
280288

281289
return $this

0 commit comments

Comments
 (0)