Skip to content

Commit 6a3e93b

Browse files
committed
:octocat:
1 parent 02ec24e commit 6a3e93b

File tree

1 file changed

+75
-75
lines changed

1 file changed

+75
-75
lines changed

phpstan-baseline.neon

Lines changed: 75 additions & 75 deletions
Original file line numberDiff line numberDiff line change
@@ -1,277 +1,277 @@
11
parameters:
22
ignoreErrors:
33
-
4-
message: '#^Property chillerlan\\QRCodeBenchmark\\DecoderBenchmark\:\:\$imageBlob \(string\) does not accept GdImage\|string\.$#'
4+
rawMessage: 'Property chillerlan\QRCodeBenchmark\DecoderBenchmark::$imageBlob (string) does not accept GdImage|string.'
55
identifier: assign.propertyType
66
count: 1
77
path: benchmark/DecoderBenchmark.php
88

99
-
10-
message: '#^Parameter \#1 \$segment of method chillerlan\\QRCode\\QRCode\:\:addSegment\(\) expects chillerlan\\QRCode\\Data\\QRDataModeInterface, object given\.$#'
10+
rawMessage: 'Parameter #1 $segment of method chillerlan\QRCode\QRCode::addSegment() expects chillerlan\QRCode\Data\QRDataModeInterface, object given.'
1111
identifier: argument.type
1212
count: 1
1313
path: benchmark/QRCodeBenchmark.php
1414

1515
-
16-
message: '#^Parameter \#2 \$dataSegments of class chillerlan\\QRCode\\Data\\QRData constructor expects array\<chillerlan\\QRCode\\Data\\QRDataModeInterface\>, array\<int, object\> given\.$#'
16+
rawMessage: 'Parameter #2 $dataSegments of class chillerlan\QRCode\Data\QRData constructor expects array<chillerlan\QRCode\Data\QRDataModeInterface>, array<int, object> given.'
1717
identifier: argument.type
1818
count: 2
1919
path: benchmark/QRDataBenchmark.php
2020

2121
-
22-
message: '#^Parameter \#1 \$string of function strtolower expects string, int\|string given\.$#'
22+
rawMessage: 'Parameter #1 $string of function strtolower expects string, int|string given.'
2323
identifier: argument.type
2424
count: 1
2525
path: benchmark/generate-markdown.php
2626

2727
-
28-
message: '#^Offset ''name'' does not exist on array\<int, mixed\>\.$#'
28+
rawMessage: 'Offset ''name'' does not exist on array<int, mixed>.'
2929
identifier: offsetAccess.notFound
3030
count: 1
3131
path: benchmark/parse-common.php
3232

3333
-
34-
message: '#^Offset ''results'' does not exist on array\<int, mixed\>\.$#'
34+
rawMessage: 'Offset ''results'' does not exist on array<int, mixed>.'
3535
identifier: offsetAccess.notFound
3636
count: 1
3737
path: benchmark/parse-common.php
3838

3939
-
40-
message: '#^Offset 0 does not exist on array\{\}\.$#'
40+
rawMessage: 'Offset 0 does not exist on array{}.'
4141
identifier: offsetAccess.notFound
4242
count: 1
4343
path: benchmark/parse-common.php
4444

4545
-
46-
message: '#^Function chillerlan\\QRCodeBenchmark\\parseLine\(\) return type has no value type specified in iterable type array\.$#'
46+
rawMessage: 'Offset int|null might not exist on array<int, non-empty-array<string, non-empty-array<string, array{float, int}>>>.'
47+
identifier: offsetAccess.notFound
48+
count: 1
49+
path: benchmark/parse-common.php
50+
51+
-
52+
rawMessage: 'Function chillerlan\QRCodeBenchmark\parseLine() return type has no value type specified in iterable type array.'
4753
identifier: missingType.iterableValue
4854
count: 1
4955
path: benchmark/parse-result.php
5056

5157
-
52-
message: '#^Parameter \#1 \$string of function trim expects string, string\|false given\.$#'
58+
rawMessage: 'Parameter #1 $string of function trim expects string, string|false given.'
5359
identifier: argument.type
5460
count: 1
5561
path: benchmark/parse-result.php
5662

