-
Notifications
You must be signed in to change notification settings - Fork 59
/
phpstan-baseline.neon
523 lines (414 loc) · 15.7 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
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
parameters:
reportUnmatchedIgnoredErrors: false
ignoreErrors:
-
message: "#^Call to static method get_setting() on an unknown class FLTheme\\.$#"
count: 1
path: themes/bb-theme/class-hfe-bb-theme-compat.php
-
message: "#^Function WC not found.$#"
count: 7
path: inc/widgets-manager/widgets/class-cart.php
-
message: "#^Function WC not found.$#"
count: 6
path: inc/widgets-manager/class-widgets-loader.php
-
message: "#^Constant AST_TARGET_RULE_URI not found\\.$#"
count: 6
path: inc/lib/target-rule/class-astra-target-rules-fields.php
-
message: "#^Constant AST_TARGET_RULE_VER not found.$#"
count: 7
path: inc/lib/target-rule/class-astra-target-rules-fields.php
-
message: '#^Property BSF_Analytics_Loader\:\:\$analytics_version \(float\) does not accept default value of type string\.$#'
path: admin/bsf-analytics/class-bsf-analytics-loader.php
-
message: '#^Property BSF_Analytics_Loader\:\:\$analytics_version \(float\) does not accept mixed\.$#'
path: admin/bsf-analytics/class-bsf-analytics-loader.php
-
message: '#^Constant BSF_ANALYTICS_URI not found\.$#'
count: 1
path: admin/bsf-analytics/class-bsf-analytics.php
-
message: '#^Constant WP_DEBUG_DISPLAY not found\.$#'
path: admin/bsf-analytics/class-bsf-analytics-stats.php
-
message: '#^Cannot cast mixed to float\.$#'
path: admin/bsf-analytics/class-bsf-analytics-stats.php
-
message: '#^If condition is always true\.$#'
count : 2
path: inc/class-hfe-elementor-canvas-compat.php
-
message: '#^Variable \$css_file might not be defined\.$#'
count : 4
path: inc/class-header-footer-elementor.php
-
message: '#^Constant BSF_ANALYTICS_VERSION not found\.$#'
path: admin/bsf-analytics/class-bsf-analytics.php
-
message: '#^Strict comparison using \=\=\= between ''no'' and true will always evaluate to false\.$#'
path: admin/bsf-analytics/class-bsf-analytics.php
-
message: '#^Variable \$type might not be defined\.$#'
path: admin/class-hfe-addons-actions.php
-
message: '#^Call to function ob_get_contents\(\) on a separate line has no effect\.$#'
path: admin/class-hfe-admin.php
-
message: '#^Argument of an invalid type object supplied for foreach, only iterables are supported\.$#'
path: inc/class-header-footer-elementor.php
-
message: '#^Argument of an invalid type object supplied for foreach, only iterables are supported\.$#'
path: inc/class-header-footer-elementor.php
-
message: '#^Property HFE\\Themes\\HFE_Settings_Page\:\:\$hfe_settings_tabs has unknown class HFE\\Themes\\settings as its type\.$#'
path: inc/class-hfe-settings-page.php
-
message: '#^Unreachable statement \- code above always terminates\.$#'
path: inc/class-hfe-settings-page.php
-
message: '#^Argument of an invalid type array\<int, WP_Term\>\|WP_Error supplied for foreach, only iterables are supported\.$#'
count : 2
path: inc/lib/target-rule/class-astra-target-rules-fields.php
-
message: '#^Function esc_html invoked with 2 parameters, 1 required\.$#'
path: inc/class-hfe-settings-page.php
-
message: '#^Constant AST_TARGET_RULE_DIR not found\.$#'
path: inc/lib/target-rule/class-astra-target-rules-fields.php
-
message: '#^Result of \|\| is always true\.$#'
path: inc/lib/target-rule/class-astra-target-rules-fields.php
-
message: '#^Property WP_User\:\:\$roles \(array\<string\>\) in isset\(\) is not nullable\.$#'
path: inc/lib/target-rule/class-astra-target-rules-fields.php
-
message: '#^Action callback returns object but should not return anything\.$#'
path: inc/widgets-manager/class-widgets-loader.php
-
message: '#^Result of method Walker\:\:display_element\(\) \(void\) is used\.$#'
path: inc/widgets-manager/widgets/class-menu-walker.php
-
message: '#^Undefined variable\: \$settings$#'
path: inc/widgets-manager/widgets/class-page-title.php
-
message: '#^Variable \$settings in isset\(\) is never defined\.$#'
path: inc/widgets-manager/widgets/class-page-title.php
-
message: '#^Action callback returns object but should not return anything\.$#'
path: inc/widgets-manager/class-widgets-loader.php
-
message: "#^Static property CartflowsAdmin\\\\AdminCore\\\\Ajax\\\\Debugger\\:\\:\\$file_deleted \\(object\\) does not accept true\\.$#"
count: 1
path: admin-core/ajax/debugger.php
-
message: "#^Static property CartflowsAdmin\\\\AdminCore\\\\Ajax\\\\Debugger\\:\\:\\$file_deleted is never read, only written\\.$#"
count: 1
path: admin-core/ajax/debugger.php
-
message: "#^Static property CartflowsAdmin\\\\AdminCore\\\\Ajax\\\\Debugger\\:\\:\\$instance \\(object\\) in isset\\(\\) is not nullable\\.$#"
count: 1
path: admin-core/ajax/debugger.php
-
message: "#^Unreachable statement \\- code above always terminates\\.$#"
count: 1
path: admin-core/ajax/debugger.php
-
message: "#^Access to an undefined property object\\:\\:\\$is_woo_active\\.$#"
count: 1
path: admin-core/ajax/flows-stats.php
-
message: "#^Argument of an invalid type array\\<WC_Order\\>\\|stdClass supplied for foreach, only iterables are supported\\.$#"
count: 1
path: admin-core/ajax/flows-stats.php
-
message: "#^Method CartflowsAdmin\\\\AdminCore\\\\Ajax\\\\FlowsStats\\:\\:get_all_flows_stats\\(\\) has no return type specified\\.$#"
count: 1
path: admin-core/ajax/flows-stats.php
-
message: "#^Method CartflowsAdmin\\\\AdminCore\\\\Ajax\\\\FlowsStats\\:\\:get_recent_orders\\(\\) return type has no value type specified in iterable type array\\.$#"
count: 1
path: admin-core/ajax/flows-stats.php
-
message: "#^Parameter \\#2 \\$timestamp of function gmdate expects int, int\\|false given\\.$#"
count: 2
path: admin-core/ajax/flows-stats.php
-
message: "#^Static property CartflowsAdmin\\\\AdminCore\\\\Ajax\\\\FlowsStats\\:\\:\\$instance \\(object\\) in isset\\(\\) is not nullable\\.$#"
count: 1
path: admin-core/ajax/flows-stats.php
-
message: "#^Access to an undefined property object\\:\\:\\$options\\.$#"
count: 1
path: admin-core/ajax/flows.php
-
message: "#^Call to an undefined method object\\:\\:get_flow_export_data\\(\\)\\.$#"
count: 1
path: admin-core/ajax/flows.php
-
message: "#^Cannot access property \\$comment_status on WP_Post\\|null\\.$#"
count: 1
path: admin-core/ajax/flows.php
-
message: "#^Cannot access property \\$menu_order on WP_Post\\|null\\.$#"
count: 1
path: admin-core/ajax/flows.php
-
message: "#^Cannot access property \\$ping_status on WP_Post\\|null\\.$#"
count: 1
path: admin-core/ajax/flows.php
-
message: "#^Cannot access property \\$post_content on WP_Post\\|null\\.$#"
count: 1
path: admin-core/ajax/flows.php
-
message: "#^Cannot access property \\$post_excerpt on WP_Post\\|null\\.$#"
count: 1
path: admin-core/ajax/flows.php
-
message: "#^Cannot access property \\$post_name on WP_Post\\|null\\.$#"
count: 1
path: admin-core/ajax/flows.php
-
message: "#^Cannot access property \\$post_parent on WP_Post\\|null\\.$#"
count: 1
path: admin-core/ajax/flows.php
-
message: "#^Cannot access property \\$post_password on WP_Post\\|null\\.$#"
count: 1
path: admin-core/ajax/flows.php
-
message: "#^Cannot access property \\$post_status on WP_Post\\|null\\.$#"
count: 1
path: admin-core/ajax/flows.php
-
message: "#^Cannot access property \\$post_title on WP_Post\\|null\\.$#"
count: 2
path: admin-core/ajax/flows.php
-
message: "#^Cannot access property \\$post_type on WP_Post\\|null\\.$#"
count: 1
path: admin-core/ajax/flows.php
-
message: "#^Cannot access property \\$to_ping on WP_Post\\|null\\.$#"
count: 1
path: admin-core/ajax/flows.php
-
message: "#^Constant CARTFLOWS_TAXONOMY_STEP_FLOW not found\\.$#"
count: 10
path: admin-core/ajax/flows.php
-
message: "#^Constant CARTFLOWS_TAXONOMY_STEP_TYPE not found\\.$#"
count: 1
path: admin-core/ajax/flows.php
-
message: "#^Function wp_trash_post invoked with 2 parameters, 0\\-1 required\\.$#"
count: 7
path: admin-core/ajax/flows.php
-
message: "#^Method CartflowsAdmin\\\\AdminCore\\\\Ajax\\\\Flows\\:\\:clone_flow\\(\\) has no return type specified\\.$#"
count: 1
path: admin-core/ajax/flows.php
-
message: "#^Method CartflowsAdmin\\\\AdminCore\\\\Ajax\\\\Flows\\:\\:delete_flow\\(\\) has no return type specified\\.$#"
count: 1
path: admin-core/ajax/flows.php
-
message: "#^Method CartflowsAdmin\\\\AdminCore\\\\Ajax\\\\Flows\\:\\:delete_flows_permanently\\(\\) has no return type specified\\.$#"
count: 1
path: admin-core/ajax/flows.php
-
message: "#^Method CartflowsAdmin\\\\AdminCore\\\\Ajax\\\\Flows\\:\\:export_flows_in_bulk\\(\\) has no return type specified\\.$#"
count: 1
path: admin-core/ajax/flows.php
-
message: "#^Method CartflowsAdmin\\\\AdminCore\\\\Ajax\\\\Flows\\:\\:reorder_flow_steps\\(\\) has no return type specified\\.$#"
count: 1
path: admin-core/ajax/flows.php
-
message: "#^Method CartflowsAdmin\\\\AdminCore\\\\Ajax\\\\Flows\\:\\:restore_flow\\(\\) has no return type specified\\.$#"
count: 1
path: admin-core/ajax/flows.php
-
message: "#^Method CartflowsAdmin\\\\AdminCore\\\\Ajax\\\\Flows\\:\\:save_flow_meta_settings\\(\\) has no return type specified\\.$#"
count: 1
path: admin-core/ajax/flows.php
-
message: "#^Method CartflowsAdmin\\\\AdminCore\\\\Ajax\\\\Flows\\:\\:trash_flow\\(\\) has no return type specified\\.$#"
count: 1
path: admin-core/ajax/flows.php
-
message: "#^Method CartflowsAdmin\\\\AdminCore\\\\Ajax\\\\Flows\\:\\:trash_flows_in_bulk\\(\\) has no return type specified\\.$#"
count: 1
path: admin-core/ajax/flows.php
-
message: "#^Method CartflowsAdmin\\\\AdminCore\\\\Ajax\\\\Flows\\:\\:update_flow_post_status\\(\\) has no return type specified\\.$#"
count: 1
path: admin-core/ajax/flows.php
-
message: "#^Method CartflowsAdmin\\\\AdminCore\\\\Ajax\\\\Flows\\:\\:update_flow_title\\(\\) has no return type specified\\.$#"
count: 1
path: admin-core/ajax/flows.php
-
message: "#^Method CartflowsAdmin\\\\AdminCore\\\\Ajax\\\\Flows\\:\\:update_status\\(\\) has no return type specified\\.$#"
count: 1
path: admin-core/ajax/flows.php
-
message: "#^Parameter \\#1 \\$post_id of function wp_trash_post expects int, string given\\.$#"
count: 3
path: admin-core/ajax/flows.php
-
message: "#^Parameter \\#1 \\$post_id of function wp_untrash_post expects int, string given\\.$#"
count: 1
path: admin-core/ajax/flows.php
-
message: "#^Parameter \\#1 \\$term of function wp_delete_term expects int, string given\\.$#"
count: 1
path: admin-core/ajax/flows.php
-
message: "#^Parameter \\#2 \\$terms of function wp_set_object_terms expects array\\|int\\|string, array\\<int, string\\>\\|WP_Error given\\.$#"
count: 1
path: admin-core/ajax/flows.php
-
message: "#^Parameter \\#2 \\$terms of function wp_set_object_terms expects array\\|int\\|string, mixed given\\.$#"
count: 1
path: admin-core/ajax/flows.php
-
message: "#^Static property CartflowsAdmin\\\\AdminCore\\\\Ajax\\\\Flows\\:\\:\\$instance \\(object\\) in isset\\(\\) is not nullable\\.$#"
count: 1
path: admin-core/ajax/flows.php
-
message: "#^Strict comparison using \\=\\=\\= between null and WP_Post will always evaluate to false\\.$#"
count: 1
path: admin-core/ajax/flows.php
-
message: "#^Access to an undefined property object\\:\\:\\$global_primary_color\\.$#"
count: 2
path: admin-core/ajax/importer.php
-
message: "#^Access to an undefined property object\\:\\:\\$is_woo_active\\.$#"
count: 1
path: admin-core/ajax/importer.php
-
message: "#^Access to an undefined property object\\:\\:\\$logger\\.$#"
count: 20
path: admin-core/ajax/importer.php
-
message: "#^Access to an undefined property object\\:\\:\\$photo_src\\.$#"
count: 2
path: admin-core/ajax/importer.php
-
message: "#^Access to an undefined property object\\:\\:\\$utils\\.$#"
count: 1
path: admin-core/ajax/importer.php
-
message: "#^Argument of an invalid type mixed supplied for foreach, only iterables are supported\\.$#"
count: 1
path: admin-core/ajax/importer.php
-
message: "#^Call to an undefined method object\\:\\:create_step\\(\\)\\.$#"
count: 2
path: admin-core/ajax/importer.php
-
message: "#^Call to an undefined method object\\:\\:get_all_flow_export_data\\(\\)\\.$#"
count: 1
path: admin-core/ajax/importer.php
-
message: "#^Call to an undefined method object\\:\\:get_flow\\(\\)\\.$#"
count: 3
path: admin-core/ajax/importer.php
-
message: "#^Call to an undefined method object\\:\\:get_flow_export_data\\(\\)\\.$#"
count: 1
path: admin-core/ajax/importer.php
-
message: "#^Call to an undefined method object\\:\\:get_flows_and_steps\\(\\)\\.$#"
count: 1
path: admin-core/ajax/importer.php
-
message: "#^Call to an undefined method object\\:\\:get_last_export_checksums\\(\\)\\.$#"
count: 1
path: admin-core/ajax/importer.php
-
message: "#^Call to an undefined method object\\:\\:get_meta_keys_to_exclude_from_import\\(\\)\\.$#"
count: 1
path: admin-core/ajax/importer.php
-
message: "#^Call to an undefined method object\\:\\:get_plugin_status\\(\\)\\.$#"
count: 3
path: admin-core/ajax/importer.php
-
message: "#^Call to an undefined method object\\:\\:get_template\\(\\)\\.$#"
count: 2
path: admin-core/ajax/importer.php
-
message: "#^Call to an undefined method object\\:\\:get_total_requests\\(\\)\\.$#"
count: 1
path: admin-core/ajax/importer.php
-
message: "#^Call to an undefined method object\\:\\:import_from_json_data\\(\\)\\.$#"
count: 1
path: admin-core/ajax/importer.php
-
message: "#^Call to an undefined method object\\:\\:import_sites\\(\\)\\.$#"
count: 1
path: admin-core/ajax/importer.php
-
message: "#^Call to an undefined method object\\:\\:process_batch\\(\\)\\.$#"
count: 1
path: admin-core/ajax/importer.php
-
message: "#^Call to an undefined method object\\:\\:test_cron\\(\\)\\.$#"
count: 1
path: admin-core/ajax/importer.php
-
message: "#^Call to an undefined method object\\:\\:update_latest_checksums\\(\\)\\.$#"
count: 1
path: admin-core/ajax/importer.php
-
message: "#^Call to function is_wp_error\\(\\) with int\\<0, max\\> will always evaluate to false\\.$#"
count: 3
path: admin-core/ajax/importer.php
-
message: "#^Call to static method get_layout_data\\(\\) on an unknown class FLBuilderModel\\.$#"
count: 1
path: admin-core/ajax/importer.php
-
message: "#^Cannot access offset 'ID' on mixed\\.$#"
count: 3
path: admin-core/ajax/importer.php
-
message: "#^Cannot access offset 'steps' on mixed\\.$#"
count: 2
path: admin-core/ajax/importer.php
-
message: "#^Cannot access offset 'title' on mixed\\.$#"
count: 1
path: admin-core/ajax/importer.php
-
message: "#^Cannot access offset 'type' on mixed\\.$#"
count: 2
path: admin-core/ajax/importer.php
-
message: "#^Cannot access property \\$message on mixed\\.$#"
count: 1
path: admin-core/ajax/importer.php
-
message: "#^Cannot access property \\$post_content on WP_Post\\|null\\.$#"
count: 1
path: admin-core/ajax/importer.php
-
message: "#^Comparison operation \"\\>\" between int\\<1, max\\> and 0 is always true\\.$#"
count: 1
path: admin-core/ajax/importer.php
-
message: "#^Constant CARTFLOWS_SLUG not found\\.$#"
count: 2
path: admin-core/ajax/importer.php
#common errors
- '#type has no value type specified in iterable type array\.$#'
- '#with no value type specified in iterable type array\.$#'
- "#^While loop condition is always true\\.$#"