-
Notifications
You must be signed in to change notification settings - Fork 2
/
phpstan-baseline.neon
392 lines (327 loc) · 15.2 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
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
parameters:
ignoreErrors:
-
message: '#^Parameter \#2 \$repository of method BabDev\\GitHub\\ApiConnector\:\:addRepositoryLabel\(\) expects string, mixed given\.$#'
identifier: argument.type
count: 1
path: app/Console/Commands/AddHacktoberfestExtras.php
-
message: '#^Parameter \#2 \$repository of method BabDev\\GitHub\\ApiConnector\:\:fetchRepositoryLabels\(\) expects string, mixed given\.$#'
identifier: argument.type
count: 1
path: app/Console/Commands/AddHacktoberfestExtras.php
-
message: '#^Parameter \#2 \$repository of method BabDev\\GitHub\\ApiConnector\:\:fetchRepositoryTopics\(\) expects string, mixed given\.$#'
identifier: argument.type
count: 1
path: app/Console/Commands/AddHacktoberfestExtras.php
-
message: '#^Parameter \#2 \$repository of method BabDev\\GitHub\\ApiConnector\:\:replaceRepositoryTopics\(\) expects string, mixed given\.$#'
identifier: argument.type
count: 1
path: app/Console/Commands/AddHacktoberfestExtras.php
-
message: '#^Parameter \#3 \$topics of method BabDev\\GitHub\\ApiConnector\:\:replaceRepositoryTopics\(\) expects list\<string\>, array\<mixed\> given\.$#'
identifier: argument.type
count: 1
path: app/Console/Commands/AddHacktoberfestExtras.php
-
message: '#^Part \$repositoryAttributes\[''name''\] \(mixed\) of encapsed string cannot be cast to string\.$#'
identifier: encapsedStringPart.nonString
count: 4
path: app/Console/Commands/AddHacktoberfestExtras.php
-
message: '#^Parameter \#1 \$urlToBeCrawled of static method Spatie\\Sitemap\\SitemapGenerator\:\:create\(\) expects string, mixed given\.$#'
identifier: argument.type
count: 1
path: app/Console/Commands/GenerateSitemap.php
-
message: '#^Argument of an invalid type mixed supplied for foreach, only iterables are supported\.$#'
identifier: foreach.nonIterable
count: 1
path: app/Console/Commands/ImportGitHubSponsors.php
-
message: '#^PHPDoc tag @var for variable \$sponsorEdge has no value type specified in iterable type array\.$#'
identifier: missingType.iterableValue
count: 1
path: app/Console/Commands/ImportGitHubSponsors.php
-
message: '#^Argument of an invalid type mixed supplied for foreach, only iterables are supported\.$#'
identifier: foreach.nonIterable
count: 1
path: app/Console/Commands/ImportGitHubSponsorshipTiers.php
-
message: '#^PHPDoc tag @var for variable \$tierEdge has no value type specified in iterable type array\.$#'
identifier: missingType.iterableValue
count: 1
path: app/Console/Commands/ImportGitHubSponsorshipTiers.php
-
message: '#^Parameter \#1 \$array of static method Illuminate\\Support\\Arr\:\:get\(\) expects array\|ArrayAccess, array\|null given\.$#'
identifier: argument.type
count: 1
path: app/Console/Commands/ImportPackagistDownloads.php
-
message: '#^Parameter \#2 \$string of function explode expects string, string\|null given\.$#'
identifier: argument.type
count: 1
path: app/Console/Commands/ImportPackagistDownloads.php
-
message: '#^Parameter \#2 \$repository of method BabDev\\GitHub\\ApiConnector\:\:fetchRepositoryTopics\(\) expects string, mixed given\.$#'
identifier: argument.type
count: 1
path: app/Console/Commands/RemoveHacktoberfestExtras.php
-
message: '#^Parameter \#2 \$repository of method BabDev\\GitHub\\ApiConnector\:\:replaceRepositoryTopics\(\) expects string, mixed given\.$#'
identifier: argument.type
count: 1
path: app/Console/Commands/RemoveHacktoberfestExtras.php
-
message: '#^Parameter \#3 \$topics of method BabDev\\GitHub\\ApiConnector\:\:replaceRepositoryTopics\(\) expects list\<string\>, array\<mixed\> given\.$#'
identifier: argument.type
count: 1
path: app/Console/Commands/RemoveHacktoberfestExtras.php
-
message: '#^Part \$repositoryAttributes\[''name''\] \(mixed\) of encapsed string cannot be cast to string\.$#'
identifier: encapsedStringPart.nonString
count: 2
path: app/Console/Commands/RemoveHacktoberfestExtras.php
-
message: '#^Access to an undefined property Illuminate\\Database\\Eloquent\\Model\:\:\$email\.$#'
identifier: property.notFound
count: 1
path: app/Filament/Resources/UserResource.php
-
message: '#^Method BabDev\\Filament\\Resources\\UserResource\:\:getGlobalSearchResultTitle\(\) should return string but returns mixed\.$#'
identifier: return.type
count: 1
path: app/Filament/Resources/UserResource.php
-
message: '#^Parameter \#1 \$username of method Github\\Api\\Issue\\Comments\:\:create\(\) expects string, mixed given\.$#'
identifier: argument.type
count: 1
path: app/GitHub/Actions/ClosePagerfantaReadOnlyRepoPullRequest.php
-
message: '#^Parameter \#2 \$repository of method Github\\Api\\Issue\\Comments\:\:create\(\) expects string, mixed given\.$#'
identifier: argument.type
count: 1
path: app/GitHub/Actions/ClosePagerfantaReadOnlyRepoPullRequest.php
-
message: '#^Parameter \#3 \$issue of method Github\\Api\\Issue\\Comments\:\:create\(\) expects int, mixed given\.$#'
identifier: argument.type
count: 1
path: app/GitHub/Actions/ClosePagerfantaReadOnlyRepoPullRequest.php
-
message: '#^Method BabDev\\GitHub\\Actions\\ContainerAwareFactory\:\:make\(\) should return TAction of BabDev\\Contracts\\GitHub\\Actions\\Action but returns mixed\.$#'
identifier: return.type
count: 1
path: app/GitHub/Actions/ContainerAwareFactory.php
-
message: '#^Method BabDev\\GitHub\\ApiConnector\:\:executeGraphqlQuery\(\) should return array\<string, mixed\> but returns array\.$#'
identifier: return.type
count: 1
path: app/GitHub/ApiConnector.php
-
message: '#^Method BabDev\\GitHub\\ApiConnector\:\:fetchFileContents\(\) should return array\<string, mixed\> but returns array\|string\.$#'
identifier: return.type
count: 1
path: app/GitHub/ApiConnector.php
-
message: '#^Method BabDev\\GitHub\\ApiConnector\:\:fetchPublicRepositories\(\) should return Illuminate\\Support\\Collection\<\(int\|string\), array\<string, mixed\>\> but returns Illuminate\\Support\\Collection\<\(int\|string\), mixed\>\.$#'
identifier: return.type
count: 1
path: app/GitHub/ApiConnector.php
-
message: '#^Method BabDev\\GitHub\\ApiConnector\:\:fetchRepositoryLabels\(\) should return Illuminate\\Support\\Collection\<\(int\|string\), string\> but returns Illuminate\\Support\\Collection\<\(int\|string\), mixed\>\.$#'
identifier: return.type
count: 1
path: app/GitHub/ApiConnector.php
-
message: '#^Method BabDev\\GitHub\\ApiConnector\:\:fetchRepositoryTopics\(\) should return Illuminate\\Support\\Collection\<\(int\|string\), string\> but returns Illuminate\\Support\\Collection\<\(int\|string\), mixed\>\.$#'
identifier: return.type
count: 1
path: app/GitHub/ApiConnector.php
-
message: '#^Parameter \#1 \$callback of method Illuminate\\Support\\Collection\<\(int\|string\),mixed\>\:\:filter\(\) expects \(callable\(mixed, int\|string\)\: bool\)\|null, Closure\(array\)\: bool given\.$#'
identifier: argument.type
count: 1
path: app/GitHub/ApiConnector.php
-
message: '#^Parameter \#1 \$value of function collect expects Illuminate\\Contracts\\Support\\Arrayable\<\(int\|string\), mixed\>\|iterable\<\(int\|string\), mixed\>\|null, mixed given\.$#'
identifier: argument.type
count: 2
path: app/GitHub/ApiConnector.php
-
message: '#^Unable to resolve the template type TKey in call to function collect$#'
identifier: argument.templateType
count: 2
path: app/GitHub/ApiConnector.php
-
message: '#^Unable to resolve the template type TValue in call to function collect$#'
identifier: argument.templateType
count: 2
path: app/GitHub/ApiConnector.php
-
message: '#^Call to function is_array\(\) with string\|null will always evaluate to false\.$#'
identifier: function.impossibleType
count: 1
path: app/GitHub/RequestHandler.php
-
message: '#^Parameter \#1 \$installationId of method Github\\Api\\Apps\:\:createInstallationToken\(\) expects int, mixed given\.$#'
identifier: argument.type
count: 1
path: app/GitHub/RequestHandler.php
-
message: '#^Parameter \$tokenOrLogin of method Github\\Client\:\:authenticate\(\) expects string, mixed given\.$#'
identifier: argument.type
count: 1
path: app/GitHub/RequestHandler.php
-
message: '#^Cannot access offset ''secret'' on mixed\.$#'
identifier: offsetAccess.nonOffsetAccessible
count: 1
path: app/Http/Controllers/HandleGitHubAppWebhookController.php
-
message: '#^Parameter \#1 \$array of function array_keys expects array, mixed given\.$#'
identifier: argument.type
count: 1
path: app/Http/Controllers/HandleGitHubAppWebhookController.php
-
message: '#^Parameter \#1 \$hash of method BabDev\\Http\\Controllers\\HandleGitHubAppWebhookController\:\:hasValidSignature\(\) expects string, string\|null given\.$#'
identifier: argument.type
count: 1
path: app/Http/Controllers/HandleGitHubAppWebhookController.php
-
message: '#^Parameter \#1 \$repoConfig of method BabDev\\GitHub\\RequestHandler\:\:handleRequest\(\) expects array\{app_id\: non\-empty\-string, key\: non\-empty\-string, secret\: non\-empty\-string, events\: array\<string, list\<class\-string\<BabDev\\Contracts\\GitHub\\Actions\\Action\>\>\>\}, mixed given\.$#'
identifier: argument.type
count: 1
path: app/Http/Controllers/HandleGitHubAppWebhookController.php
-
message: '#^Parameter \#2 \$key of method BabDev\\Http\\Controllers\\HandleGitHubAppWebhookController\:\:hasValidSignature\(\) expects string, mixed given\.$#'
identifier: argument.type
count: 1
path: app/Http/Controllers/HandleGitHubAppWebhookController.php
-
message: '#^Parameter \#2 \$value of static method Illuminate\\Support\\Str\:\:is\(\) expects string, mixed given\.$#'
identifier: argument.type
count: 1
path: app/Http/Controllers/HandleGitHubAppWebhookController.php
-
message: '#^Cannot cast mixed to int\.$#'
identifier: cast.int
count: 1
path: app/Listeners/AppendPageNumberToBreadcrumbs.php
-
message: '#^Method BabDev\\Models\\Package\:\:githubUrl\(\) should return Illuminate\\Database\\Eloquent\\Casts\\Attribute\<string, null\> but returns Illuminate\\Database\\Eloquent\\Casts\\Attribute\<mixed, mixed\>\.$#'
identifier: return.type
count: 1
path: app/Models/Package.php
-
message: '#^Method BabDev\\Models\\PackageUpdate\:\:isPublished\(\) should return Illuminate\\Database\\Eloquent\\Casts\\Attribute\<bool, null\> but returns Illuminate\\Database\\Eloquent\\Casts\\Attribute\<mixed, mixed\>\.$#'
identifier: return.type
count: 1
path: app/Models/PackageUpdate.php
-
message: '#^Parameter \#1 \$id of method Spatie\\Feed\\FeedItem\:\:id\(\) expects string, int given\.$#'
identifier: argument.type
count: 1
path: app/Models/PackageUpdate.php
-
message: '#^Parameter \#1 \$summary of method Spatie\\Feed\\FeedItem\:\:summary\(\) expects string, string\|null given\.$#'
identifier: argument.type
count: 1
path: app/Models/PackageUpdate.php
-
message: '#^Parameter \#1 \$updated of method Spatie\\Feed\\FeedItem\:\:updated\(\) expects Carbon\\CarbonInterface, Carbon\\Carbon\|null given\.$#'
identifier: argument.type
count: 1
path: app/Models/PackageUpdate.php
-
message: '#^Method BabDev\\Models\\PackageVersion\:\:gitBranch\(\) should return Illuminate\\Database\\Eloquent\\Casts\\Attribute\<string, null\> but returns Illuminate\\Database\\Eloquent\\Casts\\Attribute\<mixed, mixed\>\.$#'
identifier: return.type
count: 1
path: app/Models/PackageVersion.php
-
message: '#^Method BabDev\\Models\\PackageVersion\:\:supportEnded\(\) should return Illuminate\\Database\\Eloquent\\Casts\\Attribute\<bool, null\> but returns Illuminate\\Database\\Eloquent\\Casts\\Attribute\<mixed, mixed\>\.$#'
identifier: return.type
count: 1
path: app/Models/PackageVersion.php
-
message: '#^Anonymous function should return int but returns mixed\.$#'
identifier: return.type
count: 1
path: app/Providers/AppServiceProvider.php
-
message: '#^Cannot cast object\|non\-falsy\-string to int\.$#'
identifier: cast.int
count: 1
path: app/Providers/AppServiceProvider.php
-
message: '#^Parameter \#2 \$action of static method Illuminate\\Support\\Facades\\Route\:\:post\(\) expects array\|\(callable\(\)\: mixed\)\|string\|null, mixed given\.$#'
identifier: argument.type
count: 1
path: app/Providers/AppServiceProvider.php
-
message: '#^Parameter \#1 \$domain of method Filament\\Panel\:\:domain\(\) expects string\|null, mixed given\.$#'
identifier: argument.type
count: 1
path: app/Providers/Filament/AppPanelProvider.php
-
message: '#^Parameter \#1 \$tokenOrLogin of method Github\\Client\:\:authenticate\(\) expects string, mixed given\.$#'
identifier: argument.type
count: 1
path: app/Providers/GitHubServiceProvider.php
-
message: '#^Cannot cast mixed to string\.$#'
identifier: cast.string
count: 1
path: app/Services/DocumentationProcessor.php
-
message: '#^Parameter \#1 \$subject of static method Illuminate\\Support\\Str\:\:after\(\) expects string, string\|null given\.$#'
identifier: argument.type
count: 1
path: app/Services/DocumentationProcessor.php
-
message: '#^Parameter \#2 \.\.\.\$values of function sprintf expects bool\|float\|int\|string\|null, mixed given\.$#'
identifier: argument.type
count: 1
path: app/Services/DocumentationProcessor.php
-
message: '#^Cannot access offset ''host'' on array\{scheme\?\: string, host\?\: string, port\?\: int\<0, 65535\>, user\?\: string, pass\?\: string, path\?\: string, query\?\: string, fragment\?\: string\}\|false\.$#'
identifier: offsetAccess.nonOffsetAccessible
count: 1
path: app/helpers.php
-
message: '#^Parameter \#1 \$html of class Illuminate\\Support\\HtmlString constructor expects string, string\|false given\.$#'
identifier: argument.type
count: 1
path: app/helpers.php
-
message: '#^Cannot call method assertSuccessful\(\) on Illuminate\\Testing\\PendingCommand\|int\.$#'
identifier: method.nonObject
count: 1
path: tests/Feature/ImportGitHubRepositoriesTest.php
-
message: '#^Cannot call method assertSuccessful\(\) on Illuminate\\Testing\\PendingCommand\|int\.$#'
identifier: method.nonObject
count: 1
path: tests/Feature/ImportGitHubSponsorsTest.php
-
message: '#^Cannot call method assertSuccessful\(\) on Illuminate\\Testing\\PendingCommand\|int\.$#'
identifier: method.nonObject
count: 1
path: tests/Feature/ImportGitHubSponsorshipTiersTest.php
-
message: '#^Cannot call method assertSuccessful\(\) on Illuminate\\Testing\\PendingCommand\|int\.$#'
identifier: method.nonObject
count: 1
path: tests/Feature/ImportPackagistDownloadsTest.php
-
message: '#^Parameter \#2 \$contents of method Illuminate\\Contracts\\Filesystem\\Filesystem\:\:put\(\) expects Illuminate\\Http\\File\|Illuminate\\Http\\UploadedFile\|Psr\\Http\\Message\\StreamInterface\|resource\|string, string\|false given\.$#'
identifier: argument.type
count: 1
path: tests/Feature/SitemapTest.php
-
message: '#^Cannot call method assertExitCode\(\) on Illuminate\\Testing\\PendingCommand\|int\.$#'
identifier: method.nonObject
count: 1
path: tests/Unit/Console/SitemapGeneratorTest.php