5763
-
58-
message: '#^Property chillerlan\\QRCode\\QROptions\:\:\$eccLevel \(int\) does not accept string\.$#'
64+
rawMessage: 'Property chillerlan\QRCode\QROptions::$eccLevel (int) does not accept string.'
5965
identifier: assign.propertyType
6066
count: 1
6167
path: examples/custom_output.php
6268

6369
-
64-
message: '#^Parameter \#1 \$width of function imagecreatetruecolor expects int\<1, max\>, int given\.$#'
70+
rawMessage: 'Parameter #1 $width of function imagecreatetruecolor expects int<1, max>, int given.'
6571
identifier: argument.type
6672
count: 1
6773
path: examples/imageWithText.php
6874

6975
-
70-
message: '#^Parameter \#2 \$color of function imagecolortransparent expects int\|null, int\<0, max\>\|false given\.$#'
76+
rawMessage: 'Parameter #2 $color of function imagecolortransparent expects int|null, int<0, max>|false given.'
7177
identifier: argument.type
7278
count: 1
7379
path: examples/imageWithText.php
7480

7581
-
76-
message: '#^Parameter \#2 \$height of function imagecreatetruecolor expects int\<1, max\>, int given\.$#'
82+
rawMessage: 'Parameter #2 $height of function imagecreatetruecolor expects int<1, max>, int given.'
7783
identifier: argument.type
7884
count: 1
7985
path: examples/imageWithText.php
8086

8187
-
82-
message: '#^Parameter \#6 \$color of function imagechar expects int, int\<0, max\>\|false given\.$#'
88+
rawMessage: 'Parameter #6 $color of function imagechar expects int, int<0, max>|false given.'
8389
identifier: argument.type
8490
count: 1
8591
path: examples/imageWithText.php
8692

8793
-
88-
message: '#^Parameter \#6 \$color of function imagefilledrectangle expects int, int\<0, max\>\|false given\.$#'
94+
rawMessage: 'Parameter #6 $color of function imagefilledrectangle expects int, int<0, max>|false given.'
8995
identifier: argument.type
9096
count: 1
9197
path: examples/imageWithText.php
9298

9399
-
94-
message: '#^Parameter \#1 \(Intervention\\Image\\Interfaces\\ImageInterface\|string\) of echo cannot be converted to string\.$#'
100+
rawMessage: 'Parameter #1 (Intervention\Image\Interfaces\ImageInterface|string) of echo cannot be converted to string.'
95101
identifier: echo.nonString
96102
count: 1
97103
path: examples/intervention-image.php
98104

99105
-
100-
message: '#^Method RandomDotsSVGOutput\:\:collectModules\(\) should return array\<int, mixed\> but returns array\<int\|string, list\<mixed\>\>\.$#'
106+
rawMessage: 'Method RandomDotsSVGOutput::collectModules() should return array<int, mixed> but returns array<int|string, list<string>>.'
101107
identifier: return.type
102108
count: 1
103109
path: examples/svgRandomColoredDots.php
104110

105111
-
106-
message: '#^Method RoundQuietzoneSVGoutput\:\:collectModules\(\) should return array\<int, mixed\> but returns array\<int\|string, list\<mixed\>\>\.$#'
112+
rawMessage: 'Parameter #4 $M_TYPE_LAYER of method chillerlan\QRCode\Output\QRMarkupSVG::moduleTransform() expects int, int|string given.'
113+
identifier: argument.type
114+
count: 1
115+
path: examples/svgRandomColoredDots.php
116+
117+
-
118+
rawMessage: 'Method RoundQuietzoneSVGoutput::collectModules() should return array<int, mixed> but returns array<int|string, list<string>>.'
107119
identifier: return.type
108120
count: 1
109121
path: examples/svgRoundQuietzone.php
110122

111123
-
112-
message: '#^Parameter \#1 \$data of function imagecreatefromstring expects string, string\|false given\.$#'
124+
rawMessage: 'Parameter #4 $M_TYPE_LAYER of method chillerlan\QRCode\Output\QRMarkupSVG::moduleTransform() expects int, int|string given.'
113125
identifier: argument.type
114126
count: 1
115-
path: src/Common/GDLuminanceSource.php
127+
path: examples/svgRoundQuietzone.php
116128

