Skip to content

Commit b314d10

Browse files
committed
build: temporarily ignore argument type errors
See: elastic/elasticsearch-php#1423 See: elastic/elasticsearch-php#1424 See: elastic/elasticsearch-php#1425
1 parent c438cad commit b314d10

File tree

2 files changed

+28
-0
lines changed

2 files changed

+28
-0
lines changed

phpstan-baseline.neon

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
parameters:
2+
ignoreErrors:
3+
-
4+
message: '#^Parameter \#1 \$params of method Elastic\\Elasticsearch\\Endpoints\\Indices\:\:create\(\) expects array\{index\: string, wait_for_active_shards\: string, timeout\: Elastic\\Elasticsearch\\Endpoints\\time, master_timeout\: Elastic\\Elasticsearch\\Endpoints\\time, pretty\: bool, human\: bool, error_trace\: bool, source\: string, \.\.\.\}, array\{index\: string, body\: array\<string, mixed\>\} given\.$#'
5+
identifier: argument.type
6+
count: 1
7+
path: src/Commands/ElasticsearchCreateIndex.php
8+
9+
-
10+
message: '#^Parameter \#1 \$params of method Elastic\\Elasticsearch\\Endpoints\\Indices\:\:delete\(\) expects array\{index\: list, timeout\: Elastic\\Elasticsearch\\Endpoints\\time, master_timeout\: Elastic\\Elasticsearch\\Endpoints\\time, ignore_unavailable\: bool, allow_no_indices\: bool, expand_wildcards\: Elastic\\Elasticsearch\\Endpoints\\enum, pretty\: bool, human\: bool, \.\.\.\}, array\{index\: string\} given\.$#'
11+
identifier: argument.type
12+
count: 1
13+
path: src/Commands/ElasticsearchDeleteIndex.php
14+
15+
-
16+
message: '#^Parameter \#1 \$params of method Elastic\\Elasticsearch\\Client\:\:delete\(\) expects array\{id\: string, index\: string, wait_for_active_shards\: string, refresh\: Elastic\\Elasticsearch\\Traits\\enum, routing\: string, timeout\: Elastic\\Elasticsearch\\Traits\\time, if_seq_no\: float\|int, if_primary_term\: float\|int, \.\.\.\}, array\{index\: string, id\: int\|string\} given\.$#'
17+
identifier: argument.type
18+
count: 1
19+
path: src/Jobs/DeleteDocument.php
20+
21+
-
22+
message: '#^Parameter \#1 \$params of method Elastic\\Elasticsearch\\Client\:\:index\(\) expects array\{id\: string, index\: string, wait_for_active_shards\: string, op_type\: Elastic\\Elasticsearch\\Traits\\enum, refresh\: Elastic\\Elasticsearch\\Traits\\enum, routing\: string, timeout\: Elastic\\Elasticsearch\\Traits\\time, version\: float\|int, \.\.\.\}, array\{index\: string, id\: mixed, body\: array\<string, mixed\>\} given\.$#'
23+
identifier: argument.type
24+
count: 1
25+
path: src/Jobs/IndexDocument.php

phpstan.neon.dist

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
includes:
2+
- phpstan-baseline.neon
3+
14
parameters:
25
level: 6
36
paths:

0 commit comments

Comments
 (0)