You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: phpstan-baseline.neon
+154Lines changed: 154 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -1,11 +1,35 @@
1
1
parameters:
2
2
ignoreErrors:
3
+
-
4
+
rawMessage:'Method chillerlan\QRCodeBenchmark\BenchmarkAbstract::dataModeProvider() return type with generic class Generator does not specify its types: TKey, TValue, TSend, TReturn'
5
+
identifier:missingType.generics
6
+
count:1
7
+
path:benchmark/BenchmarkAbstract.php
8
+
9
+
-
10
+
rawMessage:'Method chillerlan\QRCodeBenchmark\BenchmarkAbstract::eccLevelProvider() return type with generic class Generator does not specify its types: TKey, TValue, TSend, TReturn'
11
+
identifier:missingType.generics
12
+
count:1
13
+
path:benchmark/BenchmarkAbstract.php
14
+
15
+
-
16
+
rawMessage:'Method chillerlan\QRCodeBenchmark\BenchmarkAbstract::versionProvider() return type with generic class Generator does not specify its types: TKey, TValue, TSend, TReturn'
17
+
identifier:missingType.generics
18
+
count:1
19
+
path:benchmark/BenchmarkAbstract.php
20
+
3
21
-
4
22
rawMessage:'Property chillerlan\QRCodeBenchmark\DecoderBenchmark::$imageBlob (string) does not accept GdImage|string.'
5
23
identifier:assign.propertyType
6
24
count:1
7
25
path:benchmark/DecoderBenchmark.php
8
26
27
+
-
28
+
rawMessage:'Method chillerlan\QRCodeBenchmark\MaskPatternBenchmark::versionProvider() return type with generic class Generator does not specify its types: TKey, TValue, TSend, TReturn'
29
+
identifier:missingType.generics
30
+
count:1
31
+
path:benchmark/MaskPatternBenchmark.php
32
+
9
33
-
10
34
rawMessage:'Parameter #1 $segment of method chillerlan\QRCode\QRCode::addSegment() expects chillerlan\QRCode\Data\QRDataModeInterface, object given.'
11
35
identifier:argument.type
@@ -48,6 +72,12 @@ parameters:
48
72
count:1
49
73
path:benchmark/parse-common.php
50
74
75
+
-
76
+
rawMessage:Possibly invalid array key type int|null.
77
+
identifier:offsetAccess.invalidOffset
78
+
count:1
79
+
path:benchmark/parse-common.php
80
+
51
81
-
52
82
rawMessage:'Function chillerlan\QRCodeBenchmark\parseLine() return type has no value type specified in iterable type array.'
53
83
identifier:missingType.iterableValue
@@ -60,12 +90,34 @@ parameters:
60
90
count:1
61
91
path:benchmark/parse-result.php
62
92
93
+
-
94
+
rawMessage:'''
95
+
Call to deprecated method getUri() of class chillerlan\Authenticator\Authenticator:
96
+
5.3.0 The parameter `$omitSettings` will be removed in favor of `AuthenticatorOptions::$omitUriSettings`
97
+
in the next major version (6.x)
98
+
'''
99
+
identifier:method.deprecated
100
+
count:1
101
+
path:examples/authenticator.php
102
+
63
103
-
64
104
rawMessage:'Property chillerlan\QRCode\QROptions::$eccLevel (int) does not accept string.'
65
105
identifier:assign.propertyType
66
106
count:1
67
107
path:examples/custom_output.php
68
108
109
+
-
110
+
rawMessage:'Method QRGdRounded::__construct() has parameter $options with no value type specified in iterable type iterable.'
111
+
identifier:missingType.iterableValue
112
+
count:1
113
+
path:examples/imageWithRoundedShapes.php
114
+
115
+
-
116
+
rawMessage:'Parameter #1 $properties of class chillerlan\QRCode\QROptions constructor expects array<string, mixed>|null, iterable given.'
117
+
identifier:argument.type
118
+
count:1
119
+
path:examples/imageWithRoundedShapes.php
120
+
69
121
-
70
122
rawMessage:'Parameter #1 $width of function imagecreatetruecolor expects int<1, max>, int given.'
71
123
identifier:argument.type
@@ -168,6 +220,12 @@ parameters:
168
220
count:1
169
221
path:src/Common/Version.php
170
222
223
+
-
224
+
rawMessage:'Parameter #1 $codepoint of function chr expects int<0, 255>, int given.'
225
+
identifier:argument.type
226
+
count:1
227
+
path:src/Data/Byte.php
228
+
171
229
-
172
230
rawMessage:'Parameter #1 $version of class chillerlan\QRCode\Data\ReedSolomonEncoder constructor expects chillerlan\QRCode\Common\Version, chillerlan\QRCode\Common\Version|null given.'
173
231
identifier:argument.type
@@ -204,6 +262,18 @@ parameters:
204
262
count:1
205
263
path:src/Decoder/BitMatrix.php
206
264
265
+
-
266
+
rawMessage:'Method chillerlan\QRCode\Decoder\Decoder::__construct() has parameter $options with no value type specified in iterable type iterable.'
267
+
identifier:missingType.iterableValue
268
+
count:1
269
+
path:src/Decoder/Decoder.php
270
+
271
+
-
272
+
rawMessage:'Parameter #1 $properties of class chillerlan\QRCode\QROptions constructor expects array<string, mixed>|null, iterable given.'
273
+
identifier:argument.type
274
+
count:1
275
+
path:src/Decoder/Decoder.php
276
+
207
277
-
208
278
rawMessage:'Property chillerlan\QRCode\Decoder\Decoder::$options is never read, only written.'
209
279
identifier:property.onlyWritten
@@ -216,6 +286,24 @@ parameters:
216
286
count:1
217
287
path:src/Decoder/ReedSolomonDecoder.php
218
288
289
+
-
290
+
rawMessage:'Method chillerlan\QRCode\Output\QRFpdf::__construct() has parameter $options with no value type specified in iterable type iterable.'
291
+
identifier:missingType.iterableValue
292
+
count:1
293
+
path:src/Output/QRFpdf.php
294
+
295
+
-
296
+
rawMessage:'Method chillerlan\QRCode\Output\QRGdImage::__construct() has parameter $options with no value type specified in iterable type iterable.'
297
+
identifier:missingType.iterableValue
298
+
count:1
299
+
path:src/Output/QRGdImage.php
300
+
301
+
-
302
+
rawMessage:'Parameter #1 $properties of class chillerlan\QRCode\QROptions constructor expects array<string, mixed>|null, iterable given.'
303
+
identifier:argument.type
304
+
count:1
305
+
path:src/Output/QRGdImage.php
306
+
219
307
-
220
308
rawMessage:'Parameter #1 $width of function imagecreatetruecolor expects int<1, max>, int given.'
221
309
identifier:argument.type
@@ -228,6 +316,36 @@ parameters:
228
316
count:1
229
317
path:src/Output/QRGdImage.php
230
318
319
+
-
320
+
rawMessage:'Strict comparison using === between true and false will always evaluate to false.'
321
+
identifier:identical.alwaysFalse
322
+
count:1
323
+
path:src/Output/QRGdImage.php
324
+
325
+
-
326
+
rawMessage:'Method chillerlan\QRCode\Output\QRImagick::__construct() has parameter $options with no value type specified in iterable type iterable.'
327
+
identifier:missingType.iterableValue
328
+
count:1
329
+
path:src/Output/QRImagick.php
330
+
331
+
-
332
+
rawMessage:'Method chillerlan\QRCode\Output\QRInterventionImage::__construct() has parameter $options with no value type specified in iterable type iterable.'
333
+
identifier:missingType.iterableValue
334
+
count:1
335
+
path:src/Output/QRInterventionImage.php
336
+
337
+
-
338
+
rawMessage:'Method chillerlan\QRCode\Output\QROutputAbstract::__construct() has parameter $options with no value type specified in iterable type iterable.'
339
+
identifier:missingType.iterableValue
340
+
count:1
341
+
path:src/Output/QROutputAbstract.php
342
+
343
+
-
344
+
rawMessage:'Parameter #1 $properties of class chillerlan\QRCode\QROptions constructor expects array<string, mixed>|null, iterable given.'
345
+
identifier:argument.type
346
+
count:1
347
+
path:src/Output/QROutputAbstract.php
348
+
231
349
-
232
350
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'.
233
351
identifier:varTag.nativeType
@@ -246,6 +364,12 @@ parameters:
246
364
count:1
247
365
path:tests/Common/MaskPatternTest.php
248
366
367
+
-
368
+
rawMessage:'Method chillerlan\QRCodeTest\Data\DataInterfaceTestAbstract::maxLengthProvider() return type with generic class Generator does not specify its types: TKey, TValue, TSend, TReturn'
rawMessage:'Method chillerlan\QRCodeTest\Data\HanziTest::hanziProvider() return type with generic class Generator does not specify its types: TKey, TValue, TSend, TReturn'
393
+
identifier:missingType.generics
394
+
count:1
395
+
path:tests/Data/HanziTest.php
396
+
397
+
-
398
+
rawMessage:'Method chillerlan\QRCodeTest\Data\KanjiTest::kanjiProvider() return type with generic class Generator does not specify its types: TKey, TValue, TSend, TReturn'
399
+
identifier:missingType.generics
400
+
count:1
401
+
path:tests/Data/KanjiTest.php
402
+
403
+
-
404
+
rawMessage:'Parameter #1 $codepoint of function chr expects int<0, 255>, int given.'
405
+
identifier:argument.type
406
+
count:2
407
+
path:tests/Data/KanjiTest.php
408
+
267
409
-
268
410
rawMessage:'Parameter #1 $blob of method chillerlan\QRCode\QRCode::readFromBlob() expects string, GdImage|string given.'
269
411
identifier:argument.type
270
412
count:1
271
413
path:tests/Data/QRDataTest.php
414
+
415
+
-
416
+
rawMessage:'Method chillerlan\QRCodeTest\Data\QRMatrixTest::matrixProvider() return type with generic class Generator does not specify its types: TKey, TValue, TSend, TReturn'
417
+
identifier:missingType.generics
418
+
count:1
419
+
path:tests/Data/QRMatrixTest.php
420
+
421
+
-
422
+
rawMessage:'Method chillerlan\QRCodeTest\QRCodeReaderTestAbstract::dataTestProvider() return type with generic class Generator does not specify its types: TKey, TValue, TSend, TReturn'
0 commit comments