Skip to content

Commit 3e357b1

Browse files
committed
:octocat: phpstan happy
1 parent aa5f044 commit 3e357b1

File tree

1 file changed

+154
-0
lines changed

1 file changed

+154
-0
lines changed

phpstan-baseline.neon

Lines changed: 154 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,35 @@
11
parameters:
22
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+
321
-
422
rawMessage: 'Property chillerlan\QRCodeBenchmark\DecoderBenchmark::$imageBlob (string) does not accept GdImage|string.'
523
identifier: assign.propertyType
624
count: 1
725
path: benchmark/DecoderBenchmark.php
826

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+
933
-
1034
rawMessage: 'Parameter #1 $segment of method chillerlan\QRCode\QRCode::addSegment() expects chillerlan\QRCode\Data\QRDataModeInterface, object given.'
1135
identifier: argument.type
@@ -48,6 +72,12 @@ parameters:
4872
count: 1
4973
path: benchmark/parse-common.php
5074

75+
-
76+
rawMessage: Possibly invalid array key type int|null.
77+
identifier: offsetAccess.invalidOffset
78+
count: 1
79+
path: benchmark/parse-common.php
80+
5181
-
5282
rawMessage: 'Function chillerlan\QRCodeBenchmark\parseLine() return type has no value type specified in iterable type array.'
5383
identifier: missingType.iterableValue
@@ -60,12 +90,34 @@ parameters:
6090
count: 1
6191
path: benchmark/parse-result.php
6292

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+
63103
-
64104
rawMessage: 'Property chillerlan\QRCode\QROptions::$eccLevel (int) does not accept string.'
65105
identifier: assign.propertyType
66106
count: 1
67107
path: examples/custom_output.php
68108

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+
69121
-
70122
rawMessage: 'Parameter #1 $width of function imagecreatetruecolor expects int<1, max>, int given.'
71123
identifier: argument.type
@@ -168,6 +220,12 @@ parameters:
168220
count: 1
169221
path: src/Common/Version.php
170222

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+
171229
-
172230
rawMessage: 'Parameter #1 $version of class chillerlan\QRCode\Data\ReedSolomonEncoder constructor expects chillerlan\QRCode\Common\Version, chillerlan\QRCode\Common\Version|null given.'
173231
identifier: argument.type
@@ -204,6 +262,18 @@ parameters:
204262
count: 1
205263
path: src/Decoder/BitMatrix.php
206264

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+
207277
-
208278
rawMessage: 'Property chillerlan\QRCode\Decoder\Decoder::$options is never read, only written.'
209279
identifier: property.onlyWritten
@@ -216,6 +286,24 @@ parameters:
216286
count: 1
217287
path: src/Decoder/ReedSolomonDecoder.php
218288

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+
219307
-
220308
rawMessage: 'Parameter #1 $width of function imagecreatetruecolor expects int<1, max>, int given.'
221309
identifier: argument.type
@@ -228,6 +316,36 @@ parameters:
228316
count: 1
229317
path: src/Output/QRGdImage.php
230318

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+
231349
-
232350
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'.
233351
identifier: varTag.nativeType
@@ -246,6 +364,12 @@ parameters:
246364
count: 1
247365
path: tests/Common/MaskPatternTest.php
248366

367+
-
368+
rawMessage: 'Method chillerlan\QRCodeTest\Data\DataInterfaceTestAbstract::maxLengthProvider() return type with generic class Generator does not specify its types: TKey, TValue, TSend, TReturn'
369+
identifier: missingType.generics
370+
count: 1
371+
path: tests/Data/DataInterfaceTestAbstract.php
372+
249373
-
250374
rawMessage: 'Parameter #1 $string of static method chillerlan\QRCode\Data\QRDataModeInterface::validateString() expects string, string|false given.'
251375
identifier: argument.type
@@ -264,8 +388,38 @@ parameters:
264388
count: 1
265389
path: tests/Data/ECITest.php
266390

391+
-
392+
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+
267409
-
268410
rawMessage: 'Parameter #1 $blob of method chillerlan\QRCode\QRCode::readFromBlob() expects string, GdImage|string given.'
269411
identifier: argument.type
270412
count: 1
271413
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'
423+
identifier: missingType.generics
424+
count: 1
425+
path: tests/QRCodeReaderTestAbstract.php

0 commit comments

Comments
 (0)