|
2 | 2 |
|
3 | 3 | $ignoreErrors = [];
|
4 | 4 | $ignoreErrors[] = [
|
5 |
| - // identifier: foreach.nonIterable |
6 |
| - 'message' => '#^Argument of an invalid type array\\|Countable supplied for foreach, only iterables are supported\\.$#', |
7 |
| - 'count' => 1, |
8 |
| - 'path' => __DIR__ . '/src/Secure.php', |
9 |
| -]; |
10 |
| -$ignoreErrors[] = [ |
11 |
| - // identifier: offsetAccess.nonOffsetAccessible |
12 |
| - 'message' => '#^Cannot access offset \'name\' on mixed\\.$#', |
13 |
| - 'count' => 3, |
14 |
| - 'path' => __DIR__ . '/src/Secure.php', |
15 |
| -]; |
16 |
| -$ignoreErrors[] = [ |
17 |
| - // identifier: missingType.return |
18 | 5 | 'message' => '#^Method PHPDevsr\\\\Spreadsheet\\\\Secure\\:\\:_convertPasswordToKey\\(\\) has no return type specified\\.$#',
|
| 6 | + 'identifier' => 'missingType.return', |
19 | 7 | 'count' => 1,
|
20 | 8 | 'path' => __DIR__ . '/src/Secure.php',
|
21 | 9 | ];
|
22 | 10 | $ignoreErrors[] = [
|
23 |
| - // identifier: missingType.parameter |
24 | 11 | 'message' => '#^Method PHPDevsr\\\\Spreadsheet\\\\Secure\\:\\:_convertPasswordToKey\\(\\) has parameter \\$blockKey with no type specified\\.$#',
|
| 12 | + 'identifier' => 'missingType.parameter', |
25 | 13 | 'count' => 1,
|
26 | 14 | 'path' => __DIR__ . '/src/Secure.php',
|
27 | 15 | ];
|
28 | 16 | $ignoreErrors[] = [
|
29 |
| - // identifier: missingType.parameter |
30 | 17 | 'message' => '#^Method PHPDevsr\\\\Spreadsheet\\\\Secure\\:\\:_convertPasswordToKey\\(\\) has parameter \\$hashAlgorithm with no type specified\\.$#',
|
| 18 | + 'identifier' => 'missingType.parameter', |
31 | 19 | 'count' => 1,
|
32 | 20 | 'path' => __DIR__ . '/src/Secure.php',
|
33 | 21 | ];
|
34 | 22 | $ignoreErrors[] = [
|
35 |
| - // identifier: missingType.parameter |
36 | 23 | 'message' => '#^Method PHPDevsr\\\\Spreadsheet\\\\Secure\\:\\:_convertPasswordToKey\\(\\) has parameter \\$keyBits with no type specified\\.$#',
|
| 24 | + 'identifier' => 'missingType.parameter', |
37 | 25 | 'count' => 1,
|
38 | 26 | 'path' => __DIR__ . '/src/Secure.php',
|
39 | 27 | ];
|
40 | 28 | $ignoreErrors[] = [
|
41 |
| - // identifier: missingType.parameter |
42 | 29 | 'message' => '#^Method PHPDevsr\\\\Spreadsheet\\\\Secure\\:\\:_convertPasswordToKey\\(\\) has parameter \\$password with no type specified\\.$#',
|
| 30 | + 'identifier' => 'missingType.parameter', |
43 | 31 | 'count' => 1,
|
44 | 32 | 'path' => __DIR__ . '/src/Secure.php',
|
45 | 33 | ];
|
46 | 34 | $ignoreErrors[] = [
|
47 |
| - // identifier: missingType.parameter |
48 | 35 | 'message' => '#^Method PHPDevsr\\\\Spreadsheet\\\\Secure\\:\\:_convertPasswordToKey\\(\\) has parameter \\$saltValue with no type specified\\.$#',
|
| 36 | + 'identifier' => 'missingType.parameter', |
49 | 37 | 'count' => 1,
|
50 | 38 | 'path' => __DIR__ . '/src/Secure.php',
|
51 | 39 | ];
|
52 | 40 | $ignoreErrors[] = [
|
53 |
| - // identifier: missingType.parameter |
54 | 41 | 'message' => '#^Method PHPDevsr\\\\Spreadsheet\\\\Secure\\:\\:_convertPasswordToKey\\(\\) has parameter \\$spinCount with no type specified\\.$#',
|
| 42 | + 'identifier' => 'missingType.parameter', |
55 | 43 | 'count' => 1,
|
56 | 44 | 'path' => __DIR__ . '/src/Secure.php',
|
57 | 45 | ];
|
58 | 46 | $ignoreErrors[] = [
|
59 |
| - // identifier: missingType.return |
60 | 47 | 'message' => '#^Method PHPDevsr\\\\Spreadsheet\\\\Secure\\:\\:_createIV\\(\\) has no return type specified\\.$#',
|
| 48 | + 'identifier' => 'missingType.return', |
61 | 49 | 'count' => 1,
|
62 | 50 | 'path' => __DIR__ . '/src/Secure.php',
|
63 | 51 | ];
|
64 | 52 | $ignoreErrors[] = [
|
65 |
| - // identifier: missingType.parameter |
66 |
| - 'message' => '#^Method PHPDevsr\\\\Spreadsheet\\\\Secure\\:\\:_createIV\\(\\) has parameter \\$blockKey with no type specified\\.$#', |
67 |
| - 'count' => 1, |
68 |
| - 'path' => __DIR__ . '/src/Secure.php', |
69 |
| -]; |
70 |
| -$ignoreErrors[] = [ |
71 |
| - // identifier: missingType.parameter |
72 |
| - 'message' => '#^Method PHPDevsr\\\\Spreadsheet\\\\Secure\\:\\:_createIV\\(\\) has parameter \\$blockSize with no type specified\\.$#', |
73 |
| - 'count' => 1, |
74 |
| - 'path' => __DIR__ . '/src/Secure.php', |
75 |
| -]; |
76 |
| -$ignoreErrors[] = [ |
77 |
| - // identifier: missingType.parameter |
78 |
| - 'message' => '#^Method PHPDevsr\\\\Spreadsheet\\\\Secure\\:\\:_createIV\\(\\) has parameter \\$hashAlgorithm with no type specified\\.$#', |
79 |
| - 'count' => 1, |
80 |
| - 'path' => __DIR__ . '/src/Secure.php', |
81 |
| -]; |
82 |
| -$ignoreErrors[] = [ |
83 |
| - // identifier: missingType.parameter |
84 |
| - 'message' => '#^Method PHPDevsr\\\\Spreadsheet\\\\Secure\\:\\:_createIV\\(\\) has parameter \\$saltValue with no type specified\\.$#', |
85 |
| - 'count' => 1, |
86 |
| - 'path' => __DIR__ . '/src/Secure.php', |
87 |
| -]; |
88 |
| -$ignoreErrors[] = [ |
89 |
| - // identifier: missingType.return |
90 | 53 | 'message' => '#^Method PHPDevsr\\\\Spreadsheet\\\\Secure\\:\\:_createUInt32LEBuffer\\(\\) has no return type specified\\.$#',
|
| 54 | + 'identifier' => 'missingType.return', |
91 | 55 | 'count' => 1,
|
92 | 56 | 'path' => __DIR__ . '/src/Secure.php',
|
93 | 57 | ];
|
94 | 58 | $ignoreErrors[] = [
|
95 |
| - // identifier: missingType.parameter |
96 |
| - 'message' => '#^Method PHPDevsr\\\\Spreadsheet\\\\Secure\\:\\:_createUInt32LEBuffer\\(\\) has parameter \\$bufferSize with no type specified\\.$#', |
97 |
| - 'count' => 1, |
98 |
| - 'path' => __DIR__ . '/src/Secure.php', |
99 |
| -]; |
100 |
| -$ignoreErrors[] = [ |
101 |
| - // identifier: missingType.parameter |
102 |
| - 'message' => '#^Method PHPDevsr\\\\Spreadsheet\\\\Secure\\:\\:_createUInt32LEBuffer\\(\\) has parameter \\$value with no type specified\\.$#', |
103 |
| - 'count' => 1, |
104 |
| - 'path' => __DIR__ . '/src/Secure.php', |
105 |
| -]; |
106 |
| -$ignoreErrors[] = [ |
107 |
| - // identifier: missingType.return |
108 | 59 | 'message' => '#^Method PHPDevsr\\\\Spreadsheet\\\\Secure\\:\\:_crypt\\(\\) has no return type specified\\.$#',
|
| 60 | + 'identifier' => 'missingType.return', |
109 | 61 | 'count' => 1,
|
110 | 62 | 'path' => __DIR__ . '/src/Secure.php',
|
111 | 63 | ];
|
112 | 64 | $ignoreErrors[] = [
|
113 |
| - // identifier: missingType.parameter |
114 |
| - 'message' => '#^Method PHPDevsr\\\\Spreadsheet\\\\Secure\\:\\:_crypt\\(\\) has parameter \\$cipherAlgorithm with no type specified\\.$#', |
115 |
| - 'count' => 1, |
116 |
| - 'path' => __DIR__ . '/src/Secure.php', |
117 |
| -]; |
118 |
| -$ignoreErrors[] = [ |
119 |
| - // identifier: missingType.parameter |
120 |
| - 'message' => '#^Method PHPDevsr\\\\Spreadsheet\\\\Secure\\:\\:_crypt\\(\\) has parameter \\$cipherChaining with no type specified\\.$#', |
121 |
| - 'count' => 1, |
122 |
| - 'path' => __DIR__ . '/src/Secure.php', |
123 |
| -]; |
124 |
| -$ignoreErrors[] = [ |
125 |
| - // identifier: missingType.parameter |
126 |
| - 'message' => '#^Method PHPDevsr\\\\Spreadsheet\\\\Secure\\:\\:_crypt\\(\\) has parameter \\$encrypt with no type specified\\.$#', |
127 |
| - 'count' => 1, |
128 |
| - 'path' => __DIR__ . '/src/Secure.php', |
129 |
| -]; |
130 |
| -$ignoreErrors[] = [ |
131 |
| - // identifier: missingType.parameter |
132 |
| - 'message' => '#^Method PHPDevsr\\\\Spreadsheet\\\\Secure\\:\\:_crypt\\(\\) has parameter \\$input with no type specified\\.$#', |
133 |
| - 'count' => 1, |
134 |
| - 'path' => __DIR__ . '/src/Secure.php', |
135 |
| -]; |
136 |
| -$ignoreErrors[] = [ |
137 |
| - // identifier: missingType.parameter |
138 |
| - 'message' => '#^Method PHPDevsr\\\\Spreadsheet\\\\Secure\\:\\:_crypt\\(\\) has parameter \\$iv with no type specified\\.$#', |
139 |
| - 'count' => 1, |
140 |
| - 'path' => __DIR__ . '/src/Secure.php', |
141 |
| -]; |
142 |
| -$ignoreErrors[] = [ |
143 |
| - // identifier: missingType.parameter |
144 |
| - 'message' => '#^Method PHPDevsr\\\\Spreadsheet\\\\Secure\\:\\:_crypt\\(\\) has parameter \\$key with no type specified\\.$#', |
| 65 | + 'message' => '#^Method PHPDevsr\\\\Spreadsheet\\\\Secure\\:\\:_crypt\\(\\) has parameter \\$key with no value type specified in iterable type array\\.$#', |
| 66 | + 'identifier' => 'missingType.iterableValue', |
145 | 67 | 'count' => 1,
|
146 | 68 | 'path' => __DIR__ . '/src/Secure.php',
|
147 | 69 | ];
|
148 | 70 | $ignoreErrors[] = [
|
149 |
| - // identifier: missingType.return |
150 | 71 | 'message' => '#^Method PHPDevsr\\\\Spreadsheet\\\\Secure\\:\\:_cryptPackage\\(\\) has no return type specified\\.$#',
|
| 72 | + 'identifier' => 'missingType.return', |
151 | 73 | 'count' => 1,
|
152 | 74 | 'path' => __DIR__ . '/src/Secure.php',
|
153 | 75 | ];
|
154 | 76 | $ignoreErrors[] = [
|
155 |
| - // identifier: missingType.parameter |
156 |
| - 'message' => '#^Method PHPDevsr\\\\Spreadsheet\\\\Secure\\:\\:_cryptPackage\\(\\) has parameter \\$blockSize with no type specified\\.$#', |
157 |
| - 'count' => 1, |
158 |
| - 'path' => __DIR__ . '/src/Secure.php', |
159 |
| -]; |
160 |
| -$ignoreErrors[] = [ |
161 |
| - // identifier: missingType.parameter |
162 |
| - 'message' => '#^Method PHPDevsr\\\\Spreadsheet\\\\Secure\\:\\:_cryptPackage\\(\\) has parameter \\$cipherAlgorithm with no type specified\\.$#', |
163 |
| - 'count' => 1, |
164 |
| - 'path' => __DIR__ . '/src/Secure.php', |
165 |
| -]; |
166 |
| -$ignoreErrors[] = [ |
167 |
| - // identifier: missingType.parameter |
168 |
| - 'message' => '#^Method PHPDevsr\\\\Spreadsheet\\\\Secure\\:\\:_cryptPackage\\(\\) has parameter \\$cipherChaining with no type specified\\.$#', |
169 |
| - 'count' => 1, |
170 |
| - 'path' => __DIR__ . '/src/Secure.php', |
171 |
| -]; |
172 |
| -$ignoreErrors[] = [ |
173 |
| - // identifier: missingType.parameter |
174 |
| - 'message' => '#^Method PHPDevsr\\\\Spreadsheet\\\\Secure\\:\\:_cryptPackage\\(\\) has parameter \\$encrypt with no type specified\\.$#', |
175 |
| - 'count' => 1, |
176 |
| - 'path' => __DIR__ . '/src/Secure.php', |
177 |
| -]; |
178 |
| -$ignoreErrors[] = [ |
179 |
| - // identifier: missingType.parameter |
180 |
| - 'message' => '#^Method PHPDevsr\\\\Spreadsheet\\\\Secure\\:\\:_cryptPackage\\(\\) has parameter \\$hashAlgorithm with no type specified\\.$#', |
181 |
| - 'count' => 1, |
182 |
| - 'path' => __DIR__ . '/src/Secure.php', |
183 |
| -]; |
184 |
| -$ignoreErrors[] = [ |
185 |
| - // identifier: missingType.parameter |
186 |
| - 'message' => '#^Method PHPDevsr\\\\Spreadsheet\\\\Secure\\:\\:_cryptPackage\\(\\) has parameter \\$input with no type specified\\.$#', |
187 |
| - 'count' => 1, |
188 |
| - 'path' => __DIR__ . '/src/Secure.php', |
189 |
| -]; |
190 |
| -$ignoreErrors[] = [ |
191 |
| - // identifier: missingType.parameter |
192 |
| - 'message' => '#^Method PHPDevsr\\\\Spreadsheet\\\\Secure\\:\\:_cryptPackage\\(\\) has parameter \\$key with no type specified\\.$#', |
193 |
| - 'count' => 1, |
194 |
| - 'path' => __DIR__ . '/src/Secure.php', |
195 |
| -]; |
196 |
| -$ignoreErrors[] = [ |
197 |
| - // identifier: missingType.parameter |
198 |
| - 'message' => '#^Method PHPDevsr\\\\Spreadsheet\\\\Secure\\:\\:_cryptPackage\\(\\) has parameter \\$saltValue with no type specified\\.$#', |
199 |
| - 'count' => 1, |
200 |
| - 'path' => __DIR__ . '/src/Secure.php', |
201 |
| -]; |
202 |
| -$ignoreErrors[] = [ |
203 |
| - // identifier: missingType.return |
204 |
| - 'message' => '#^Method PHPDevsr\\\\Spreadsheet\\\\Secure\\:\\:_hash\\(\\) has no return type specified\\.$#', |
205 |
| - 'count' => 1, |
206 |
| - 'path' => __DIR__ . '/src/Secure.php', |
207 |
| -]; |
208 |
| -$ignoreErrors[] = [ |
209 |
| - // identifier: missingType.parameter |
210 |
| - 'message' => '#^Method PHPDevsr\\\\Spreadsheet\\\\Secure\\:\\:_hash\\(\\) has parameter \\$algorithm with no type specified\\.$#', |
211 |
| - 'count' => 1, |
212 |
| - 'path' => __DIR__ . '/src/Secure.php', |
213 |
| -]; |
214 |
| -$ignoreErrors[] = [ |
215 |
| - // identifier: missingType.parameter |
216 | 77 | 'message' => '#^Method PHPDevsr\\\\Spreadsheet\\\\Secure\\:\\:_hash\\(\\) has parameter \\$buffers with no type specified\\.$#',
|
| 78 | + 'identifier' => 'missingType.parameter', |
217 | 79 | 'count' => 1,
|
218 | 80 | 'path' => __DIR__ . '/src/Secure.php',
|
219 | 81 | ];
|
220 | 82 | $ignoreErrors[] = [
|
221 |
| - // identifier: return.type |
222 | 83 | 'message' => '#^Method PHPDevsr\\\\Spreadsheet\\\\Secure\\:\\:output\\(\\) should return string but returns string\\|false\\.$#',
|
| 84 | + 'identifier' => 'return.type', |
223 | 85 | 'count' => 1,
|
224 | 86 | 'path' => __DIR__ . '/src/Secure.php',
|
225 | 87 | ];
|
226 | 88 | $ignoreErrors[] = [
|
227 |
| - // identifier: argument.unpackNonIterable |
228 |
| - 'message' => '#^Only iterables can be unpacked, array\\|false given in argument \\#2\\.$#', |
229 |
| - 'count' => 1, |
230 |
| - 'path' => __DIR__ . '/src/Secure.php', |
231 |
| -]; |
232 |
| -$ignoreErrors[] = [ |
233 |
| - // identifier: argument.type |
234 |
| - 'message' => '#^Parameter \\#1 \\$array of function array_pad expects array, mixed given\\.$#', |
235 |
| - 'count' => 1, |
236 |
| - 'path' => __DIR__ . '/src/Secure.php', |
237 |
| -]; |
238 |
| -$ignoreErrors[] = [ |
239 |
| - // identifier: argument.type |
240 |
| - 'message' => '#^Parameter \\#1 \\$array of function array_unshift expects array, array\\|false given\\.$#', |
241 |
| - 'count' => 1, |
242 |
| - 'path' => __DIR__ . '/src/Secure.php', |
243 |
| -]; |
244 |
| -$ignoreErrors[] = [ |
245 |
| - // identifier: argument.type |
246 |
| - 'message' => '#^Parameter \\#1 \\$array of function array_values expects array, array\\|false given\\.$#', |
247 |
| - 'count' => 1, |
248 |
| - 'path' => __DIR__ . '/src/Secure.php', |
249 |
| -]; |
250 |
| -$ignoreErrors[] = [ |
251 |
| - // identifier: argument.type |
252 |
| - 'message' => '#^Parameter \\#1 \\$data of method PHPDevsr\\\\Spreadsheet\\\\Secure\\:\\:build\\(\\) expects array\\<string, mixed\\>, mixed given\\.$#', |
253 |
| - 'count' => 1, |
| 89 | + 'message' => '#^Offset \'name\' might not exist on array\\<string, string\\>\\|string\\.$#', |
| 90 | + 'identifier' => 'offsetAccess.notFound', |
| 91 | + 'count' => 3, |
254 | 92 | 'path' => __DIR__ . '/src/Secure.php',
|
255 | 93 | ];
|
256 | 94 | $ignoreErrors[] = [
|
257 |
| - // identifier: argument.type |
258 |
| - 'message' => '#^Parameter \\#1 \\$filename of function file_get_contents expects string, string\\|false\\|null given\\.$#', |
| 95 | + 'message' => '#^Only iterables can be unpacked, array\\|false given in argument \\#2\\.$#', |
| 96 | + 'identifier' => 'argument.unpackNonIterable', |
259 | 97 | 'count' => 1,
|
260 | 98 | 'path' => __DIR__ . '/src/Secure.php',
|
261 | 99 | ];
|
262 | 100 | $ignoreErrors[] = [
|
263 |
| - // identifier: argument.type |
264 |
| - 'message' => '#^Parameter \\#1 \\$filename of method OLE_PPS_Root\\:\\:save\\(\\) expects string, string\\|false\\|null given\\.$#', |
| 101 | + 'message' => '#^Parameter \\#1 \\$array of function array_pad expects array, mixed given\\.$#', |
| 102 | + 'identifier' => 'argument.type', |
265 | 103 | 'count' => 1,
|
266 | 104 | 'path' => __DIR__ . '/src/Secure.php',
|
267 | 105 | ];
|
268 | 106 | $ignoreErrors[] = [
|
269 |
| - // identifier: argument.type |
270 |
| - 'message' => '#^Parameter \\#1 \\$qualifiedName of method SimpleXMLElement\\:\\:addChild\\(\\) expects string, mixed given\\.$#', |
| 107 | + 'message' => '#^Parameter \\#1 \\$encryptionInfo of method PHPDevsr\\\\Spreadsheet\\\\Secure\\:\\:_buildEncryptionInfo\\(\\) expects array\\<string, array\\<string, array\\<string, int\\|string\\>\\>\\>, array\\<string, array\\<string, mixed\\>\\> given\\.$#', |
| 108 | + 'identifier' => 'argument.type', |
271 | 109 | 'count' => 1,
|
272 | 110 | 'path' => __DIR__ . '/src/Secure.php',
|
273 | 111 | ];
|
274 | 112 | $ignoreErrors[] = [
|
275 |
| - // identifier: argument.type |
276 | 113 | 'message' => '#^Parameter \\#1 \\$stream of function fclose expects resource, resource\\|false given\\.$#',
|
| 114 | + 'identifier' => 'argument.type', |
277 | 115 | 'count' => 1,
|
278 | 116 | 'path' => __DIR__ . '/src/Secure.php',
|
279 | 117 | ];
|
280 | 118 | $ignoreErrors[] = [
|
281 |
| - // identifier: argument.type |
282 | 119 | 'message' => '#^Parameter \\#1 \\$stream of function feof expects resource, resource\\|false given\\.$#',
|
| 120 | + 'identifier' => 'argument.type', |
283 | 121 | 'count' => 1,
|
284 | 122 | 'path' => __DIR__ . '/src/Secure.php',
|
285 | 123 | ];
|
286 | 124 | $ignoreErrors[] = [
|
287 |
| - // identifier: argument.type |
288 | 125 | 'message' => '#^Parameter \\#1 \\$stream of function fread expects resource, resource\\|false given\\.$#',
|
| 126 | + 'identifier' => 'argument.type', |
289 | 127 | 'count' => 1,
|
290 | 128 | 'path' => __DIR__ . '/src/Secure.php',
|
291 | 129 | ];
|
292 | 130 | $ignoreErrors[] = [
|
293 |
| - // identifier: argument.type |
294 | 131 | 'message' => '#^Parameter \\#1 \\$string of function bin2hex expects string, array\\<int, string\\>\\|string\\|false given\\.$#',
|
| 132 | + 'identifier' => 'argument.type', |
295 | 133 | 'count' => 1,
|
296 | 134 | 'path' => __DIR__ . '/src/Secure.php',
|
297 | 135 | ];
|
298 | 136 | $ignoreErrors[] = [
|
299 |
| - // identifier: argument.type |
300 |
| - 'message' => '#^Parameter \\#1 \\$value of function count expects array\\|Countable, array\\|false given\\.$#', |
| 137 | + 'message' => '#^Parameter \\#1 \\$value of function count expects array\\|Countable, mixed given\\.$#', |
| 138 | + 'identifier' => 'argument.type', |
301 | 139 | 'count' => 1,
|
302 | 140 | 'path' => __DIR__ . '/src/Secure.php',
|
303 | 141 | ];
|
304 | 142 | $ignoreErrors[] = [
|
305 |
| - // identifier: argument.type |
306 |
| - 'message' => '#^Parameter \\#1 \\$value of function count expects array\\|Countable, mixed given\\.$#', |
| 143 | + 'message' => '#^Parameter \\#2 \\$data of method PHPDevsr\\\\Spreadsheet\\\\Secure\\:\\:build\\(\\) expects array\\<string, array\\<string, array\\<string, string\\>\\|string\\>\\|int\\|string\\>, array\\<string, mixed\\> given\\.$#', |
| 144 | + 'identifier' => 'argument.type', |
307 | 145 | 'count' => 1,
|
308 | 146 | 'path' => __DIR__ . '/src/Secure.php',
|
309 | 147 | ];
|
310 | 148 | $ignoreErrors[] = [
|
311 |
| - // identifier: argument.type |
312 |
| - 'message' => '#^Parameter \\#2 \\$string of function explode expects string, mixed given\\.$#', |
| 149 | + 'message' => '#^Parameter \\#2 \\$data of method PHPDevsr\\\\Spreadsheet\\\\Secure\\:\\:build\\(\\) expects array\\<string, array\\<string, array\\<string, string\\>\\|string\\>\\|int\\|string\\>, array\\<string, string\\>\\|string given\\.$#', |
| 150 | + 'identifier' => 'argument.type', |
313 | 151 | 'count' => 1,
|
314 | 152 | 'path' => __DIR__ . '/src/Secure.php',
|
315 | 153 | ];
|
316 | 154 | $ignoreErrors[] = [
|
317 |
| - // identifier: argument.type |
318 |
| - 'message' => '#^Parameter \\#2 \\$string of function unpack expects string, string\\|false given\\.$#', |
319 |
| - 'count' => 3, |
| 155 | + 'message' => '#^Parameter \\#2 \\$value of method SimpleXMLElement\\:\\:addAttribute\\(\\) expects string, array\\<string, string\\>\\|string given\\.$#', |
| 156 | + 'identifier' => 'argument.type', |
| 157 | + 'count' => 2, |
320 | 158 | 'path' => __DIR__ . '/src/Secure.php',
|
321 | 159 | ];
|
322 | 160 | $ignoreErrors[] = [
|
323 |
| - // identifier: argument.type |
324 |
| - 'message' => '#^Parameter \\#2 \\$value of method SimpleXMLElement\\:\\:addAttribute\\(\\) expects string, mixed given\\.$#', |
325 |
| - 'count' => 2, |
| 161 | + 'message' => '#^Parameter \\#6 \\$input of method PHPDevsr\\\\Spreadsheet\\\\Secure\\:\\:_crypt\\(\\) expects array\\<int\\|string, int\\|string\\>, mixed given\\.$#', |
| 162 | + 'identifier' => 'argument.type', |
| 163 | + 'count' => 1, |
326 | 164 | 'path' => __DIR__ . '/src/Secure.php',
|
327 | 165 | ];
|
328 | 166 | $ignoreErrors[] = [
|
329 |
| - // identifier: argument.type |
330 | 167 | 'message' => '#^Parameter \\#2 \\$length of function fread expects int\\<1, max\\>, int\\<0, max\\> given\\.$#',
|
| 168 | + 'identifier' => 'argument.type', |
331 | 169 | 'count' => 1,
|
332 | 170 | 'path' => __DIR__ . '/tests/SecureTest.php',
|
333 | 171 | ];
|
|
0 commit comments