117129
-
118-
message: '#^Parameter \#1 \$gdImage of class chillerlan\\QRCode\\Common\\GDLuminanceSource constructor expects GdImage, GdImage\|false given\.$#'
130+
rawMessage: 'Parameter #1 $data of function imagecreatefromstring expects string, string|false given.'
119131
identifier: argument.type
120-
count: 2
132+
count: 1
121133
path: src/Common/GDLuminanceSource.php
122134

123135
-
124-
message: '#^Parameter \#2 \$color of function imagecolorsforindex expects int, int\<0, max\>\|false given\.$#'
136+
rawMessage: 'Parameter #1 $gdImage of class chillerlan\QRCode\Common\GDLuminanceSource constructor expects GdImage, GdImage|false given.'
125137
identifier: argument.type
126-
count: 1
138+
count: 2
127139
path: src/Common/GDLuminanceSource.php
128140

129141
-
130-
message: '#^Parameter \#1 \$maskPattern of class chillerlan\\QRCode\\Common\\MaskPattern constructor expects int, int\|false given\.$#'
142+
rawMessage: 'Parameter #2 $color of function imagecolorsforindex expects int, int<0, max>|false given.'
131143
identifier: argument.type
132144
count: 1
133-
path: src/Common/MaskPattern.php
145+
path: src/Common/GDLuminanceSource.php
134146

135147
-
136-
message: '#^Method chillerlan\\QRCode\\Common\\Version\:\:getRSBlocks\(\) return type has no value type specified in iterable type array\.$#'
137-
identifier: missingType.iterableValue
138-
count: 1
139-
path: src/Common/Version.php
148+
rawMessage: 'Offset int<min, -1>|int<1, max> might not exist on array{0, 0, 1, 25, 2, 50, 26, 198, ...}.'
149+
identifier: offsetAccess.notFound
150+
count: 3
151+
path: src/Common/GF256.php
140152

141153
-
142-
message: '#^Parameter \#1 \$encoding of function mb_detect_order expects non\-empty\-list\<non\-falsy\-string\>\|non\-falsy\-string\|null, array\{string, ''UTF\-8'', ''GB2312'', ''GB18030'', ''CP936'', ''EUC\-CN'', ''HZ''\} given\.$#'
154+
rawMessage: 'Parameter #1 $maskPattern of class chillerlan\QRCode\Common\MaskPattern constructor expects int, int|false given.'
143155
identifier: argument.type
144156
count: 1
145-
path: src/Data/Hanzi.php
157+
path: src/Common/MaskPattern.php
146158

147159
-
148-
message: '#^Parameter \#1 \$encoding of function mb_detect_order expects non\-empty\-list\<non\-falsy\-string\>\|non\-falsy\-string\|null, array\{string, ''UTF\-8'', ''SJIS'', ''SJIS\-2004''\} given\.$#'
149-
identifier: argument.type
160+
rawMessage: 'Method chillerlan\QRCode\Common\Version::getRSBlocks() return type has no value type specified in iterable type array.'
161+
identifier: missingType.iterableValue
150162
count: 1
151-
path: src/Data/Kanji.php
163+
path: src/Common/Version.php
152164

153165
-
154-
message: '#^Parameter \#1 \$version of class chillerlan\\QRCode\\Data\\ReedSolomonEncoder constructor expects chillerlan\\QRCode\\Common\\Version, chillerlan\\QRCode\\Common\\Version\|null given\.$#'
166+
rawMessage: 'Parameter #1 $version of class chillerlan\QRCode\Data\ReedSolomonEncoder constructor expects chillerlan\QRCode\Common\Version, chillerlan\QRCode\Common\Version|null given.'
155167
identifier: argument.type
156168
count: 1
157169
path: src/Data/QRMatrix.php
158170

159171
-
160-
message: '#^Parameter \#2 \$eccLevel of class chillerlan\\QRCode\\Data\\ReedSolomonEncoder constructor expects chillerlan\\QRCode\\Common\\EccLevel, chillerlan\\QRCode\\Common\\EccLevel\|null given\.$#'
172+
rawMessage: 'Parameter #2 $eccLevel of class chillerlan\QRCode\Data\ReedSolomonEncoder constructor expects chillerlan\QRCode\Common\EccLevel, chillerlan\QRCode\Common\EccLevel|null given.'
161173
identifier: argument.type
162174
count: 1
163175
path: src/Data/QRMatrix.php
164176

