-
-
Notifications
You must be signed in to change notification settings - Fork 330
Expand file tree
/
Copy pathphpstan-baseline.neon
More file actions
505 lines (422 loc) · 18.1 KB
/
phpstan-baseline.neon
File metadata and controls
505 lines (422 loc) · 18.1 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
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
parameters:
ignoreErrors:
-
rawMessage: 'Method chillerlan\QRCodeBenchmark\BenchmarkAbstract::dataModeProvider() return type with generic class Generator does not specify its types: TKey, TValue, TSend, TReturn'
identifier: missingType.generics
count: 1
path: benchmark/BenchmarkAbstract.php
-
rawMessage: 'Method chillerlan\QRCodeBenchmark\BenchmarkAbstract::eccLevelProvider() return type with generic class Generator does not specify its types: TKey, TValue, TSend, TReturn'
identifier: missingType.generics
count: 1
path: benchmark/BenchmarkAbstract.php
-
rawMessage: 'Method chillerlan\QRCodeBenchmark\BenchmarkAbstract::versionProvider() return type with generic class Generator does not specify its types: TKey, TValue, TSend, TReturn'
identifier: missingType.generics
count: 1
path: benchmark/BenchmarkAbstract.php
-
rawMessage: 'Property chillerlan\QRCodeBenchmark\DecoderBenchmark::$imageBlob (string) does not accept GdImage|string.'
identifier: assign.propertyType
count: 1
path: benchmark/DecoderBenchmark.php
-
rawMessage: 'Method chillerlan\QRCodeBenchmark\MaskPatternBenchmark::versionProvider() return type with generic class Generator does not specify its types: TKey, TValue, TSend, TReturn'
identifier: missingType.generics
count: 1
path: benchmark/MaskPatternBenchmark.php
-
rawMessage: 'Parameter #1 $segment of method chillerlan\QRCode\QRCode::addSegment() expects chillerlan\QRCode\Data\QRDataModeInterface, object given.'
identifier: argument.type
count: 1
path: benchmark/QRCodeBenchmark.php
-
rawMessage: 'Parameter #2 $dataSegments of class chillerlan\QRCode\Data\QRData constructor expects array<chillerlan\QRCode\Data\QRDataModeInterface>, array<int, object> given.'
identifier: argument.type
count: 1
path: benchmark/QRDataBenchmark.php
-
rawMessage: 'Property chillerlan\QRCodeBenchmark\QRDataBenchmark::$dataMode (chillerlan\QRCode\Data\QRDataModeInterface) does not accept object.'
identifier: assign.propertyType
count: 1
path: benchmark/QRDataBenchmark.php
-
rawMessage: 'Parameter #1 $string of function strtolower expects string, int|string given.'
identifier: argument.type
count: 1
path: benchmark/generate-markdown.php
-
rawMessage: 'Offset ''name'' does not exist on array<int, mixed>.'
identifier: offsetAccess.notFound
count: 1
path: benchmark/parse-common.php
-
rawMessage: 'Offset ''results'' does not exist on array<int, mixed>.'
identifier: offsetAccess.notFound
count: 1
path: benchmark/parse-common.php
-
rawMessage: 'Offset 0 does not exist on array{}.'
identifier: offsetAccess.notFound
count: 1
path: benchmark/parse-common.php
-
rawMessage: 'Offset int|null might not exist on array<int, non-empty-array<string, non-empty-array<string, array{float, int}>>>.'
identifier: offsetAccess.notFound
count: 1
path: benchmark/parse-common.php
-
rawMessage: Possibly invalid array key type int|null.
identifier: offsetAccess.invalidOffset
count: 1
path: benchmark/parse-common.php
-
rawMessage: 'Function chillerlan\QRCodeBenchmark\parseLine() return type has no value type specified in iterable type array.'
identifier: missingType.iterableValue
count: 1
path: benchmark/parse-result.php
-
rawMessage: 'Parameter #1 $string of function trim expects string, string|false given.'
identifier: argument.type
count: 1
path: benchmark/parse-result.php
-
rawMessage: Set hook for non-virtual property chillerlan\Settings\SettingsContainerAbstract@anonymous/examples/authenticator.php:22::$fpdfMeasureUnit does not always assign value to it.
identifier: propertySetHook.noAssign
count: 1
path: examples/authenticator.php
-
rawMessage: 'Method QRGdRounded::__construct() has parameter $options with no value type specified in iterable type iterable.'
identifier: missingType.iterableValue
count: 1
path: examples/imageWithRoundedShapes.php
-
rawMessage: 'Parameter #1 $properties of class chillerlan\QRCode\QROptions constructor expects array<string, mixed>|null, iterable given.'
identifier: argument.type
count: 1
path: examples/imageWithRoundedShapes.php
-
rawMessage: 'Parameter #1 $width of function imagecreatetruecolor expects int<1, max>, int given.'
identifier: argument.type
count: 1
path: examples/imageWithText.php
-
rawMessage: 'Parameter #2 $color of function imagecolortransparent expects int|null, int<0, max>|false given.'
identifier: argument.type
count: 1
path: examples/imageWithText.php
-
rawMessage: 'Parameter #2 $height of function imagecreatetruecolor expects int<1, max>, int given.'
identifier: argument.type
count: 1
path: examples/imageWithText.php
-
rawMessage: 'Parameter #6 $color of function imagechar expects int, int<0, max>|false given.'
identifier: argument.type
count: 1
path: examples/imageWithText.php
-
rawMessage: 'Parameter #6 $color of function imagefilledrectangle expects int, int<0, max>|false given.'
identifier: argument.type
count: 1
path: examples/imageWithText.php
-
rawMessage: 'Parameter #1 (Intervention\Image\Interfaces\ImageInterface|string) of echo cannot be converted to string.'
identifier: echo.nonString
count: 1
path: examples/intervention-image.php
-
rawMessage: 'Function parseHexValue() return type has no value type specified in iterable type array.'
identifier: missingType.iterableValue
count: 1
path: examples/qrcode-interactive.php
-
rawMessage: 'Method RandomDotsSVGOutput::collectModules() should return array<int, mixed> but returns array<int|string, list<string>>.'
identifier: return.type
count: 1
path: examples/svgRandomColoredDots.php
-
rawMessage: 'Parameter #4 $M_TYPE_LAYER of method chillerlan\QRCode\Output\QRMarkupSVG::moduleTransform() expects int, int|string given.'
identifier: argument.type
count: 1
path: examples/svgRandomColoredDots.php
-
rawMessage: 'Method RoundQuietzoneSVGoutput::collectModules() should return array<int, mixed> but returns array<int|string, list<string>>.'
identifier: return.type
count: 1
path: examples/svgRoundQuietzone.php
-
rawMessage: 'Parameter #4 $M_TYPE_LAYER of method chillerlan\QRCode\Output\QRMarkupSVG::moduleTransform() expects int, int|string given.'
identifier: argument.type
count: 1
path: examples/svgRoundQuietzone.php
-
rawMessage: 'Parameter #1 $data of function imagecreatefromstring expects string, string|false given.'
identifier: argument.type
count: 1
path: src/Common/GDLuminanceSource.php
-
rawMessage: 'Parameter #1 $gdImage of class chillerlan\QRCode\Common\GDLuminanceSource constructor expects GdImage, GdImage|false given.'
identifier: argument.type
count: 2
path: src/Common/GDLuminanceSource.php
-
rawMessage: 'Parameter #2 $color of function imagecolorsforindex expects int, int<0, max>|false given.'
identifier: argument.type
count: 1
path: src/Common/GDLuminanceSource.php
-
rawMessage: 'Offset int<min, -1>|int<1, max> might not exist on array{0, 0, 1, 25, 2, 50, 26, 198, ...}.'
identifier: offsetAccess.notFound
count: 3
path: src/Common/GF256.php
-
rawMessage: 'Parameter #1 $maskPattern of class chillerlan\QRCode\Common\MaskPattern constructor expects int, int|false given.'
identifier: argument.type
count: 1
path: src/Common/MaskPattern.php
-
rawMessage: 'Method chillerlan\QRCode\Common\Version::getRSBlocks() return type has no value type specified in iterable type array.'
identifier: missingType.iterableValue
count: 1
path: src/Common/Version.php
-
rawMessage: 'Parameter #1 $codepoint of function chr expects int<0, 255>, int given.'
identifier: argument.type
count: 1
path: src/Data/Byte.php
-
rawMessage: Cannot access property $level on chillerlan\QRCode\Common\EccLevel|null.
identifier: property.nonObject
count: 1
path: src/Data/QRMatrix.php
-
rawMessage: 'Parameter #1 $version of class chillerlan\QRCode\Data\ReedSolomonEncoder constructor expects chillerlan\QRCode\Common\Version, chillerlan\QRCode\Common\Version|null given.'
identifier: argument.type
count: 1
path: src/Data/QRMatrix.php
-
rawMessage: 'Parameter #2 $eccLevel of class chillerlan\QRCode\Data\ReedSolomonEncoder constructor expects chillerlan\QRCode\Common\EccLevel, chillerlan\QRCode\Common\EccLevel|null given.'
identifier: argument.type
count: 1
path: src/Data/QRMatrix.php
-
rawMessage: Access to an undefined property chillerlan\QRCode\Common\LuminanceSourceInterface::$height.
identifier: property.notFound
count: 1
path: src/Decoder/Binarizer.php
-
rawMessage: Access to an undefined property chillerlan\QRCode\Common\LuminanceSourceInterface::$luminances.
identifier: property.notFound
count: 1
path: src/Decoder/Binarizer.php
-
rawMessage: Access to an undefined property chillerlan\QRCode\Common\LuminanceSourceInterface::$width.
identifier: property.notFound
count: 1
path: src/Decoder/Binarizer.php
-
rawMessage: 'Parameter #1 $maskPattern of method chillerlan\QRCode\Data\QRMatrix::mask() expects chillerlan\QRCode\Common\MaskPattern, chillerlan\QRCode\Common\MaskPattern|null given.'
identifier: argument.type
count: 1
path: src/Decoder/BitMatrix.php
-
rawMessage: 'Parameter #1 $version of class chillerlan\QRCode\Data\QRMatrix constructor expects chillerlan\QRCode\Common\Version, chillerlan\QRCode\Common\Version|null given.'
identifier: argument.type
count: 1
path: src/Decoder/BitMatrix.php
-
rawMessage: 'Parameter #2 $b of method chillerlan\QRCode\Decoder\BitMatrix::numBitsDiffering() expects int, int|null given.'
identifier: argument.type
count: 1
path: src/Decoder/BitMatrix.php
-
rawMessage: 'Parameter #2 $eccLevel of class chillerlan\QRCode\Data\QRMatrix constructor expects chillerlan\QRCode\Common\EccLevel, chillerlan\QRCode\Common\EccLevel|null given.'
identifier: argument.type
count: 1
path: src/Decoder/BitMatrix.php
-
rawMessage: Cannot access property $versionNumber on chillerlan\QRCode\Common\Version|null.
identifier: property.nonObject
count: 1
path: src/Decoder/Decoder.php
-
rawMessage: 'Method chillerlan\QRCode\Decoder\Decoder::__construct() has parameter $options with no value type specified in iterable type iterable.'
identifier: missingType.iterableValue
count: 1
path: src/Decoder/Decoder.php
-
rawMessage: 'Parameter #1 $properties of class chillerlan\QRCode\QROptions constructor expects array<string, mixed>|null, iterable given.'
identifier: argument.type
count: 1
path: src/Decoder/Decoder.php
-
rawMessage: 'Property chillerlan\QRCode\Decoder\Decoder::$options is never read, only written.'
identifier: property.onlyWritten
count: 1
path: src/Decoder/Decoder.php
-
rawMessage: 'Method chillerlan\QRCode\Decoder\ReedSolomonDecoder::deinterleaveRawBytes() return type has no value type specified in iterable type array.'
identifier: missingType.iterableValue
count: 1
path: src/Decoder/ReedSolomonDecoder.php
-
rawMessage: 'Method chillerlan\QRCode\Output\QRFpdf::__construct() has parameter $options with no value type specified in iterable type iterable.'
identifier: missingType.iterableValue
count: 1
path: src/Output/QRFpdf.php
-
rawMessage: 'Method chillerlan\QRCode\Output\QRGdImage::__construct() has parameter $options with no value type specified in iterable type iterable.'
identifier: missingType.iterableValue
count: 1
path: src/Output/QRGdImage.php
-
rawMessage: 'Parameter #1 $properties of class chillerlan\QRCode\QROptions constructor expects array<string, mixed>|null, iterable given.'
identifier: argument.type
count: 1
path: src/Output/QRGdImage.php
-
rawMessage: 'Parameter #1 $width of function imagecreatetruecolor expects int<1, max>, int given.'
identifier: argument.type
count: 1
path: src/Output/QRGdImage.php
-
rawMessage: 'Parameter #2 $height of function imagecreatetruecolor expects int<1, max>, int given.'
identifier: argument.type
count: 1
path: src/Output/QRGdImage.php
-
rawMessage: 'Strict comparison using === between true and false will always evaluate to false.'
identifier: identical.alwaysFalse
count: 1
path: src/Output/QRGdImage.php
-
rawMessage: 'Method chillerlan\QRCode\Output\QRImagick::__construct() has parameter $options with no value type specified in iterable type iterable.'
identifier: missingType.iterableValue
count: 1
path: src/Output/QRImagick.php
-
rawMessage: 'Method chillerlan\QRCode\Output\QRInterventionImage::__construct() has parameter $options with no value type specified in iterable type iterable.'
identifier: missingType.iterableValue
count: 1
path: src/Output/QRInterventionImage.php
-
rawMessage: Cannot access property $currentPattern on chillerlan\QRCode\Common\MaskPattern|null.
identifier: property.nonObject
count: 1
path: src/Output/QRMarkupXML.php
-
rawMessage: 'Method chillerlan\QRCode\Output\QROutputAbstract::__construct() has parameter $options with no value type specified in iterable type iterable.'
identifier: missingType.iterableValue
count: 1
path: src/Output/QROutputAbstract.php
-
rawMessage: 'Parameter #1 $properties of class chillerlan\QRCode\QROptions constructor expects array<string, mixed>|null, iterable given.'
identifier: argument.type
count: 1
path: src/Output/QROutputAbstract.php
-
rawMessage: Cannot access property $currentPattern on chillerlan\QRCode\Common\MaskPattern|null.
identifier: property.nonObject
count: 1
path: src/Output/QRStringJSON.php
-
rawMessage: Cannot access property $versionNumber on chillerlan\QRCode\Common\Version|null.
identifier: property.nonObject
count: 1
path: src/Output/QRStringJSON.php
-
rawMessage: PHPDoc tag @var with type chillerlan\QRCode\Data\QRDataModeInterface is not subtype of native type 'chillerlan\\QRCode\\Data\\AlphaNum'|'chillerlan\\QRCode\\Data\\Byte'|'chillerlan\\QRCode\\Data\\Hanzi'|'chillerlan\\QRCode\\Data\\Kanji'|'chillerlan\\QRCode\\Data\\Number'.
identifier: varTag.nativeType
count: 1
path: src/QRCode.php
-
rawMessage: 'Parameter #1 $properties of class chillerlan\QRCode\QROptions constructor expects array<string, mixed>|null, array<string, mixed>|(chillerlan\Settings\SettingsContainerInterface&iterable) given.'
identifier: argument.type
count: 1
path: src/QRCode.php
-
rawMessage: Set hook for non-virtual property chillerlan\QRCode\QROptions::$fpdfMeasureUnit does not always assign value to it.
identifier: propertySetHook.noAssign
count: 1
path: src/QROptions.php
-
rawMessage: 'Method chillerlan\QRCodeTest\Common\MaskPatternTest::maskPatternProvider() return type has no value type specified in iterable type array.'
identifier: missingType.iterableValue
count: 1
path: tests/Common/MaskPatternTest.php
-
rawMessage: Cannot access property $currentPattern on chillerlan\QRCode\Common\MaskPattern|null.
identifier: property.nonObject
count: 1
path: tests/Data/DataInterfaceTestAbstract.php
-
rawMessage: 'Method chillerlan\QRCodeTest\Data\DataInterfaceTestAbstract::maxLengthProvider() return type with generic class Generator does not specify its types: TKey, TValue, TSend, TReturn'
identifier: missingType.generics
count: 1
path: tests/Data/DataInterfaceTestAbstract.php
-
rawMessage: 'Parameter #1 $string of static method chillerlan\QRCode\Data\QRDataModeInterface::validateString() expects string, string|false given.'
identifier: argument.type
count: 1
path: tests/Data/DataInterfaceTestAbstract.php
-
rawMessage: 'Parameter #1 $data of class chillerlan\QRCode\Data\Byte constructor expects string|null, string|false given.'
identifier: argument.type
count: 1
path: tests/Data/ECITest.php
-
rawMessage: 'Parameter #2 $to_encoding of function mb_convert_encoding expects string, string|null given.'
identifier: argument.type
count: 1
path: tests/Data/ECITest.php
-
rawMessage: 'Method chillerlan\QRCodeTest\Data\HanziTest::hanziProvider() return type with generic class Generator does not specify its types: TKey, TValue, TSend, TReturn'
identifier: missingType.generics
count: 1
path: tests/Data/HanziTest.php
-
rawMessage: 'Method chillerlan\QRCodeTest\Data\KanjiTest::kanjiProvider() return type with generic class Generator does not specify its types: TKey, TValue, TSend, TReturn'
identifier: missingType.generics
count: 1
path: tests/Data/KanjiTest.php
-
rawMessage: 'Parameter #1 $codepoint of function chr expects int<0, 255>, int given.'
identifier: argument.type
count: 2
path: tests/Data/KanjiTest.php
-
rawMessage: Cannot access property $versionNumber on chillerlan\QRCode\Common\Version|null.
identifier: property.nonObject
count: 2
path: tests/Data/QRDataTest.php
-
rawMessage: 'Parameter #1 $blob of method chillerlan\QRCode\QRCode::readFromBlob() expects string, GdImage|string given.'
identifier: argument.type
count: 1
path: tests/Data/QRDataTest.php
-
rawMessage: Cannot access property $level on chillerlan\QRCode\Common\EccLevel|null.
identifier: property.nonObject
count: 1
path: tests/Data/QRMatrixTest.php
-
rawMessage: Cannot access property $versionNumber on chillerlan\QRCode\Common\Version|null.
identifier: property.nonObject
count: 4
path: tests/Data/QRMatrixTest.php
-
rawMessage: 'Method chillerlan\QRCodeTest\Data\QRMatrixTest::matrixProvider() return type with generic class Generator does not specify its types: TKey, TValue, TSend, TReturn'
identifier: missingType.generics
count: 1
path: tests/Data/QRMatrixTest.php
-
rawMessage: Cannot access property $versionNumber on chillerlan\QRCode\Common\Version|null.
identifier: property.nonObject
count: 1
path: tests/QRCodeReaderTestAbstract.php
-
rawMessage: 'Method chillerlan\QRCodeTest\QRCodeReaderTestAbstract::dataTestProvider() return type with generic class Generator does not specify its types: TKey, TValue, TSend, TReturn'
identifier: missingType.generics
count: 1
path: tests/QRCodeReaderTestAbstract.php