-
-
Notifications
You must be signed in to change notification settings - Fork 35
Expand file tree
/
Copy pathphpstan-baseline.neon
More file actions
391 lines (327 loc) · 15.6 KB
/
Copy pathphpstan-baseline.neon
File metadata and controls
391 lines (327 loc) · 15.6 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
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
parameters:
ignoreErrors:
-
message: '#^Method Brick\\Geo\\CircularString\:\:getIterator\(\) should return ArrayIterator\<int\<0, max\>, Brick\\Geo\\Point\> but returns ArrayIterator\<int, Brick\\Geo\\Point\>\.$#'
identifier: return.type
count: 1
path: src/CircularString.php
-
message: '#^Method Brick\\Geo\\CompoundCurve\:\:getIterator\(\) should return ArrayIterator\<int\<0, max\>, Brick\\Geo\\CircularString\|Brick\\Geo\\LineString\> but returns ArrayIterator\<int, Brick\\Geo\\CircularString\|Brick\\Geo\\LineString\>\.$#'
identifier: return.type
count: 1
path: src/CompoundCurve.php
-
message: '#^Method Brick\\Geo\\CurvePolygon\:\:getIterator\(\) should return ArrayIterator\<int\<0, max\>, Brick\\Geo\\Curve\> but returns ArrayIterator\<int, Brick\\Geo\\Curve\>\.$#'
identifier: return.type
count: 1
path: src/CurvePolygon.php
-
message: '#^Method Brick\\Geo\\Engine\\DatabaseEngine\:\:area\(\) has parameter \$g with generic class Brick\\Geo\\MultiSurface but does not specify its types\: T$#'
identifier: missingType.generics
count: 1
path: src/Engine/DatabaseEngine.php
-
message: '#^Method Brick\\Geo\\Engine\\DatabaseEngine\:\:length\(\) has parameter \$g with generic class Brick\\Geo\\MultiCurve but does not specify its types\: T$#'
identifier: missingType.generics
count: 1
path: src/Engine/DatabaseEngine.php
-
message: '#^Method Brick\\Geo\\Engine\\DatabaseEngine\:\:pointOnSurface\(\) has parameter \$g with generic class Brick\\Geo\\MultiSurface but does not specify its types\: T$#'
identifier: missingType.generics
count: 1
path: src/Engine/DatabaseEngine.php
-
message: '#^Parameter \#1 \$wkb of static method Brick\\Geo\\Geometry\:\:fromBinary\(\) expects string, resource\|string\|false given\.$#'
identifier: argument.type
count: 1
path: src/Engine/DatabaseEngine.php
-
message: '#^Method Brick\\Geo\\Engine\\GeometryEngine\:\:area\(\) has parameter \$g with generic class Brick\\Geo\\MultiSurface but does not specify its types\: T$#'
identifier: missingType.generics
count: 1
path: src/Engine/GeometryEngine.php
-
message: '#^Method Brick\\Geo\\Engine\\GeometryEngine\:\:length\(\) has parameter \$g with generic class Brick\\Geo\\MultiCurve but does not specify its types\: T$#'
identifier: missingType.generics
count: 1
path: src/Engine/GeometryEngine.php
-
message: '#^Method Brick\\Geo\\Engine\\GeometryEngine\:\:pointOnSurface\(\) has parameter \$g with generic class Brick\\Geo\\MultiSurface but does not specify its types\: T$#'
identifier: missingType.generics
count: 1
path: src/Engine/GeometryEngine.php
-
message: '#^Method Brick\\Geo\\Engine\\GeosEngine\:\:area\(\) has parameter \$g with generic class Brick\\Geo\\MultiSurface but does not specify its types\: T$#'
identifier: missingType.generics
count: 1
path: src/Engine/GeosEngine.php
-
message: '#^Method Brick\\Geo\\Engine\\GeosEngine\:\:isValid\(\) should return bool but returns mixed\.$#'
identifier: return.type
count: 1
path: src/Engine/GeosEngine.php
-
message: '#^Method Brick\\Geo\\Engine\\GeosEngine\:\:length\(\) has parameter \$g with generic class Brick\\Geo\\MultiCurve but does not specify its types\: T$#'
identifier: missingType.generics
count: 1
path: src/Engine/GeosEngine.php
-
message: '#^Method Brick\\Geo\\Engine\\GeosEngine\:\:pointOnSurface\(\) has parameter \$g with generic class Brick\\Geo\\MultiSurface but does not specify its types\: T$#'
identifier: missingType.generics
count: 1
path: src/Engine/GeosEngine.php
-
message: '#^Match expression does not handle remaining value\: int\<3, max\>$#'
identifier: match.unhandled
count: 1
path: src/Engine/GeosOpEngine.php
-
message: '#^Method Brick\\Geo\\Engine\\GeosOpEngine\:\:area\(\) has parameter \$g with generic class Brick\\Geo\\MultiSurface but does not specify its types\: T$#'
identifier: missingType.generics
count: 1
path: src/Engine/GeosOpEngine.php
-
message: '#^Method Brick\\Geo\\Engine\\GeosOpEngine\:\:length\(\) has parameter \$g with generic class Brick\\Geo\\MultiCurve but does not specify its types\: T$#'
identifier: missingType.generics
count: 1
path: src/Engine/GeosOpEngine.php
-
message: '#^Method Brick\\Geo\\Engine\\GeosOpEngine\:\:pointOnSurface\(\) has parameter \$g with generic class Brick\\Geo\\MultiSurface but does not specify its types\: T$#'
identifier: missingType.generics
count: 1
path: src/Engine/GeosOpEngine.php
-
message: '#^Cannot call method bindValue\(\) on SQLite3Stmt\|false\.$#'
identifier: method.nonObject
count: 3
path: src/Engine/Sqlite3Engine.php
-
message: '#^Cannot call method execute\(\) on SQLite3Stmt\|false\.$#'
identifier: method.nonObject
count: 1
path: src/Engine/Sqlite3Engine.php
-
message: '#^Cannot call method fetchArray\(\) on SQLite3Result\|false\.$#'
identifier: method.nonObject
count: 1
path: src/Engine/Sqlite3Engine.php
-
message: '#^Property Brick\\Geo\\Engine\\Sqlite3Engine\:\:\$statements \(array\<string, SQLite3Stmt\>\) does not accept array\<string, bool\|SQLite3Stmt\>\.$#'
identifier: assign.propertyType
count: 1
path: src/Engine/Sqlite3Engine.php
-
message: '#^Method Brick\\Geo\\Geometry\:\:swapXy\(\) should return static\(Brick\\Geo\\Geometry\) but returns Brick\\Geo\\Geometry\.$#'
identifier: return.type
count: 1
path: src/Geometry.php
-
message: '#^Method Brick\\Geo\\Geometry\:\:toXy\(\) should return static\(Brick\\Geo\\Geometry\) but returns Brick\\Geo\\Geometry\.$#'
identifier: return.type
count: 1
path: src/Geometry.php
-
message: '#^Method Brick\\Geo\\Geometry\:\:withRoundedCoordinates\(\) should return static\(Brick\\Geo\\Geometry\) but returns Brick\\Geo\\Geometry\.$#'
identifier: return.type
count: 1
path: src/Geometry.php
-
message: '#^Method Brick\\Geo\\Geometry\:\:withSrid\(\) should return static\(Brick\\Geo\\Geometry\) but returns Brick\\Geo\\Geometry\.$#'
identifier: return.type
count: 1
path: src/Geometry.php
-
message: '#^Method Brick\\Geo\\Geometry\:\:withoutM\(\) should return static\(Brick\\Geo\\Geometry\) but returns Brick\\Geo\\Geometry\.$#'
identifier: return.type
count: 1
path: src/Geometry.php
-
message: '#^Method Brick\\Geo\\Geometry\:\:withoutZ\(\) should return static\(Brick\\Geo\\Geometry\) but returns Brick\\Geo\\Geometry\.$#'
identifier: return.type
count: 1
path: src/Geometry.php
-
message: '#^Method Brick\\Geo\\GeometryCollection\:\:containedGeometryType\(\) should return class\-string\<T of Brick\\Geo\\Geometry\> but returns string\.$#'
identifier: return.type
count: 1
path: src/GeometryCollection.php
-
message: '#^Method Brick\\Geo\\GeometryCollection\:\:getIterator\(\) should return ArrayIterator\<int\<0, max\>, T of Brick\\Geo\\Geometry\> but returns ArrayIterator\<int, T of Brick\\Geo\\Geometry\>\.$#'
identifier: return.type
count: 1
path: src/GeometryCollection.php
-
message: '#^Method Brick\\Geo\\GeometryCollection\:\:of\(\) should return static\(Brick\\Geo\\GeometryCollection\<T of Brick\\Geo\\Geometry\>\) but returns static\(Brick\\Geo\\GeometryCollection\<Brick\\Geo\\Geometry\>\)\.$#'
identifier: return.type
count: 1
path: src/GeometryCollection.php
-
message: '#^Method Brick\\Geo\\GeometryCollection\:\:project\(\) return type with generic class Brick\\Geo\\GeometryCollection does not specify its types\: T$#'
identifier: missingType.generics
count: 1
path: src/GeometryCollection.php
-
message: '#^Unsafe usage of new static\(\)\.$#'
identifier: new.static
count: 2
path: src/GeometryCollection.php
-
message: '#^Method Brick\\Geo\\Io\\GeoJsonReader\:\:hasZ\(\) has parameter \$coords with no value type specified in iterable type array\.$#'
identifier: missingType.iterableValue
count: 1
path: src/Io/GeoJsonReader.php
-
message: '#^Method Brick\\Geo\\Io\\GeoJsonReader\:\:readGeometryCollection\(\) return type with generic class Brick\\Geo\\GeometryCollection does not specify its types\: T$#'
identifier: missingType.generics
count: 1
path: src/Io/GeoJsonReader.php
-
message: '#^Parameter \#1 \$coords of method Brick\\Geo\\Io\\GeoJsonReader\:\:hasZ\(\) expects array, mixed given\.$#'
identifier: argument.type
count: 1
path: src/Io/GeoJsonReader.php
-
message: '#^Parameter \#1 \$geoJsonGeometry of method Brick\\Geo\\Io\\GeoJsonReader\:\:readGeometry\(\) expects stdClass, mixed given\.$#'
identifier: argument.type
count: 1
path: src/Io/GeoJsonReader.php
-
message: '#^Method Brick\\Geo\\Io\\GeoJsonWriter\:\:bboxToCoordinateArray\(\) return type has no value type specified in iterable type array\.$#'
identifier: missingType.iterableValue
count: 1
path: src/Io/GeoJsonWriter.php
-
message: '#^Method Brick\\Geo\\Io\\GeoJsonWriter\:\:writeGeometryCollection\(\) has parameter \$geometryCollection with generic class Brick\\Geo\\GeometryCollection but does not specify its types\: T$#'
identifier: missingType.generics
count: 1
path: src/Io/GeoJsonWriter.php
-
message: '#^Method Brick\\Geo\\Io\\Internal\\AbstractWkbReader\:\:readGeometryCollection\(\) return type with generic class Brick\\Geo\\GeometryCollection does not specify its types\: T$#'
identifier: missingType.generics
count: 1
path: src/Io/Internal/AbstractWkbReader.php
-
message: '#^Method Brick\\Geo\\Io\\Internal\\AbstractWkbReader\:\:readPolyhedralSurface\(\) return type with generic class Brick\\Geo\\PolyhedralSurface does not specify its types\: T$#'
identifier: missingType.generics
count: 1
path: src/Io/Internal/AbstractWkbReader.php
-
message: '#^Method Brick\\Geo\\Io\\Internal\\AbstractWkbWriter\:\:writeComposedGeometry\(\) has parameter \$collection with generic class Brick\\Geo\\GeometryCollection but does not specify its types\: T$#'
identifier: missingType.generics
count: 1
path: src/Io/Internal/AbstractWkbWriter.php
-
message: '#^Method Brick\\Geo\\Io\\Internal\\AbstractWkbWriter\:\:writeComposedGeometry\(\) has parameter \$collection with generic class Brick\\Geo\\PolyhedralSurface but does not specify its types\: T$#'
identifier: missingType.generics
count: 1
path: src/Io/Internal/AbstractWkbWriter.php
-
message: '#^Parameter \#1 \$double of method Brick\\Geo\\Io\\Internal\\AbstractWkbWriter\:\:packDouble\(\) expects float, float\|null given\.$#'
identifier: argument.type
count: 2
path: src/Io/Internal/AbstractWkbWriter.php
-
message: '#^Method Brick\\Geo\\Io\\Internal\\AbstractWktReader\:\:readGeometryCollectionText\(\) return type with generic class Brick\\Geo\\GeometryCollection does not specify its types\: T$#'
identifier: missingType.generics
count: 1
path: src/Io/Internal/AbstractWktReader.php
-
message: '#^Method Brick\\Geo\\Io\\Internal\\AbstractWktReader\:\:readPolyhedralSurfaceText\(\) return type with generic class Brick\\Geo\\PolyhedralSurface does not specify its types\: T$#'
identifier: missingType.generics
count: 1
path: src/Io/Internal/AbstractWktReader.php
-
message: '#^Method Brick\\Geo\\Io\\Internal\\AbstractWktWriter\:\:writeGeometryCollection\(\) has parameter \$collection with generic class Brick\\Geo\\GeometryCollection but does not specify its types\: T$#'
identifier: missingType.generics
count: 1
path: src/Io/Internal/AbstractWktWriter.php
-
message: '#^Method Brick\\Geo\\Io\\Internal\\AbstractWktWriter\:\:writePolyhedralSurface\(\) has parameter \$polyhedralSurface with generic class Brick\\Geo\\PolyhedralSurface but does not specify its types\: T$#'
identifier: missingType.generics
count: 1
path: src/Io/Internal/AbstractWktWriter.php
-
message: '#^Argument of an invalid type stdClass&T of mixed supplied for foreach, only iterables are supported\.$#'
identifier: foreach.nonIterable
count: 1
path: src/Io/Internal/Cloner.php
-
message: '#^Method Brick\\Geo\\Io\\Internal\\Cloner\:\:clone\(\) should return T but returns array\<mixed\>\|T of mixed\.$#'
identifier: return.type
count: 1
path: src/Io/Internal/Cloner.php
-
message: '#^Offset int\<min, \-1\>\|int\<1, max\> might not exist on array\{1\: Brick\\Geo\\Io\\Internal\\WktTokenType\:\:Srid, 2\: Brick\\Geo\\Io\\Internal\\WktTokenType\:\:Word, 3\: Brick\\Geo\\Io\\Internal\\WktTokenType\:\:Number, 4\: Brick\\Geo\\Io\\Internal\\WktTokenType\:\:Other\}\|array\{1\: Brick\\Geo\\Io\\Internal\\WktTokenType\:\:Word, 2\: Brick\\Geo\\Io\\Internal\\WktTokenType\:\:Number, 3\: Brick\\Geo\\Io\\Internal\\WktTokenType\:\:Other\}\.$#'
identifier: offsetAccess.notFound
count: 1
path: src/Io/Internal/WktParser.php
-
message: '#^Method Brick\\Geo\\LineString\:\:getIterator\(\) should return ArrayIterator\<int\<0, max\>, Brick\\Geo\\Point\> but returns ArrayIterator\<int, Brick\\Geo\\Point\>\.$#'
identifier: return.type
count: 1
path: src/LineString.php
-
message: '#^Parameter \#2 \.\.\.\$coords of class Brick\\Geo\\Point constructor expects float, float\|null given\.$#'
identifier: argument.type
count: 4
path: src/LineString.php
-
message: '#^Parameter \#3 \.\.\.\$coords of class Brick\\Geo\\Point constructor expects float, float\|null given\.$#'
identifier: argument.type
count: 4
path: src/LineString.php
-
message: '#^Method Brick\\Geo\\MultiCurve\:\:project\(\) return type with generic class Brick\\Geo\\MultiCurve does not specify its types\: T$#'
identifier: missingType.generics
count: 1
path: src/MultiCurve.php
-
message: '#^Method Brick\\Geo\\MultiSurface\:\:project\(\) return type with generic class Brick\\Geo\\MultiSurface does not specify its types\: T$#'
identifier: missingType.generics
count: 1
path: src/MultiSurface.php
-
message: '#^Match expression does not handle remaining value\: int\<4, max\>$#'
identifier: match.unhandled
count: 1
path: src/Point.php
-
message: '#^Method Brick\\Geo\\Polygon\:\:getIterator\(\) should return ArrayIterator\<int\<0, max\>, Brick\\Geo\\LineString\> but returns ArrayIterator\<int, Brick\\Geo\\LineString\>\.$#'
identifier: return.type
count: 1
path: src/Polygon.php
-
message: '#^Unsafe usage of new static\(\)\.$#'
identifier: new.static
count: 4
path: src/Polygon.php
-
message: '#^Method Brick\\Geo\\PolyhedralSurface\:\:getIterator\(\) should return ArrayIterator\<int\<0, max\>, T of Brick\\Geo\\Polygon\> but returns ArrayIterator\<int, T of Brick\\Geo\\Polygon\>\.$#'
identifier: return.type
count: 1
path: src/PolyhedralSurface.php
-
message: '#^Method Brick\\Geo\\PolyhedralSurface\:\:of\(\) return type with generic class Brick\\Geo\\PolyhedralSurface does not specify its types\: T$#'
identifier: missingType.generics
count: 1
path: src/PolyhedralSurface.php
-
message: '#^Method Brick\\Geo\\PolyhedralSurface\:\:patchType\(\) should return class\-string\<T of Brick\\Geo\\Polygon\> but returns string\.$#'
identifier: return.type
count: 1
path: src/PolyhedralSurface.php
-
message: '#^Method Brick\\Geo\\PolyhedralSurface\:\:project\(\) return type with generic class Brick\\Geo\\PolyhedralSurface does not specify its types\: T$#'
identifier: missingType.generics
count: 1
path: src/PolyhedralSurface.php
-
message: '#^Method Brick\\Geo\\PolyhedralSurface\:\:withAddedPatches\(\) return type with generic class Brick\\Geo\\PolyhedralSurface does not specify its types\: T$#'
identifier: missingType.generics
count: 1
path: src/PolyhedralSurface.php
-
message: '#^Unsafe usage of new static\(\)\.$#'
identifier: new.static
count: 2
path: src/PolyhedralSurface.php