|
1 | 1 | parameters: |
2 | 2 | ignoreErrors: |
3 | 3 | - |
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.' |
5 | 5 | identifier: assign.propertyType |
6 | 6 | count: 1 |
7 | 7 | path: benchmark/DecoderBenchmark.php |
8 | 8 |
|
9 | 9 | - |
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.' |
11 | 11 | identifier: argument.type |
12 | 12 | count: 1 |
13 | 13 | path: benchmark/QRCodeBenchmark.php |
14 | 14 |
|
15 | 15 | - |
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.' |
17 | 17 | identifier: argument.type |
18 | 18 | count: 2 |
19 | 19 | path: benchmark/QRDataBenchmark.php |
20 | 20 |
|
21 | 21 | - |
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.' |
23 | 23 | identifier: argument.type |
24 | 24 | count: 1 |
25 | 25 | path: benchmark/generate-markdown.php |
26 | 26 |
|
27 | 27 | - |
28 | | - message: '#^Offset ''name'' does not exist on array\<int, mixed\>\.$#' |
| 28 | + rawMessage: 'Offset ''name'' does not exist on array<int, mixed>.' |
29 | 29 | identifier: offsetAccess.notFound |
30 | 30 | count: 1 |
31 | 31 | path: benchmark/parse-common.php |
32 | 32 |
|
33 | 33 | - |
34 | | - message: '#^Offset ''results'' does not exist on array\<int, mixed\>\.$#' |
| 34 | + rawMessage: 'Offset ''results'' does not exist on array<int, mixed>.' |
35 | 35 | identifier: offsetAccess.notFound |
36 | 36 | count: 1 |
37 | 37 | path: benchmark/parse-common.php |
38 | 38 |
|
39 | 39 | - |
40 | | - message: '#^Offset 0 does not exist on array\{\}\.$#' |
| 40 | + rawMessage: 'Offset 0 does not exist on array{}.' |
41 | 41 | identifier: offsetAccess.notFound |
42 | 42 | count: 1 |
43 | 43 | path: benchmark/parse-common.php |
44 | 44 |
|
45 | 45 | - |
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.' |
47 | 53 | identifier: missingType.iterableValue |
48 | 54 | count: 1 |
49 | 55 | path: benchmark/parse-result.php |
50 | 56 |
|
51 | 57 | - |
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.' |
53 | 59 | identifier: argument.type |
54 | 60 | count: 1 |
55 | 61 | path: benchmark/parse-result.php |
56 | 62 |
|
57 | 63 | - |
58 | | - message: '#^Property chillerlan\\QRCode\\QROptions\:\:\$eccLevel \(int\) does not accept string\.$#' |
| 64 | + rawMessage: 'Property chillerlan\QRCode\QROptions::$eccLevel (int) does not accept string.' |
59 | 65 | identifier: assign.propertyType |
60 | 66 | count: 1 |
61 | 67 | path: examples/custom_output.php |
62 | 68 |
|
63 | 69 | - |
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.' |
65 | 71 | identifier: argument.type |
66 | 72 | count: 1 |
67 | 73 | path: examples/imageWithText.php |
68 | 74 |
|
69 | 75 | - |
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.' |
71 | 77 | identifier: argument.type |
72 | 78 | count: 1 |
73 | 79 | path: examples/imageWithText.php |
74 | 80 |
|
75 | 81 | - |
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.' |
77 | 83 | identifier: argument.type |
78 | 84 | count: 1 |
79 | 85 | path: examples/imageWithText.php |
80 | 86 |
|
81 | 87 | - |
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.' |
83 | 89 | identifier: argument.type |
84 | 90 | count: 1 |
85 | 91 | path: examples/imageWithText.php |
86 | 92 |
|
87 | 93 | - |
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.' |
89 | 95 | identifier: argument.type |
90 | 96 | count: 1 |
91 | 97 | path: examples/imageWithText.php |
92 | 98 |
|
93 | 99 | - |
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.' |
95 | 101 | identifier: echo.nonString |
96 | 102 | count: 1 |
97 | 103 | path: examples/intervention-image.php |
98 | 104 |
|
99 | 105 | - |
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>>.' |
101 | 107 | identifier: return.type |
102 | 108 | count: 1 |
103 | 109 | path: examples/svgRandomColoredDots.php |
104 | 110 |
|
105 | 111 | - |
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>>.' |
107 | 119 | identifier: return.type |
108 | 120 | count: 1 |
109 | 121 | path: examples/svgRoundQuietzone.php |
110 | 122 |
|
111 | 123 | - |
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.' |
113 | 125 | identifier: argument.type |
114 | 126 | count: 1 |
115 | | - path: src/Common/GDLuminanceSource.php |
| 127 | + path: examples/svgRoundQuietzone.php |
116 | 128 |
|
117 | 129 | - |
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.' |
119 | 131 | identifier: argument.type |
120 | | - count: 2 |
| 132 | + count: 1 |
121 | 133 | path: src/Common/GDLuminanceSource.php |
122 | 134 |
|
123 | 135 | - |
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.' |
125 | 137 | identifier: argument.type |
126 | | - count: 1 |
| 138 | + count: 2 |
127 | 139 | path: src/Common/GDLuminanceSource.php |
128 | 140 |
|
129 | 141 | - |
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.' |
131 | 143 | identifier: argument.type |
132 | 144 | count: 1 |
133 | | - path: src/Common/MaskPattern.php |
| 145 | + path: src/Common/GDLuminanceSource.php |
134 | 146 |
|
135 | 147 | - |
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 |
140 | 152 |
|
141 | 153 | - |
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.' |
143 | 155 | identifier: argument.type |
144 | 156 | count: 1 |
145 | | - path: src/Data/Hanzi.php |
| 157 | + path: src/Common/MaskPattern.php |
146 | 158 |
|
147 | 159 | - |
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 |
150 | 162 | count: 1 |
151 | | - path: src/Data/Kanji.php |
| 163 | + path: src/Common/Version.php |
152 | 164 |
|
153 | 165 | - |
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.' |
155 | 167 | identifier: argument.type |
156 | 168 | count: 1 |
157 | 169 | path: src/Data/QRMatrix.php |
158 | 170 |
|
159 | 171 | - |
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.' |
161 | 173 | identifier: argument.type |
162 | 174 | count: 1 |
163 | 175 | path: src/Data/QRMatrix.php |
164 | 176 |
|
165 | 177 | - |
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.' |
167 | 179 | identifier: argument.type |
168 | 180 | count: 1 |
169 | 181 | path: src/Decoder/BitMatrix.php |
170 | 182 |
|
171 | 183 | - |
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.' |
173 | 185 | identifier: argument.type |
174 | 186 | count: 1 |
175 | 187 | path: src/Decoder/BitMatrix.php |
176 | 188 |
|
177 | 189 | - |
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.' |
179 | 191 | identifier: argument.type |
180 | 192 | count: 1 |
181 | 193 | path: src/Decoder/BitMatrix.php |
182 | 194 |
|
183 | 195 | - |
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.' |
185 | 197 | identifier: argument.type |
186 | 198 | count: 1 |
187 | 199 | path: src/Decoder/BitMatrix.php |
188 | 200 |
|
189 | 201 | - |
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.' |
191 | 203 | identifier: property.onlyWritten |
192 | 204 | count: 1 |
193 | 205 | path: src/Decoder/Decoder.php |
194 | 206 |
|
195 | 207 | - |
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.' |
197 | 209 | identifier: missingType.iterableValue |
198 | 210 | count: 1 |
199 | 211 | path: src/Decoder/ReedSolomonDecoder.php |
200 | 212 |
|
201 | 213 | - |
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.' |
203 | 215 | identifier: argument.type |
204 | 216 | count: 1 |
205 | 217 | path: src/Output/QRGdImage.php |
206 | 218 |
|
207 | 219 | - |
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.' |
209 | 221 | identifier: argument.type |
210 | 222 | count: 1 |
211 | 223 | path: src/Output/QRGdImage.php |
212 | 224 |
|
213 | 225 | - |
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 |
216 | 228 | 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 |
218 | 236 |
|
219 | 237 | - |
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.' |
221 | 239 | identifier: missingType.iterableValue |
222 | 240 | count: 1 |
223 | 241 | path: tests/Common/MaskPatternTest.php |
224 | 242 |
|
225 | 243 | - |
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.' |
227 | 245 | identifier: missingType.iterableValue |
228 | 246 | count: 1 |
229 | 247 | path: tests/Common/MaskPatternTest.php |
230 | 248 |
|
231 | 249 | - |
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 |
234 | 252 | count: 1 |
235 | | - path: tests/Data/DataInterfaceTestAbstract.php |
| 253 | + path: tests/Common/MaskPatternTest.php |
236 | 254 |
|
237 | 255 | - |
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.' |
239 | 257 | identifier: argument.type |
240 | 258 | count: 1 |
241 | 259 | path: tests/Data/DataInterfaceTestAbstract.php |
242 | 260 |
|
243 | 261 | - |
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.' |
245 | 263 | identifier: argument.type |
246 | 264 | count: 1 |
247 | 265 | path: tests/Data/ECITest.php |
248 | 266 |
|
249 | 267 | - |
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.' |
251 | 269 | identifier: argument.type |
252 | 270 | count: 1 |
253 | 271 | path: tests/Data/ECITest.php |
254 | 272 |
|
255 | 273 | - |
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.' |
275 | 275 | identifier: argument.type |
276 | 276 | count: 1 |
277 | 277 | path: tests/Data/QRDataTest.php |
0 commit comments