165177
-
166-
message: '#^Parameter \#1 \$maskPattern of method chillerlan\\QRCode\\Data\\QRMatrix\:\:mask\(\) expects chillerlan\\QRCode\\Common\\MaskPattern, chillerlan\\QRCode\\Common\\MaskPattern\|null given\.$#'
178+
rawMessage: 'Parameter #1 $maskPattern of method chillerlan\QRCode\Data\QRMatrix::mask() expects chillerlan\QRCode\Common\MaskPattern, chillerlan\QRCode\Common\MaskPattern|null given.'
167179
identifier: argument.type
168180
count: 1
169181
path: src/Decoder/BitMatrix.php
170182

171183
-
172-
message: '#^Parameter \#1 \$version of class chillerlan\\QRCode\\Data\\QRMatrix constructor expects chillerlan\\QRCode\\Common\\Version, chillerlan\\QRCode\\Common\\Version\|null given\.$#'
184+
rawMessage: 'Parameter #1 $version of class chillerlan\QRCode\Data\QRMatrix constructor expects chillerlan\QRCode\Common\Version, chillerlan\QRCode\Common\Version|null given.'
173185
identifier: argument.type
174186
count: 1
175187
path: src/Decoder/BitMatrix.php
176188

177189
-
178-
message: '#^Parameter \#2 \$b of method chillerlan\\QRCode\\Decoder\\BitMatrix\:\:numBitsDiffering\(\) expects int, int\|null given\.$#'
190+
rawMessage: 'Parameter #2 $b of method chillerlan\QRCode\Decoder\BitMatrix::numBitsDiffering() expects int, int|null given.'
179191
identifier: argument.type
180192
count: 1
181193
path: src/Decoder/BitMatrix.php
182194

183195
-
184-
message: '#^Parameter \#2 \$eccLevel of class chillerlan\\QRCode\\Data\\QRMatrix constructor expects chillerlan\\QRCode\\Common\\EccLevel, chillerlan\\QRCode\\Common\\EccLevel\|null given\.$#'
196+
rawMessage: 'Parameter #2 $eccLevel of class chillerlan\QRCode\Data\QRMatrix constructor expects chillerlan\QRCode\Common\EccLevel, chillerlan\QRCode\Common\EccLevel|null given.'
185197
identifier: argument.type
186198
count: 1
187199
path: src/Decoder/BitMatrix.php
188200

189201
-
190-
message: '#^Property chillerlan\\QRCode\\Decoder\\Decoder\:\:\$options is never read, only written\.$#'
202+
rawMessage: 'Property chillerlan\QRCode\Decoder\Decoder::$options is never read, only written.'
191203
identifier: property.onlyWritten
192204
count: 1
193205
path: src/Decoder/Decoder.php
194206

195207
-
196-
message: '#^Method chillerlan\\QRCode\\Decoder\\ReedSolomonDecoder\:\:deinterleaveRawBytes\(\) return type has no value type specified in iterable type array\.$#'
208+
rawMessage: 'Method chillerlan\QRCode\Decoder\ReedSolomonDecoder::deinterleaveRawBytes() return type has no value type specified in iterable type array.'
197209
identifier: missingType.iterableValue
198210
count: 1
199211
path: src/Decoder/ReedSolomonDecoder.php
200212

201213
-
202-
message: '#^Parameter \#1 \$width of function imagecreatetruecolor expects int\<1, max\>, int given\.$#'
214+
rawMessage: 'Parameter #1 $width of function imagecreatetruecolor expects int<1, max>, int given.'
203215
identifier: argument.type
204216
count: 1
205217
path: src/Output/QRGdImage.php
206218

207219
-
208-
message: '#^Parameter \#2 \$height of function imagecreatetruecolor expects int\<1, max\>, int given\.$#'
220+
rawMessage: 'Parameter #2 $height of function imagecreatetruecolor expects int<1, max>, int given.'
209221
identifier: argument.type
210222
count: 1
211223
path: src/Output/QRGdImage.php
212224

