forked from ruflin/Elastica
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathphpstan-baseline.neon
More file actions
245 lines (205 loc) · 8.19 KB
/
phpstan-baseline.neon
File metadata and controls
245 lines (205 loc) · 8.19 KB
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
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
parameters:
ignoreErrors:
-
message: '#^Method Elastica\\QueryBuilder\:\:aggregation\(\) should return Elastica\\QueryBuilder\\DSL\\Aggregation but returns Elastica\\QueryBuilder\\Facade\.$#'
identifier: return.type
count: 1
path: src/QueryBuilder.php
-
message: '#^Method Elastica\\QueryBuilder\:\:collapse\(\) should return Elastica\\QueryBuilder\\DSL\\Collapse but returns Elastica\\QueryBuilder\\Facade\.$#'
identifier: return.type
count: 1
path: src/QueryBuilder.php
-
message: '#^Method Elastica\\QueryBuilder\:\:query\(\) should return Elastica\\QueryBuilder\\DSL\\Query but returns Elastica\\QueryBuilder\\Facade\.$#'
identifier: return.type
count: 1
path: src/QueryBuilder.php
-
message: '#^Method Elastica\\QueryBuilder\:\:suggest\(\) should return Elastica\\QueryBuilder\\DSL\\Suggest but returns Elastica\\QueryBuilder\\Facade\.$#'
identifier: return.type
count: 1
path: src/QueryBuilder.php
-
message: '#^Parameter \#1 \$precision of method Elastica\\Aggregation\\GeohashGrid\:\:setPrecision\(\) expects int\|string, float given\.$#'
identifier: argument.type
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\.$#'
identifier: argument.type
count: 1
path: tests/Bulk/Action/AbstractDocumentTest.php
-
message: '#^Parameter \#1 \$expected of method PHPUnit\\Framework\\Assert\:\:assertSame\(\) contains unresolvable type\.$#'
identifier: argument.unresolvableType
count: 1
path: tests/Bulk/Action/UpdateDocumentTest.php
-
message: '#^Call to method PHPUnit\\Framework\\Assert\:\:assertInstanceOf\(\) with ''Elastica\\\\Bulk\\\\Response'' and Elastica\\Bulk\\Response will always evaluate to true\.$#'
identifier: method.alreadyNarrowedType
count: 1
path: tests/Bulk/ResponseSetTest.php
-
message: '#^Access to an undefined property Elastica\\Document\:\:\$counter\.$#'
identifier: property.notFound
count: 1
path: tests/BulkTest.php
-
message: '#^Access to an undefined property Elastica\\Document\:\:\$name\.$#'
identifier: property.notFound
count: 1
path: tests/BulkTest.php
-
message: '#^Access to an undefined property Elastica\\Document\:\:\$test\.$#'
identifier: property.notFound
count: 3
path: tests/BulkTest.php
-
message: '#^Call to an undefined method Elastica\\Bulk\\Action\:\:getDocument\(\)\.$#'
identifier: method.notFound
count: 3
path: tests/BulkTest.php
-
message: '#^Call to method PHPUnit\\Framework\\Assert\:\:assertInstanceOf\(\) with ''Elastica\\\\Bulk\\\\Response'' and Elastica\\Bulk\\Response will always evaluate to true\.$#'
identifier: method.alreadyNarrowedType
count: 1
path: tests/BulkTest.php
-
message: '#^Access to an undefined property Elastica\\Document\:\:\$age\.$#'
identifier: property.notFound
count: 1
path: tests/ClientFunctionalTest.php
-
message: '#^Parameter \#2 \$data of method Elastica\\Client\:\:updateDocument\(\) expects array\|Elastica\\Document\|Elastica\\Script\\AbstractScript, stdClass given\.$#'
identifier: argument.type
count: 1
path: tests/ClientFunctionalTest.php
-
message: '#^Access to an undefined property Elastica\\Document\:\:\$field1\.$#'
identifier: property.notFound
count: 1
path: tests/DocumentTest.php
-
message: '#^Access to an undefined property Elastica\\Document\:\:\$field2\.$#'
identifier: property.notFound
count: 1
path: tests/DocumentTest.php
-
message: '#^Access to an undefined property Elastica\\Document\:\:\$field3\.$#'
identifier: property.notFound
count: 1
path: tests/DocumentTest.php
-
message: '#^Access to an undefined property Elastica\\Document\:\:\$field4\.$#'
identifier: property.notFound
count: 1
path: tests/DocumentTest.php
-
message: '#^Access to an undefined property Elastica\\Document\:\:\$field5\.$#'
identifier: property.notFound
count: 1
path: tests/DocumentTest.php
-
message: '#^Call to method PHPUnit\\Framework\\Assert\:\:assertInstanceOf\(\) with ''Elastica\\\\Document'' and Elastica\\Document will always evaluate to true\.$#'
identifier: method.alreadyNarrowedType
count: 2
path: tests/DocumentTest.php
-
message: '#^Call to method PHPUnit\\Framework\\Assert\:\:assertTrue\(\) with true will always evaluate to true\.$#'
identifier: method.alreadyNarrowedType
count: 6
path: tests/DocumentTest.php
-
message: '#^Dead catch \- Elastica\\Exception\\InvalidException is never thrown in the try block\.$#'
identifier: catch.neverThrown
count: 1
path: tests/DocumentTest.php
-
message: '#^Expression "\$document\-\>field5" on a separate line does not do anything\.$#'
identifier: expr.resultUnused
count: 1
path: tests/DocumentTest.php
-
message: '#^Unreachable statement \- code above always terminates\.$#'
identifier: deadCode.unreachable
count: 1
path: tests/DocumentTest.php
-
message: '#^Parameter \#2 \$name of class Elastica\\ComponentTemplate constructor expects string, null given\.$#'
count: 1
path: tests/ComponentTemplateTest.php
-
message: '#^Parameter \#2 \$name of class Elastica\\IndexTemplate constructor expects string, null given\.$#'
identifier: argument.type
count: 1
path: tests/IndexTemplateTest.php
-
message: '#^Parameter \#2 \$name of class Elastica\\Template constructor expects string, null given\.$#'
count: 1
path: tests/TemplateTest.php
-
message: '#^Unreachable statement \- code above always terminates\.$#'
identifier: deadCode.unreachable
count: 1
path: tests/IndexTest.php
-
message: '#^Unreachable statement \- code above always terminates\.$#'
identifier: deadCode.unreachable
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\.$#'
identifier: argument.type
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\.$#'
identifier: argument.type
count: 1
path: tests/Query/SpanOrTest.php
-
message: '#^Parameter \#1 \$term of method Elastica\\Query\\Terms\:\:addTerm\(\) expects bool\|float\|int\|string, stdClass given\.$#'
identifier: argument.type
count: 1
path: tests/Query/TermsTest.php
-
message: '#^Call to an undefined method ReflectionType\:\:getName\(\)\.$#'
identifier: method.notFound
count: 2
path: tests/QueryBuilder/DSL/AbstractDSLTestCase.php
-
message: '#^Call to an undefined method ReflectionType\:\:isBuiltin\(\)\.$#'
identifier: method.notFound
count: 1
path: tests/QueryBuilder/DSL/AbstractDSLTestCase.php
-
message: '#^Call to an undefined method Elastica\\QueryBuilder\:\:custom\(\)\.$#'
identifier: method.notFound
count: 1
path: tests/QueryBuilderTest.php
-
message: '#^Call to an undefined method Elastica\\QueryBuilder\:\:invalid\(\)\.$#'
identifier: method.notFound
count: 1
path: tests/QueryBuilderTest.php
-
message: '#^Call to method PHPUnit\\Framework\\Assert\:\:assertTrue\(\) with true will always evaluate to true\.$#'
identifier: method.alreadyNarrowedType
count: 1
path: tests/QueryTest.php
-
message: '#^Parameter \#1 \$indices of method Elastica\\Search\:\:addIndices\(\) expects array\<Elastica\\Index\>, array\<int, stdClass\> given\.$#'
identifier: argument.type
count: 1
path: tests/SearchTest.php
-
message: '#^Parameter \#1 \$indices of method Elastica\\Search\:\:addIndicesByName\(\) expects array\<string\>, array\<int, stdClass\> given\.$#'
identifier: argument.type
count: 1
path: tests/SearchTest.php
-
message: '#^Call to method PHPUnit\\Framework\\Assert\:\:assertInstanceOf\(\) with ''Elastica\\\\Response'' and Elastica\\Response will always evaluate to true\.$#'
identifier: method.alreadyNarrowedType
count: 1
path: tests/StatusTest.php