forked from fzaninotto/Faker
-
Notifications
You must be signed in to change notification settings - Fork 350
/
phpstan-baseline.neon
364 lines (293 loc) · 12.1 KB
/
phpstan-baseline.neon
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
parameters:
ignoreErrors:
-
message: "#^Parameter \\#1 \\$input of function str_pad expects string, int given\\.$#"
count: 1
path: src/Calculator/Iban.php
-
message: "#^Binary operation \"\\*\\=\" between string and int results in an error\\.$#"
count: 1
path: src/Calculator/Isbn.php
-
message: "#^Binary operation \"\\*\" between string and 2 results in an error\\.$#"
count: 1
path: src/Calculator/Luhn.php
-
message: "#^Result of && is always false\\.$#"
count: 1
path: src/Container/ContainerBuilder.php
-
message: "#^Method Faker\\\\Generator\\:\\:optional\\(\\) should return Faker\\\\Generator but returns Faker\\\\ChanceGenerator\\.$#"
count: 1
path: src/Generator.php
-
message: "#^Method Faker\\\\Generator\\:\\:valid\\(\\) should return Faker\\\\Generator but returns Faker\\\\ValidGenerator\\.$#"
count: 1
path: src/Generator.php
-
message: "#^Call to an undefined static method UnitEnum\\:\\:cases\\(\\)\\.$#"
count: 2
path: src/Provider/Base.php
-
message: "#^Class UnitEnum not found\\.$#"
count: 2
path: src/Provider/Base.php
-
message: """
#^Instantiation of deprecated class Faker\\\\DefaultGenerator\\:
Use ChanceGenerator instead$#
"""
count: 1
path: src/Provider/Base.php
-
message: "#^Negated boolean expression is always false\\.$#"
count: 1
path: src/Provider/Base.php
-
message: "#^Parameter \\#1 \\$input of function str_pad expects string, int given\\.$#"
count: 1
path: src/Provider/Base.php
-
message: "#^Parameter \\#2 \\$callback of function preg_replace_callback expects callable\\(array\\<int\\|string, string\\>\\)\\: string, array\\{class\\-string\\<static\\(Faker\\\\Provider\\\\Base\\)\\>, 'randomDigit'\\} given\\.$#"
count: 1
path: src/Provider/Base.php
-
message: "#^Parameter \\$validator of method Faker\\\\Provider\\\\Base\\:\\:valid\\(\\) has invalid type Faker\\\\Provider\\\\Closure\\.$#"
count: 1
path: src/Provider/Base.php
-
message: "#^Unreachable statement \\- code above always terminates\\.$#"
count: 1
path: src/Provider/Base.php
-
message: "#^Method Faker\\\\Provider\\\\DateTime\\:\\:resolveTimezone\\(\\) never returns null so it can be removed from the return type\\.$#"
count: 1
path: src/Provider/DateTime.php
-
message: "#^Unsafe call to private method Faker\\\\Provider\\\\DateTime\\:\\:resolveTimezone\\(\\) through static\\:\\:\\.$#"
count: 1
path: src/Provider/DateTime.php
-
message: "#^Unsafe call to private method Faker\\\\Provider\\\\DateTime\\:\\:setTimezone\\(\\) through static\\:\\:\\.$#"
count: 3
path: src/Provider/DateTime.php
-
message: "#^Method Faker\\\\Provider\\\\File\\:\\:file\\(\\) should return string but returns false\\.$#"
count: 1
path: src/Provider/File.php
-
message: "#^Unreachable statement \\- code above always terminates\\.$#"
count: 1
path: src/Provider/Lorem.php
-
message: "#^Variable \\$text in empty\\(\\) always exists and is always falsy\\.$#"
count: 1
path: src/Provider/Lorem.php
-
message: "#^Parameter \\#1 \\$str of function md5 expects string, int given\\.$#"
count: 1
path: src/Provider/Miscellaneous.php
-
message: "#^Parameter \\#1 \\$str of function sha1 expects string, int given\\.$#"
count: 1
path: src/Provider/Miscellaneous.php
-
message: "#^Parameter \\#2 \\$data of function hash expects string, int given\\.$#"
count: 1
path: src/Provider/Miscellaneous.php
-
message: "#^Method Faker\\\\Provider\\\\PhoneNumber\\:\\:imei\\(\\) should return int but returns string\\.$#"
count: 1
path: src/Provider/PhoneNumber.php
-
message: "#^Unsafe access to private property Faker\\\\Provider\\\\ar_EG\\\\Person\\:\\:\\$prefix through static\\:\\:\\.$#"
count: 1
path: src/Provider/ar_EG/Person.php
-
message: "#^Unsafe access to private property Faker\\\\Provider\\\\ar_JO\\\\Person\\:\\:\\$prefix through static\\:\\:\\.$#"
count: 1
path: src/Provider/ar_JO/Person.php
-
message: "#^Access to an undefined static property static\\(Faker\\\\Provider\\\\ar_SA\\\\Address\\)\\:\\:\\$cityPrefix\\.$#"
count: 1
path: src/Provider/ar_SA/Address.php
-
message: "#^Unsafe access to private property Faker\\\\Provider\\\\ar_SA\\\\Person\\:\\:\\$prefix through static\\:\\:\\.$#"
count: 1
path: src/Provider/ar_SA/Person.php
-
message: "#^Unsafe access to private property Faker\\\\Provider\\\\cs_CZ\\\\Address\\:\\:\\$regions through static\\:\\:\\.$#"
count: 1
path: src/Provider/cs_CZ/Address.php
-
message: "#^Binary operation \"\\*\" between 2\\|3\\|4\\|5\\|6\\|7\\|8 and string results in an error\\.$#"
count: 1
path: src/Provider/cs_CZ/Company.php
-
message: "#^Binary operation \"\\-\" between string and 1 results in an error\\.$#"
count: 2
path: src/Provider/cs_CZ/DateTime.php
-
message: "#^Static call to instance method Faker\\\\Provider\\\\cs_CZ\\\\Person\\:\\:birthNumber\\(\\)\\.$#"
count: 2
path: src/Provider/cs_CZ/Person.php
-
message: "#^Parameter \\#2 \\$callback of function preg_replace_callback expects callable\\(array\\<int\\|string, string\\>\\)\\: string, array\\{class\\-string\\<static\\(Faker\\\\Provider\\\\en_CA\\\\Address\\)\\>, 'randomDigit'\\} given\\.$#"
count: 1
path: src/Provider/en_CA/Address.php
-
message: "#^Unsafe call to private method Faker\\\\Provider\\\\en_GB\\\\Company\\:\\:generateBranchTraderVatNumber\\(\\) through static\\:\\:\\.$#"
count: 1
path: src/Provider/en_GB/Company.php
-
message: "#^Unsafe call to private method Faker\\\\Provider\\\\en_GB\\\\Company\\:\\:generateGovernmentVatNumber\\(\\) through static\\:\\:\\.$#"
count: 1
path: src/Provider/en_GB/Company.php
-
message: "#^Unsafe call to private method Faker\\\\Provider\\\\en_GB\\\\Company\\:\\:generateHealthAuthorityVatNumber\\(\\) through static\\:\\:\\.$#"
count: 1
path: src/Provider/en_GB/Company.php
-
message: "#^Unsafe call to private method Faker\\\\Provider\\\\en_GB\\\\Company\\:\\:generateStandardVatNumber\\(\\) through static\\:\\:\\.$#"
count: 2
path: src/Provider/en_GB/Company.php
-
message: "#^Unsafe access to private property Faker\\\\Provider\\\\en_NG\\\\Address\\:\\:\\$county through static\\:\\:\\.$#"
count: 1
path: src/Provider/en_NG/Address.php
-
message: "#^Unsafe access to private property Faker\\\\Provider\\\\en_NG\\\\Address\\:\\:\\$regions through static\\:\\:\\.$#"
count: 1
path: src/Provider/en_NG/Address.php
-
message: "#^Parameter \\#1 \\$input of function str_pad expects string, int given\\.$#"
count: 1
path: src/Provider/en_ZA/Person.php
-
message: "#^Parameter \\#3 \\$pad_string of function str_pad expects string, int given\\.$#"
count: 1
path: src/Provider/en_ZA/Person.php
-
message: "#^Unsafe access to private property Faker\\\\Provider\\\\es_AR\\\\Person\\:\\:\\$suffix through static\\:\\:\\.$#"
count: 1
path: src/Provider/es_AR/Person.php
-
message: "#^Unsafe access to private property Faker\\\\Provider\\\\es_ES\\\\Person\\:\\:\\$suffix through static\\:\\:\\.$#"
count: 1
path: src/Provider/es_ES/Person.php
-
message: "#^Unsafe access to private property Faker\\\\Provider\\\\es_VE\\\\Person\\:\\:\\$nationalityId through static\\:\\:\\.$#"
count: 1
path: src/Provider/es_VE/Person.php
-
message: "#^Unsafe access to private property Faker\\\\Provider\\\\es_VE\\\\Person\\:\\:\\$suffix through static\\:\\:\\.$#"
count: 1
path: src/Provider/es_VE/Person.php
-
message: "#^Binary operation \"\\*\" between string and int\\<2, 10\\> results in an error\\.$#"
count: 1
path: src/Provider/fa_IR/Person.php
-
message: "#^Method Faker\\\\Provider\\\\fa_IR\\\\Person\\:\\:createAreaCode\\(\\) never returns int so it can be removed from the return type\\.$#"
count: 1
path: src/Provider/fa_IR/Person.php
-
message: "#^Unsafe access to private property Faker\\\\Provider\\\\fr_FR\\\\Address\\:\\:\\$departments through static\\:\\:\\.$#"
count: 1
path: src/Provider/fr_FR/Address.php
-
message: "#^Unsafe access to private property Faker\\\\Provider\\\\fr_FR\\\\Address\\:\\:\\$regions through static\\:\\:\\.$#"
count: 1
path: src/Provider/fr_FR/Address.php
-
message: "#^Method Faker\\\\Provider\\\\hu_HU\\\\Address\\:\\:localCoordinates\\(\\) has invalid return type Faker\\\\Provider\\\\hu_HU\\\\latitude\\.$#"
count: 1
path: src/Provider/hu_HU/Address.php
-
message: "#^Unsafe access to private property Faker\\\\Provider\\\\hu_HU\\\\Person\\:\\:\\$suffix through static\\:\\:\\.$#"
count: 1
path: src/Provider/hu_HU/Person.php
-
message: "#^Unsafe access to private property Faker\\\\Provider\\\\hy_AM\\\\Person\\:\\:\\$suffix through static\\:\\:\\.$#"
count: 1
path: src/Provider/hy_AM/Person.php
-
message: "#^Unsafe access to private property Faker\\\\Provider\\\\id_ID\\\\Person\\:\\:\\$suffix through static\\:\\:\\.$#"
count: 1
path: src/Provider/id_ID/Person.php
-
message: "#^Binary operation \"\\*\" between string and string results in an error\\.$#"
count: 1
path: src/Provider/is_IS/Person.php
-
message: "#^Unsafe access to private property Faker\\\\Provider\\\\it_IT\\\\Person\\:\\:\\$suffix through static\\:\\:\\.$#"
count: 1
path: src/Provider/it_IT/Person.php
-
message: "#^Call to an undefined static method static\\(Faker\\\\Provider\\\\ja_JP\\\\Text\\)\\:\\:split\\(\\)\\.$#"
count: 1
path: src/Provider/ja_JP/Text.php
-
message: "#^Unsafe access to private property Faker\\\\Provider\\\\lt_LT\\\\Address\\:\\:\\$municipality through static\\:\\:\\.$#"
count: 1
path: src/Provider/lt_LT/Address.php
-
message: "#^Unsafe access to private property Faker\\\\Provider\\\\ne_NP\\\\Person\\:\\:\\$middleNameFemale through static\\:\\:\\.$#"
count: 1
path: src/Provider/ne_NP/Person.php
-
message: "#^Unsafe access to private property Faker\\\\Provider\\\\ne_NP\\\\Person\\:\\:\\$middleNameMale through static\\:\\:\\.$#"
count: 1
path: src/Provider/ne_NP/Person.php
-
message: "#^Variable \\$companyName might not be defined\\.$#"
count: 2
path: src/Provider/nl_NL/Company.php
-
message: "#^Call to method format\\(\\) on an unknown class Faker\\\\Provider\\\\pl_PL\\\\DateTime\\.$#"
count: 4
path: src/Provider/pl_PL/Person.php
-
message: "#^Parameter \\$birthdate of method Faker\\\\Provider\\\\pl_PL\\\\Person\\:\\:pesel\\(\\) has invalid type Faker\\\\Provider\\\\pl_PL\\\\DateTime\\.$#"
count: 1
path: src/Provider/pl_PL/Person.php
-
message: "#^Binary operation \"\\*\" between string and int\\<2, max\\> results in an error\\.$#"
count: 1
path: src/Provider/pt_BR/check_digit.php
-
message: "#^Unsafe access to private property Faker\\\\Provider\\\\pt_PT\\\\Address\\:\\:\\$cities through static\\:\\:\\.$#"
count: 1
path: src/Provider/pt_PT/Address.php
-
message: "#^Left side of \\|\\| is always true\\.$#"
count: 1
path: src/Provider/pt_PT/Person.php
-
message: "#^Parameter \\#1 \\$string of function substr expects string, int given\\.$#"
count: 1
path: src/Provider/ro_RO/Person.php
-
message: "#^Parameter \\#1 \\$input of function str_pad expects string, int given\\.$#"
count: 1
path: src/Provider/ru_RU/Company.php
-
message: "#^Unsafe access to private property Faker\\\\Provider\\\\sk_SK\\\\Person\\:\\:\\$suffix through static\\:\\:\\.$#"
count: 1
path: src/Provider/sk_SK/Person.php
-
message: "#^Static call to instance method Faker\\\\Provider\\\\sl_SI\\\\Person\\:\\:lastName\\(\\)\\.$#"
count: 2
path: src/Provider/sl_SI/Person.php
-
message: "#^Unsafe access to private property Faker\\\\Provider\\\\sv_SE\\\\Municipality\\:\\:\\$municipalities through static\\:\\:\\.$#"
count: 1
path: src/Provider/sv_SE/Municipality.php
-
message: "#^Parameter \\#1 \\$input of function str_pad expects string, int given\\.$#"
count: 1
path: src/Provider/zh_CN/Address.php
-
message: "#^Parameter \\#3 \\$pad_string of function str_pad expects string, int given\\.$#"
count: 1
path: src/Provider/zh_CN/Address.php