-
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathphpstan-baseline.neon
More file actions
541 lines (452 loc) · 20.8 KB
/
phpstan-baseline.neon
File metadata and controls
541 lines (452 loc) · 20.8 KB
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
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
parameters:
ignoreErrors:
-
message: '#^Parameter \#3 \$deps of function wp_register_style expects array\<string\>, string given\.$#'
identifier: argument.type
count: 1
path: src/Admin/Actions.php
-
message: '#^Method Perform\\Admin\\Filters\:\:add_plugin_action_links\(\) has parameter \$actions with no value type specified in iterable type array\.$#'
identifier: missingType.iterableValue
count: 1
path: src/Admin/Filters.php
-
message: '#^Method Perform\\Admin\\Filters\:\:add_plugin_action_links\(\) return type has no value type specified in iterable type array\.$#'
identifier: missingType.iterableValue
count: 1
path: src/Admin/Filters.php
-
message: '#^Method Perform\\Admin\\Filters\:\:add_row_actions\(\) has parameter \$actions with no type specified\.$#'
identifier: missingType.parameter
count: 1
path: src/Admin/Filters.php
-
message: '#^Method Perform\\Admin\\Filters\:\:add_row_actions\(\) has parameter \$post with no type specified\.$#'
identifier: missingType.parameter
count: 1
path: src/Admin/Filters.php
-
message: '#^Method Perform\\Admin\\Filters\:\:add_row_actions\(\) return type has no value type specified in iterable type array\.$#'
identifier: missingType.iterableValue
count: 1
path: src/Admin/Filters.php
-
message: '#^Method Perform\\Admin\\Settings\\Api\:\:render_checkbox_field\(\) has parameter \$field with no value type specified in iterable type array\.$#'
identifier: missingType.iterableValue
count: 1
path: src/Admin/Settings/Api.php
-
message: '#^Method Perform\\Admin\\Settings\\Api\:\:render_field\(\) has parameter \$field with no value type specified in iterable type array\.$#'
identifier: missingType.iterableValue
count: 1
path: src/Admin/Settings/Api.php
-
message: '#^Method Perform\\Admin\\Settings\\Api\:\:render_fields\(\) has parameter \$all_fields with no value type specified in iterable type array\.$#'
identifier: missingType.iterableValue
count: 1
path: src/Admin/Settings/Api.php
-
message: '#^Method Perform\\Admin\\Settings\\Api\:\:render_select_field\(\) has parameter \$field with no value type specified in iterable type array\.$#'
identifier: missingType.iterableValue
count: 1
path: src/Admin/Settings/Api.php
-
message: '#^Method Perform\\Admin\\Settings\\Api\:\:render_text_field\(\) has parameter \$field with no value type specified in iterable type array\.$#'
identifier: missingType.iterableValue
count: 1
path: src/Admin/Settings/Api.php
-
message: '#^Method Perform\\Admin\\Settings\\Api\:\:render_textarea_field\(\) has parameter \$field with no value type specified in iterable type array\.$#'
identifier: missingType.iterableValue
count: 1
path: src/Admin/Settings/Api.php
-
message: '#^Method Perform\\Admin\\Settings\\Api\:\:render_url_field\(\) has parameter \$field with no value type specified in iterable type array\.$#'
identifier: missingType.iterableValue
count: 1
path: src/Admin/Settings/Api.php
-
message: '#^Strict comparison using \!\=\= between ''0'' and mixed~\(0\|0\.0\|''''\|''0''\|array\{\}\|false\|null\) will always evaluate to true\.$#'
identifier: notIdentical.alwaysTrue
count: 1
path: src/Admin/Settings/Menu.php
-
message: '#^Call to new Perform\\Includes\\Filters\(\) on a separate line has no effect\.$#'
identifier: new.resultUnused
count: 1
path: src/Includes/Filters.php
-
message: '#^Method Perform\\Includes\\Helpers\:\:clean\(\) has parameter \$var with no value type specified in iterable type array\.$#'
identifier: missingType.iterableValue
count: 1
path: src/Includes/Helpers.php
-
message: '#^Method Perform\\Includes\\Helpers\:\:clean\(\) return type has no value type specified in iterable type array\.$#'
identifier: missingType.iterableValue
count: 1
path: src/Includes/Helpers.php
-
message: '#^Method Perform\\Includes\\Helpers\:\:find_field_by_id\(\) return type has no value type specified in iterable type array\.$#'
identifier: missingType.iterableValue
count: 1
path: src/Includes/Helpers.php
-
message: '#^Method Perform\\Includes\\Helpers\:\:get_settings\(\) return type has no value type specified in iterable type array\.$#'
identifier: missingType.iterableValue
count: 1
path: src/Includes/Helpers.php
-
message: '#^Method Perform\\Includes\\Helpers\:\:get_settings_fields\(\) return type has no value type specified in iterable type array\.$#'
identifier: missingType.iterableValue
count: 1
path: src/Includes/Helpers.php
-
message: '#^Method Perform\\Includes\\Helpers\:\:get_settings_tabs\(\) return type has no value type specified in iterable type array\.$#'
identifier: missingType.iterableValue
count: 1
path: src/Includes/Helpers.php
-
message: '#^Method Perform\\Modules\\AbstractModule\:\:__construct\(\) has parameter \$settings with no value type specified in iterable type array\.$#'
identifier: missingType.iterableValue
count: 1
path: src/Modules/AbstractModule.php
-
message: '#^Property Perform\\Modules\\AbstractModule\:\:\$settings type has no value type specified in iterable type array\.$#'
identifier: missingType.iterableValue
count: 1
path: src/Modules/AbstractModule.php
-
message: '#^Action callback returns array but should not return anything\.$#'
identifier: return.void
count: 1
path: src/Modules/Assets/AssetsManager.php
-
message: '#^Action callback returns mixed but should not return anything\.$#'
identifier: return.void
count: 1
path: src/Modules/Assets/AssetsManager.php
-
message: '#^Method Perform\\Modules\\Assets\\AssetsManager\:\:get_assets_summary\(\) has parameter \$assets_list with no value type specified in iterable type array\.$#'
identifier: missingType.iterableValue
count: 1
path: src/Modules/Assets/AssetsManager.php
-
message: '#^Method Perform\\Modules\\Assets\\AssetsManager\:\:get_assets_summary\(\) return type has no value type specified in iterable type array\.$#'
identifier: missingType.iterableValue
count: 1
path: src/Modules/Assets/AssetsManager.php
-
message: '#^Method Perform\\Modules\\Assets\\AssetsManager\:\:prepare_assets_list\(\) return type has no value type specified in iterable type array\.$#'
identifier: missingType.iterableValue
count: 1
path: src/Modules/Assets/AssetsManager.php
-
message: '#^Method Perform\\Modules\\Assets\\AssetsManager\:\:print_assets_manager_group\(\) has parameter \$asset_details with no value type specified in iterable type array\.$#'
identifier: missingType.iterableValue
count: 1
path: src/Modules/Assets/AssetsManager.php
-
message: '#^Method Perform\\Modules\\Assets\\AssetsManager\:\:print_assets_manager_group\(\) has parameter \$category with no type specified\.$#'
identifier: missingType.parameter
count: 1
path: src/Modules/Assets/AssetsManager.php
-
message: '#^Method Perform\\Modules\\Assets\\AssetsManager\:\:print_assets_manager_group\(\) has parameter \$group with no type specified\.$#'
identifier: missingType.parameter
count: 1
path: src/Modules/Assets/AssetsManager.php
-
message: '#^Method Perform\\Modules\\Assets\\AssetsManager\:\:print_assets_manager_script\(\) has parameter \$category with no type specified\.$#'
identifier: missingType.parameter
count: 1
path: src/Modules/Assets/AssetsManager.php
-
message: '#^Method Perform\\Modules\\Assets\\AssetsManager\:\:print_assets_manager_script\(\) has parameter \$group with no type specified\.$#'
identifier: missingType.parameter
count: 1
path: src/Modules/Assets/AssetsManager.php
-
message: '#^Method Perform\\Modules\\Assets\\AssetsManager\:\:print_assets_manager_script\(\) has parameter \$script with no type specified\.$#'
identifier: missingType.parameter
count: 1
path: src/Modules/Assets/AssetsManager.php
-
message: '#^Method Perform\\Modules\\Assets\\AssetsManager\:\:print_assets_manager_script\(\) has parameter \$type with no type specified\.$#'
identifier: missingType.parameter
count: 1
path: src/Modules/Assets/AssetsManager.php
-
message: '#^Method Perform\\Modules\\Assets\\AssetsManager\:\:save_assets_manager_settings\(\) return type has no value type specified in iterable type array\.$#'
identifier: missingType.iterableValue
count: 1
path: src/Modules/Assets/AssetsManager.php
-
message: '#^Method Perform\\Modules\\Assets\\AssetsManager\:\:save_assets_manager_settings\(\) should return array but empty return statement found\.$#'
identifier: return.empty
count: 2
path: src/Modules/Assets/AssetsManager.php
-
message: '#^Method Perform\\Modules\\Assets\\AssetsManager\:\:save_assets_manager_settings\(\) should return array but return statement is missing\.$#'
identifier: return.missing
count: 2
path: src/Modules/Assets/AssetsManager.php
-
message: '#^Property Perform\\Modules\\Assets\\AssetsManager\:\:\$loaded_assets type has no value type specified in iterable type array\.$#'
identifier: missingType.iterableValue
count: 1
path: src/Modules/Assets/AssetsManager.php
-
message: '#^Property Perform\\Modules\\Assets\\AssetsManager\:\:\$selected_options type has no value type specified in iterable type array\.$#'
identifier: missingType.iterableValue
count: 1
path: src/Modules/Assets/AssetsManager.php
-
message: '#^Method Perform\\Modules\\Basic\\DisableEmbeds\:\:disable_embeds\(\) has no return type specified\.$#'
identifier: missingType.return
count: 1
path: src/Modules/Basic/DisableEmbeds.php
-
message: '#^Method Perform\\Modules\\Basic\\DisableEmbeds\:\:disable_embeds_from_rewrites\(\) has no return type specified\.$#'
identifier: missingType.return
count: 1
path: src/Modules/Basic/DisableEmbeds.php
-
message: '#^Method Perform\\Modules\\Basic\\DisableEmbeds\:\:disable_embeds_from_rewrites\(\) has parameter \$rules with no type specified\.$#'
identifier: missingType.parameter
count: 1
path: src/Modules/Basic/DisableEmbeds.php
-
message: '#^Method Perform\\Modules\\Basic\\DisableEmbeds\:\:disable_embeds_from_tinymce\(\) has no return type specified\.$#'
identifier: missingType.return
count: 1
path: src/Modules/Basic/DisableEmbeds.php
-
message: '#^Method Perform\\Modules\\Basic\\DisableEmbeds\:\:disable_embeds_from_tinymce\(\) has parameter \$plugins with no type specified\.$#'
identifier: missingType.parameter
count: 1
path: src/Modules/Basic/DisableEmbeds.php
-
message: '#^Method Perform\\Modules\\Basic\\DisableEmoji\:\:disable_emojis\(\) has no return type specified\.$#'
identifier: missingType.return
count: 1
path: src/Modules/Basic/DisableEmoji.php
-
message: '#^Method Perform\\Modules\\Basic\\DisableEmoji\:\:disable_emojis_from_dns_prefetch\(\) has no return type specified\.$#'
identifier: missingType.return
count: 1
path: src/Modules/Basic/DisableEmoji.php
-
message: '#^Method Perform\\Modules\\Basic\\DisableEmoji\:\:disable_emojis_from_dns_prefetch\(\) has parameter \$relationType with no type specified\.$#'
identifier: missingType.parameter
count: 1
path: src/Modules/Basic/DisableEmoji.php
-
message: '#^Method Perform\\Modules\\Basic\\DisableEmoji\:\:disable_emojis_from_dns_prefetch\(\) has parameter \$urls with no type specified\.$#'
identifier: missingType.parameter
count: 1
path: src/Modules/Basic/DisableEmoji.php
-
message: '#^Method Perform\\Modules\\Basic\\DisableEmoji\:\:disable_emojis_from_tinymce\(\) has no return type specified\.$#'
identifier: missingType.return
count: 1
path: src/Modules/Basic/DisableEmoji.php
-
message: '#^Method Perform\\Modules\\Basic\\DisableEmoji\:\:disable_emojis_from_tinymce\(\) has parameter \$plugins with no type specified\.$#'
identifier: missingType.parameter
count: 1
path: src/Modules/Basic/DisableEmoji.php
-
message: '#^Method Perform\\Modules\\Basic\\DisableSelfPingbacks\:\:disable_self_pingbacks\(\) has parameter \$links with no value type specified in iterable type array\.$#'
identifier: missingType.iterableValue
count: 1
path: src/Modules/Basic/DisableSelfPingbacks.php
-
message: '#^Method Perform\\Modules\\Basic\\DisableXmlrpc\:\:disable_all_xmlrpc_methods\(\) has parameter \$methods with no value type specified in iterable type array\.$#'
identifier: missingType.iterableValue
count: 1
path: src/Modules/Basic/DisableXmlrpc.php
-
message: '#^Method Perform\\Modules\\Basic\\DisableXmlrpc\:\:disable_all_xmlrpc_methods\(\) return type has no value type specified in iterable type array\.$#'
identifier: missingType.iterableValue
count: 1
path: src/Modules/Basic/DisableXmlrpc.php
-
message: '#^Method Perform\\Modules\\Basic\\Heartbeat\:\:heartbeat_frequency\(\) has parameter \$settings with no value type specified in iterable type array\.$#'
identifier: missingType.iterableValue
count: 1
path: src/Modules/Basic/Heartbeat.php
-
message: '#^Method Perform\\Modules\\Basic\\Heartbeat\:\:heartbeat_frequency\(\) return type has no value type specified in iterable type array\.$#'
identifier: missingType.iterableValue
count: 1
path: src/Modules/Basic/Heartbeat.php
-
message: '#^Access to property \$registered on an unknown class Perform\\Modules\\Basic\\WP_Scripts\.$#'
identifier: class.notFound
count: 2
path: src/Modules/Basic/RemoveJqueryMigrate.php
-
message: '#^Filter callback return statement is missing\.$#'
identifier: return.missing
count: 1
path: src/Modules/Basic/RemoveJqueryMigrate.php
-
message: '#^Parameter \$scripts of method Perform\\Modules\\Basic\\RemoveJqueryMigrate\:\:remove_jquery_migrate\(\) has invalid type Perform\\Modules\\Basic\\WP_Scripts\.$#'
identifier: class.notFound
count: 1
path: src/Modules/Basic/RemoveJqueryMigrate.php
-
message: '#^Method Perform\\Modules\\Basic\\RemoveQueryStrings\:\:process_query_string_removal\(\) has no return type specified\.$#'
identifier: missingType.return
count: 1
path: src/Modules/Basic/RemoveQueryStrings.php
-
message: '#^Method Perform\\Modules\\Basic\\RemoveQueryStrings\:\:process_query_string_removal\(\) has parameter \$url with no type specified\.$#'
identifier: missingType.parameter
count: 1
path: src/Modules/Basic/RemoveQueryStrings.php
-
message: '#^Method Perform\\Modules\\CDN\\CDNManager\:\:rewrite_with_cdn\(\) has no return type specified\.$#'
identifier: missingType.return
count: 1
path: src/Modules/CDN/CDNManager.php
-
message: '#^Parameter \#2 \$callback of function preg_replace_callback expects callable\(array\<string\>\)\: string, array\{\$this\(Perform\\Modules\\CDN\\CDNManager\), ''rewrited_cdn_url''\} given\.$#'
identifier: argument.type
count: 1
path: src/Modules/CDN/CDNManager.php
-
message: '#^Method Perform\\Modules\\Cache\\PageCache\:\:purge_related_urls_for_object_terms\(\) has parameter \$old_tt_ids with no value type specified in iterable type array\.$#'
identifier: missingType.iterableValue
count: 1
path: src/Modules/Cache/PageCache.php
-
message: '#^Method Perform\\Modules\\Cache\\PageCache\:\:purge_related_urls_for_object_terms\(\) has parameter \$terms with no value type specified in iterable type array\.$#'
identifier: missingType.iterableValue
count: 1
path: src/Modules/Cache/PageCache.php
-
message: '#^Method Perform\\Modules\\Cache\\PageCache\:\:purge_related_urls_for_object_terms\(\) has parameter \$tt_ids with no value type specified in iterable type array\.$#'
identifier: missingType.iterableValue
count: 1
path: src/Modules/Cache/PageCache.php
-
message: '#^Offset 0 on array\{float, float, float\} in isset\(\) always exists and is not nullable\.$#'
identifier: isset.offset
count: 1
path: src/Modules/Cache/PageCache.php
-
message: '#^Parameter \#1 \$text of function esc_html expects string, int given\.$#'
identifier: argument.type
count: 7
path: src/Modules/Cache/PageCache.php
-
message: '#^Method Perform\\Modules\\Loader\:\:__construct\(\) has parameter \$settings with no value type specified in iterable type array\.$#'
identifier: missingType.iterableValue
count: 1
path: src/Modules/Loader.php
-
message: '#^Method Perform\\Modules\\Loader\:\:register_modules\(\) has parameter \$modules with no value type specified in iterable type array\.$#'
identifier: missingType.iterableValue
count: 1
path: src/Modules/Loader.php
-
message: '#^Property Perform\\Modules\\Loader\:\:\$settings type has no value type specified in iterable type array\.$#'
identifier: missingType.iterableValue
count: 1
path: src/Modules/Loader.php
-
message: '#^Access to property \$menu on an unknown class Perform\\Modules\\MenuCache\\stdClass\.$#'
identifier: class.notFound
count: 7
path: src/Modules/MenuCache/MenuCache.php
-
message: '#^Access to property \$theme_location on an unknown class Perform\\Modules\\MenuCache\\stdClass\.$#'
identifier: class.notFound
count: 3
path: src/Modules/MenuCache/MenuCache.php
-
message: '#^Method Perform\\Modules\\MenuCache\\MenuCache\:\:update_nav_menu_cache\(\) has parameter \$menu_data with no value type specified in iterable type array\.$#'
identifier: missingType.iterableValue
count: 1
path: src/Modules/MenuCache/MenuCache.php
-
message: '#^PHPDoc tag @var has invalid value \(\$cached_menu_time\)\: Unexpected token "\$cached_menu_time", expected type at offset 80 on line 7$#'
identifier: phpDoc.parseError
count: 1
path: src/Modules/MenuCache/MenuCache.php
-
message: '#^PHPDoc tag @var has invalid value \(\$cached_total_time\)\: Unexpected token "\$cached_total_time", expected type at offset 81 on line 7$#'
identifier: phpDoc.parseError
count: 1
path: src/Modules/MenuCache/MenuCache.php
-
message: '#^PHPDoc tag @var has invalid value \(\$log_menu_end\)\: Unexpected token "\$log_menu_end", expected type at offset 76 on line 7$#'
identifier: phpDoc.parseError
count: 1
path: src/Modules/MenuCache/MenuCache.php
-
message: '#^PHPDoc tag @var has invalid value \(\$log_menu_start\)\: Unexpected token "\$log_menu_start", expected type at offset 78 on line 7$#'
identifier: phpDoc.parseError
count: 1
path: src/Modules/MenuCache/MenuCache.php
-
message: '#^PHPDoc tag @var has invalid value \(\$uncached_menu_time\)\: Unexpected token "\$uncached_menu_time", expected type at offset 82 on line 7$#'
identifier: phpDoc.parseError
count: 1
path: src/Modules/MenuCache/MenuCache.php
-
message: '#^PHPDoc tag @var has invalid value \(\$uncached_total_time\)\: Unexpected token "\$uncached_total_time", expected type at offset 83 on line 7$#'
identifier: phpDoc.parseError
count: 1
path: src/Modules/MenuCache/MenuCache.php
-
message: '#^Parameter \$args of method Perform\\Modules\\MenuCache\\MenuCache\:\:cache_nav_menu\(\) has invalid type Perform\\Modules\\MenuCache\\stdClass\.$#'
identifier: class.notFound
count: 1
path: src/Modules/MenuCache/MenuCache.php
-
message: '#^Parameter \$args of method Perform\\Modules\\MenuCache\\MenuCache\:\:cache_nav_menu_output\(\) has invalid type Perform\\Modules\\MenuCache\\stdClass\.$#'
identifier: class.notFound
count: 1
path: src/Modules/MenuCache/MenuCache.php
-
message: '#^Property Perform\\Modules\\MenuCache\\MenuCache\:\:\$cached_menu_time has no type specified\.$#'
identifier: missingType.property
count: 1
path: src/Modules/MenuCache/MenuCache.php
-
message: '#^Property Perform\\Modules\\MenuCache\\MenuCache\:\:\$cached_total_time has no type specified\.$#'
identifier: missingType.property
count: 1
path: src/Modules/MenuCache/MenuCache.php
-
message: '#^Property Perform\\Modules\\MenuCache\\MenuCache\:\:\$log_menu_end has no type specified\.$#'
identifier: missingType.property
count: 1
path: src/Modules/MenuCache/MenuCache.php
-
message: '#^Property Perform\\Modules\\MenuCache\\MenuCache\:\:\$log_menu_start has no type specified\.$#'
identifier: missingType.property
count: 1
path: src/Modules/MenuCache/MenuCache.php
-
message: '#^Property Perform\\Modules\\MenuCache\\MenuCache\:\:\$uncached_menu_time has no type specified\.$#'
identifier: missingType.property
count: 1
path: src/Modules/MenuCache/MenuCache.php
-
message: '#^Property Perform\\Modules\\MenuCache\\MenuCache\:\:\$uncached_total_time has no type specified\.$#'
identifier: missingType.property
count: 1
path: src/Modules/MenuCache/MenuCache.php
-
message: '#^Call to new Perform\\Includes\\Filters\(\) on a separate line has no effect\.$#'
identifier: new.resultUnused
count: 1
path: src/Plugin.php
-
message: '#^Function perform_handle_plugin_uninstall\(\) has no return type specified\.$#'
identifier: missingType.return
count: 1
path: uninstall.php