213225
-
214-
message: '#^Method chillerlan\\QRCodeTest\\Common\\MaskPatternTest\:\:assertMask\(\) has parameter \$expected with no value type specified in iterable type array\.$#'
215-
identifier: missingType.iterableValue
226+
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'.
227+
identifier: varTag.nativeType
216228
count: 1
217-
path: tests/Common/MaskPatternTest.php
229+
path: src/QRCode.php
230+
231+
-
232+
rawMessage: 'Parameter #1 $properties of class chillerlan\QRCode\QROptions constructor expects array<string, mixed>|null, array<string, mixed>|(chillerlan\Settings\SettingsContainerInterface&iterable) given.'
233+
identifier: argument.type
234+
count: 1
235+
path: src/QRCode.php
218236

219237
-
220-
message: '#^Method chillerlan\\QRCodeTest\\Common\\MaskPatternTest\:\:maskPatternProvider\(\) return type has no value type specified in iterable type array\.$#'
238+
rawMessage: 'Method chillerlan\QRCodeTest\Common\MaskPatternTest::assertMask() has parameter $expected with no value type specified in iterable type array.'
221239
identifier: missingType.iterableValue
222240
count: 1
223241
path: tests/Common/MaskPatternTest.php
224242

225243
-
226-
message: '#^Method chillerlan\\QRCodeTest\\Common\\MaskPatternTest\:\:testMask\(\) has parameter \$expected with no value type specified in iterable type array\.$#'
244+
rawMessage: 'Method chillerlan\QRCodeTest\Common\MaskPatternTest::maskPatternProvider() return type has no value type specified in iterable type array.'
227245
identifier: missingType.iterableValue
228246
count: 1
229247
path: tests/Common/MaskPatternTest.php
230248

231249
-
232-
message: '#^Catching internal class PHPUnit\\Framework\\ExpectationFailedException\.$#'
233-
identifier: catch.internalClass
250+
rawMessage: 'Method chillerlan\QRCodeTest\Common\MaskPatternTest::testMask() has parameter $expected with no value type specified in iterable type array.'
251+
identifier: missingType.iterableValue
234252
count: 1
235-
path: tests/Data/DataInterfaceTestAbstract.php
253+
path: tests/Common/MaskPatternTest.php
236254

237255
-
238-
message: '#^Parameter \#1 \$string of static method chillerlan\\QRCode\\Data\\QRDataModeInterface\:\:validateString\(\) expects string, string\|false given\.$#'
256+
rawMessage: 'Parameter #1 $string of static method chillerlan\QRCode\Data\QRDataModeInterface::validateString() expects string, string|false given.'
239257
identifier: argument.type
240258
count: 1
241259
path: tests/Data/DataInterfaceTestAbstract.php
242260

243261
-
244-
message: '#^Parameter \#1 \$data of class chillerlan\\QRCode\\Data\\Byte constructor expects string, string\|false given\.$#'
262+
rawMessage: 'Parameter #1 $data of class chillerlan\QRCode\Data\Byte constructor expects string, string|false given.'
245263
identifier: argument.type
246264
count: 1
247265
path: tests/Data/ECITest.php
248266

249267
-
250-
message: '#^Parameter \#2 \$to_encoding of function mb_convert_encoding expects string, string\|null given\.$#'
268+
rawMessage: 'Parameter #2 $to_encoding of function mb_convert_encoding expects string, string|null given.'
251269
identifier: argument.type
252270
count: 1
253271
path: tests/Data/ECITest.php
254272

255273
-
256-
message: '#^Parameter \#1 \$string of function bin2hex expects string, string\|false given\.$#'
257-
identifier: argument.type
258-
count: 1
259-
path: tests/Data/HanziTest.php
260-
261-
-
262-
message: '#^Anonymous function should return string but returns string\|false\.$#'
263-
identifier: return.type
264-
count: 1
265-
path: tests/Data/KanjiTest.php
266-
267-
-
268-
message: '#^Parameter \#1 \$string of function bin2hex expects string, string\|false given\.$#'
269-
identifier: argument.type
270-
count: 1
271-
path: tests/Data/KanjiTest.php
272-
273-
-
274-
message: '#^Parameter \#1 \$blob of method chillerlan\\QRCode\\QRCode\:\:readFromBlob\(\) expects string, GdImage\|string given\.$#'
274+
rawMessage: 'Parameter #1 $blob of method chillerlan\QRCode\QRCode::readFromBlob() expects string, GdImage|string given.'
275275
identifier: argument.type
276276
count: 1
277277
path: tests/Data/QRDataTest.php

0 commit comments

Comments
 (0)