forked from ruflin/Elastica
-
Notifications
You must be signed in to change notification settings - Fork 0
/
phpstan-baseline.neon
222 lines (178 loc) · 7.51 KB
/
phpstan-baseline.neon
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
parameters:
ignoreErrors:
-
message: "#^Expression on left side of \\?\\? is not nullable\\.$#"
count: 1
path: src/Client.php
-
message: "#^Method Elastica\\\\QueryBuilder\\:\\:aggregation\\(\\) should return Elastica\\\\QueryBuilder\\\\DSL\\\\Aggregation but returns Elastica\\\\QueryBuilder\\\\Facade\\.$#"
count: 1
path: src/QueryBuilder.php
-
message: "#^Method Elastica\\\\QueryBuilder\\:\\:collapse\\(\\) should return Elastica\\\\QueryBuilder\\\\DSL\\\\Collapse but returns Elastica\\\\QueryBuilder\\\\Facade\\.$#"
count: 1
path: src/QueryBuilder.php
-
message: "#^Method Elastica\\\\QueryBuilder\\:\\:query\\(\\) should return Elastica\\\\QueryBuilder\\\\DSL\\\\Query but returns Elastica\\\\QueryBuilder\\\\Facade\\.$#"
count: 1
path: src/QueryBuilder.php
-
message: "#^Method Elastica\\\\QueryBuilder\\:\\:suggest\\(\\) should return Elastica\\\\QueryBuilder\\\\DSL\\\\Suggest but returns Elastica\\\\QueryBuilder\\\\Facade\\.$#"
count: 1
path: src/QueryBuilder.php
-
message: "#^Function GuzzleHttp\\\\Psr7\\\\modify_request not found\\.$#"
count: 1
path: src/Transport/AwsAuthV4.php
-
message: "#^Function GuzzleHttp\\\\Psr7\\\\stream_for not found\\.$#"
count: 1
path: src/Transport/Guzzle.php
-
message: "#^Parameter \\#1 \\$precision of method Elastica\\\\Aggregation\\\\GeohashGrid\\:\\:setPrecision\\(\\) expects int\\|string, float given\\.$#"
count: 1
path: tests/Aggregation/GeohashGridTest.php
-
message: "#^Parameter \\#1 \\$data of static method Elastica\\\\Bulk\\\\Action\\\\AbstractDocument\\:\\:create\\(\\) expects Elastica\\\\Document\\|Elastica\\\\Script\\\\AbstractScript, stdClass given\\.$#"
count: 1
path: tests/Bulk/Action/AbstractDocumentTest.php
-
message: "#^Access to an undefined property Elastica\\\\Document\\:\\:\\$counter\\.$#"
count: 1
path: tests/BulkTest.php
-
message: "#^Access to an undefined property Elastica\\\\Document\\:\\:\\$name\\.$#"
count: 1
path: tests/BulkTest.php
-
message: "#^Access to an undefined property Elastica\\\\Document\\:\\:\\$test\\.$#"
count: 3
path: tests/BulkTest.php
-
message: "#^Call to an undefined method Elastica\\\\Bulk\\\\Action\\:\\:getDocument\\(\\)\\.$#"
count: 3
path: tests/BulkTest.php
-
message: "#^Access to an undefined property Elastica\\\\Document\\:\\:\\$age\\.$#"
count: 1
path: tests/ClientFunctionalTest.php
-
message: "#^Parameter \\#2 \\$data of method Elastica\\\\Client\\:\\:updateDocument\\(\\) expects array\\|Elastica\\\\Document\\|Elastica\\\\Script\\\\AbstractScript, stdClass given\\.$#"
count: 1
path: tests/ClientFunctionalTest.php
-
message: "#^Parameter \\#1 \\$params of static method Elastica\\\\Connection\\:\\:create\\(\\) expects array\\|Elastica\\\\Connection, string given\\.$#"
count: 1
path: tests/ConnectionTest.php
-
message: "#^Access to an undefined property Elastica\\\\Document\\:\\:\\$field1\\.$#"
count: 1
path: tests/DocumentTest.php
-
message: "#^Access to an undefined property Elastica\\\\Document\\:\\:\\$field2\\.$#"
count: 1
path: tests/DocumentTest.php
-
message: "#^Access to an undefined property Elastica\\\\Document\\:\\:\\$field3\\.$#"
count: 1
path: tests/DocumentTest.php
-
message: "#^Access to an undefined property Elastica\\\\Document\\:\\:\\$field4\\.$#"
count: 1
path: tests/DocumentTest.php
-
message: "#^Access to an undefined property Elastica\\\\Document\\:\\:\\$field5\\.$#"
count: 1
path: tests/DocumentTest.php
-
message: "#^Dead catch \\- Elastica\\\\Exception\\\\InvalidException is never thrown in the try block\\.$#"
count: 1
path: tests/DocumentTest.php
-
message: "#^Expression \"\\$document\\-\\>field5\" on a separate line does not do anything\\.$#"
count: 1
path: tests/DocumentTest.php
-
message: "#^Unreachable statement \\- code above always terminates\\.$#"
count: 1
path: tests/DocumentTest.php
-
message: "#^Parameter \\#2 \\$name of class Elastica\\\\IndexTemplate constructor expects string, null given\\.$#"
count: 1
path: tests/IndexTemplateTest.php
-
message: "#^Unreachable statement \\- code above always terminates\\.$#"
count: 1
path: tests/IndexTest.php
-
message: "#^Unreachable statement \\- code above always terminates\\.$#"
count: 2
path: tests/Multi/SearchTest.php
-
message: "#^Parameter \\#1 \\$clauses of class Elastica\\\\Query\\\\SpanNear constructor expects array\\<Elastica\\\\Query\\\\AbstractSpanQuery\\>, array\\<int, Elastica\\\\Query\\\\Term\\> given\\.$#"
count: 1
path: tests/Query/SpanNearTest.php
-
message: "#^Parameter \\#1 \\$clauses of class Elastica\\\\Query\\\\SpanOr constructor expects array\\<Elastica\\\\Query\\\\AbstractSpanQuery\\>, array\\<int, Elastica\\\\Query\\\\Term\\> given\\.$#"
count: 1
path: tests/Query/SpanOrTest.php
-
message: "#^Parameter \\#1 \\$term of method Elastica\\\\Query\\\\Terms\\:\\:addTerm\\(\\) expects bool\\|float\\|int\\|string, stdClass given\\.$#"
count: 1
path: tests/Query/TermsTest.php
-
message: "#^Call to an undefined method ReflectionType\\:\\:getName\\(\\)\\.$#"
count: 2
path: tests/QueryBuilder/DSL/AbstractDSLTest.php
-
message: "#^Call to an undefined method ReflectionType\\:\\:isBuiltin\\(\\)\\.$#"
count: 1
path: tests/QueryBuilder/DSL/AbstractDSLTest.php
-
message: "#^Call to an undefined method Elastica\\\\QueryBuilder\\:\\:custom\\(\\)\\.$#"
count: 1
path: tests/QueryBuilderTest.php
-
message: "#^Call to an undefined method Elastica\\\\QueryBuilder\\:\\:invalid\\(\\)\\.$#"
count: 1
path: tests/QueryBuilderTest.php
-
message: "#^Parameter \\#1 \\$value of method Elastica\\\\Reindex\\:\\:setWaitForCompletion\\(\\) expects bool, string given\\.$#"
count: 1
path: tests/ReindexTest.php
-
message: "#^Expression \"\\$index\\-\\>search\\('elastica search'\\)\\[3\\]\" on a separate line does not do anything\\.$#"
count: 1
path: tests/ResultSetTest.php
-
message: "#^Parameter \\#1 \\$index of method Elastica\\\\Search\\:\\:addIndex\\(\\) expects Elastica\\\\Index, int given\\.$#"
count: 1
path: tests/SearchTest.php
-
message: "#^Parameter \\#1 \\$index of method Elastica\\\\Search\\:\\:addIndex\\(\\) expects Elastica\\\\Index, stdClass given\\.$#"
count: 1
path: tests/SearchTest.php
-
message: "#^Parameter \\#1 \\$index of method Elastica\\\\Search\\:\\:addIndex\\(\\) expects Elastica\\\\Index, string given\\.$#"
count: 1
path: tests/SearchTest.php
-
message: "#^Parameter \\#1 \\$index of method Elastica\\\\Search\\:\\:hasIndex\\(\\) expects Elastica\\\\Index, string given\\.$#"
count: 2
path: tests/SearchTest.php
-
message: "#^Parameter \\#1 \\$indices of method Elastica\\\\Search\\:\\:addIndices\\(\\) expects array\\<Elastica\\\\Index\\>, array\\<int, stdClass\\> given\\.$#"
count: 1
path: tests/SearchTest.php
-
message: "#^Parameter \\#1 \\$indices of method Elastica\\\\Search\\:\\:addIndicesByName\\(\\) expects array\\<string\\>, array\\<int, stdClass\\> given\\.$#"
count: 1
path: tests/SearchTest.php
-
message: "#^Unreachable statement \\- code above always terminates\\.$#"
count: 1
path: tests/SnapshotTest.php
-
message: "#^Parameter \\#1 \\$suggestion of static method Elastica\\\\Suggest\\:\\:create\\(\\) expects Elastica\\\\Suggest\\|Elastica\\\\Suggest\\\\AbstractSuggest, Elastica\\\\Query\\\\BoolQuery given\\.$#"
count: 1
path: tests/SuggestTest.php