Skip to content

Instantly share code, notes, and snippets.

@westonruter
Created February 28, 2026 19:50
Show Gist options
  • Select an option

  • Save westonruter/79f3434dac3587048848c7a7a183cfb6 to your computer and use it in GitHub Desktop.

Select an option

Save westonruter/79f3434dac3587048848c7a7a183cfb6 to your computer and use it in GitHub Desktop.
--- before.txt 2026-02-28 11:28:52
+++ after.txt 2026-02-28 11:43:42
@@ -9,12 +9,6 @@
string, false given.
🪪 argument.type
at src/wp-activate.php:40
- 55 Cannot call method get_error_code() on array|WP_Error.
- 🪪 method.nonObject
- at src/wp-activate.php:55
- 58 Cannot call method get_error_code() on array|WP_Error.
- 🪪 method.nonObject
- at src/wp-activate.php:58
68 Variable $wp_query might not be defined.
🪪 variable.undefined
at src/wp-activate.php:68
@@ -24,27 +18,9 @@
101 Function wpmu_activate_stylesheet() has no return type specified.
🪪 missingType.return
at src/wp-activate.php:101
- 140 Cannot call method get_error_code() on array|WP_Error.
- 🪪 method.nonObject
- at src/wp-activate.php:140
- 141 Cannot call method get_error_data() on array|WP_Error.
- 🪪 method.nonObject
- at src/wp-activate.php:141
- 170 Cannot call method get_error_message() on array|WP_Error.
- 🪪 method.nonObject
- at src/wp-activate.php:170
- 174 Cannot access offset 'blog_id' on array|WP_Error.
- 🪪 offsetAccess.nonOffsetAccessible
- at src/wp-activate.php:174
- 175 Cannot access offset 'user_id' on array|WP_Error.
- 🪪 offsetAccess.nonOffsetAccessible
- at src/wp-activate.php:175
180 Cannot access property $user_login on WP_User|false.
🪪 property.nonObject
at src/wp-activate.php:180
- 181 Cannot access offset 'password' on array|WP_Error.
- 🪪 offsetAccess.nonOffsetAccessible
- at src/wp-activate.php:181
------ -----------------------------------------------------------------------
------ -------------------------------------------------------
@@ -123,27 +99,7 @@
given.
🪪 argument.type
at src/wp-admin/async-upload.php:75
- 130 Cannot call method get_error_message() on int|WP_Error.
- 🪪 method.nonObject
- at src/wp-admin/async-upload.php:130
- 154 Parameter #1 (int|WP_Error) of echo cannot be converted to string.
- 🪪 echo.nonString
- at src/wp-admin/async-upload.php:154
------ --------------------------------------------------------------------
-
- ------ -----------------------------------------------------------
- Line wp-admin/authorize-application.php
- ------ -----------------------------------------------------------
- 43 Cannot use array destructuring on array|WP_Error.
- 🪪 offsetAccess.nonArray
- at src/wp-admin/authorize-application.php:43
- 87 Cannot call method get_error_messages() on WP_Error|true.
- 🪪 method.nonObject
- at src/wp-admin/authorize-application.php:87
- 143 Cannot call method get_error_message() on array|WP_Error.
- 🪪 method.nonObject
- at src/wp-admin/authorize-application.php:143
- ------ -----------------------------------------------------------
------ -----------------------------------------------------------------------
Line wp-admin/comment.php
@@ -291,9 +247,6 @@
int|WP_Comment, array|WP_Comment|null given.
🪪 argument.type
at src/wp-admin/comment.php:348
- 364 Cannot call method get_error_message() on int|WP_Error.
- 🪪 method.nonObject
- at src/wp-admin/comment.php:364
------ -----------------------------------------------------------------------
------ -------------------------------------------------------
@@ -1024,18 +977,6 @@
expects string, array|string given.
🪪 argument.type
at src/wp-admin/includes/ajax-actions.php:378
- 384 Cannot call method get_error_message() on array|WP_Error.
- 🪪 method.nonObject
- at src/wp-admin/includes/ajax-actions.php:384
- 388 Cannot access offset 'location' on array|WP_Error.
- 🪪 offsetAccess.nonOffsetAccessible
- at src/wp-admin/includes/ajax-actions.php:388
- 390 Cannot access offset 'location' on array|WP_Error.
- 🪪 offsetAccess.nonOffsetAccessible
- at src/wp-admin/includes/ajax-actions.php:390
- 408 Cannot access offset 'location' on array|WP_Error.
- 🪪 offsetAccess.nonOffsetAccessible
- at src/wp-admin/includes/ajax-actions.php:408
420 Function wp_ajax_dashboard_widgets() has no return type specified.
🪪 missingType.return
at src/wp-admin/includes/ajax-actions.php:420
@@ -1104,9 +1045,6 @@
623 Cannot access property $name on WP_Taxonomy|false.
🪪 property.nonObject
at src/wp-admin/includes/ajax-actions.php:623
- 628 Cannot access offset 'term_id' on non-empty-array|WP_Error.
- 🪪 offsetAccess.nonOffsetAccessible
- at src/wp-admin/includes/ajax-actions.php:628
642 Cannot access property $name on WP_Taxonomy|false.
🪪 property.nonObject
at src/wp-admin/includes/ajax-actions.php:642
@@ -1132,7 +1070,7 @@
664 Cannot access property $parent on array|WP_Error|WP_Term.
🪪 property.nonObject
at src/wp-admin/includes/ajax-actions.php:664
- 668 Cannot access property $term_id on array|WP_Error|WP_Term.
+ 668 Cannot access property $term_id on array|WP_Term.
🪪 property.nonObject
at src/wp-admin/includes/ajax-actions.php:668
676 Cannot access property $name on WP_Taxonomy|false.
@@ -1406,9 +1344,6 @@
given.
🪪 argument.type
at src/wp-admin/includes/ajax-actions.php:1053
- 1069 Cannot access offset 'term_id' on non-empty-array|WP_Error.
- 🪪 offsetAccess.nonOffsetAccessible
- at src/wp-admin/includes/ajax-actions.php:1069
1092 Function wp_ajax_add_tag() has no return type specified.
🪪 missingType.return
at src/wp-admin/includes/ajax-actions.php:1092
@@ -1419,21 +1354,6 @@
given.
🪪 argument.type
at src/wp-admin/includes/ajax-actions.php:1099
- 1107 Cannot access offset 'term_id' on non-empty-array|WP_Error.
- 🪪 offsetAccess.nonOffsetAccessible
- at src/wp-admin/includes/ajax-actions.php:1107
- 1114 Cannot call method get_error_message() on array|WP_Error|WP_Term.
- 🪪 method.nonObject
- at src/wp-admin/includes/ajax-actions.php:1114
- 1115 Cannot call method get_error_message() on array|WP_Error|WP_Term.
- 🪪 method.nonObject
- at src/wp-admin/includes/ajax-actions.php:1115
- 1118 Cannot call method get_error_code() on array|WP_Error|WP_Term.
- 🪪 method.nonObject
- at src/wp-admin/includes/ajax-actions.php:1118
- 1119 Cannot call method get_error_code() on array|WP_Error|WP_Term.
- 🪪 method.nonObject
- at src/wp-admin/includes/ajax-actions.php:1119
1137 Cannot access property $term_id on array|WP_Error|WP_Term.
🪪 property.nonObject
at src/wp-admin/includes/ajax-actions.php:1137
@@ -1470,10 +1390,6 @@
1210 Cannot access property $labels on WP_Taxonomy|false.
🪪 property.nonObject
at src/wp-admin/includes/ajax-actions.php:1210
- 1214 Cannot call method get_error_message() on array<int|string|WP_Term>|s
- tring|WP_Error.
- 🪪 method.nonObject
- at src/wp-admin/includes/ajax-actions.php:1214
1217 Argument of an invalid type array<int|string|WP_Term>|string|WP_Error
supplied for foreach, only iterables are supported.
🪪 foreach.nonIterable
@@ -1576,9 +1492,6 @@
int|WP_Comment, array|WP_Comment given.
🪪 argument.type
at src/wp-admin/includes/ajax-actions.php:1396
- 1405 Cannot call method get_error_message() on int|WP_Error|false.
- 🪪 method.nonObject
- at src/wp-admin/includes/ajax-actions.php:1405
1408 Parameter #1 $comment of function get_comment expects
int|string|WP_Comment|null, int|WP_Error|false given.
🪪 argument.type
@@ -1616,9 +1529,6 @@
given.
🪪 argument.type
at src/wp-admin/includes/ajax-actions.php:1474
- 1487 Cannot call method get_error_message() on int|WP_Error.
- 🪪 method.nonObject
- at src/wp-admin/includes/ajax-actions.php:1487
1501 Parameter #1 $message of function wp_die expects string|WP_Error, int
given.
🪪 argument.type
@@ -1941,21 +1851,6 @@
2208 Cannot access property $description on array|WP_Error|WP_Term.
🪪 property.nonObject
at src/wp-admin/includes/ajax-actions.php:2208
- 2213 Cannot access offset 'term_id' on non-empty-array|WP_Error.
- 🪪 offsetAccess.nonOffsetAccessible
- at src/wp-admin/includes/ajax-actions.php:2213
- 2215 Cannot call method get_error_message() on array|WP_Error|WP_Term.
- 🪪 method.nonObject
- at src/wp-admin/includes/ajax-actions.php:2215
- 2216 Cannot call method get_error_message() on array|WP_Error|WP_Term.
- 🪪 method.nonObject
- at src/wp-admin/includes/ajax-actions.php:2216
- 2221 Cannot call method get_error_message() on array|WP_Error.
- 🪪 method.nonObject
- at src/wp-admin/includes/ajax-actions.php:2221
- 2222 Cannot call method get_error_message() on array|WP_Error.
- 🪪 method.nonObject
- at src/wp-admin/includes/ajax-actions.php:2222
2228 Cannot access property $parent on array|WP_Error|WP_Term.
🪪 property.nonObject
at src/wp-admin/includes/ajax-actions.php:2228
@@ -2087,9 +1982,6 @@
2575 Function wp_ajax_upload_attachment() has no return type specified.
🪪 missingType.return
at src/wp-admin/includes/ajax-actions.php:2575
- 2620 Cannot call method get_error_message() on array|WP_Error.
- 🪪 method.nonObject
- at src/wp-admin/includes/ajax-actions.php:2620
2624 Cannot access offset 'context' on array|WP_Error.
🪪 offsetAccess.nonOffsetAccessible
at src/wp-admin/includes/ajax-actions.php:2624
@@ -2097,9 +1989,6 @@
array, array|WP_Error given.
🪪 argument.type
at src/wp-admin/includes/ajax-actions.php:2642
- 2649 Cannot call method get_error_message() on int|WP_Error.
- 🪪 method.nonObject
- at src/wp-admin/includes/ajax-actions.php:2649
2658 Cannot access offset 'context' on array|WP_Error.
🪪 offsetAccess.nonOffsetAccessible
at src/wp-admin/includes/ajax-actions.php:2658
@@ -2411,24 +2300,9 @@
array|string given.
🪪 argument.type
at src/wp-admin/includes/ajax-actions.php:4177
- 4201 Cannot call method get_error_message() on array|object.
- 🪪 method.nonObject
- at src/wp-admin/includes/ajax-actions.php:4201
4207 Cannot access property $download_link on array|object.
🪪 property.nonObject
at src/wp-admin/includes/ajax-actions.php:4207
- 4214 Cannot call method get_error_code() on bool|WP_Error.
- 🪪 method.nonObject
- at src/wp-admin/includes/ajax-actions.php:4214
- 4215 Cannot call method get_error_message() on bool|WP_Error.
- 🪪 method.nonObject
- at src/wp-admin/includes/ajax-actions.php:4215
- 4218 Cannot call method get_error_code() on bool|string|WP_Error.
- 🪪 method.nonObject
- at src/wp-admin/includes/ajax-actions.php:4218
- 4219 Cannot call method get_error_message() on bool|string|WP_Error.
- 🪪 method.nonObject
- at src/wp-admin/includes/ajax-actions.php:4219
4290 Function wp_ajax_update_theme() has no return type specified.
🪪 missingType.return
at src/wp-admin/includes/ajax-actions.php:4290
@@ -2440,12 +2314,6 @@
array<string>, array<int, array<string>|string|null> given.
🪪 argument.type
at src/wp-admin/includes/ajax-actions.php:4330
- 4337 Cannot call method get_error_code() on bool|string|WP_Error.
- 🪪 method.nonObject
- at src/wp-admin/includes/ajax-actions.php:4337
- 4338 Cannot call method get_error_message() on bool|string|WP_Error.
- 🪪 method.nonObject
- at src/wp-admin/includes/ajax-actions.php:4338
4343 Possibly invalid array key type array<string>|string|null.
🪪 offsetAccess.invalidOffset
at src/wp-admin/includes/ajax-actions.php:4343
@@ -2472,9 +2340,6 @@
array<string>|string|null given.
🪪 argument.type
at src/wp-admin/includes/ajax-actions.php:4437
- 4440 Cannot call method get_error_message() on bool|WP_Error.
- 🪪 method.nonObject
- at src/wp-admin/includes/ajax-actions.php:4440
4459 Function wp_ajax_install_plugin() has no return type specified.
🪪 missingType.return
at src/wp-admin/includes/ajax-actions.php:4459
@@ -2486,30 +2351,15 @@
array|string given.
🪪 argument.type
at src/wp-admin/includes/ajax-actions.php:4488
- 4496 Cannot call method get_error_message() on array|object.
- 🪪 method.nonObject
- at src/wp-admin/includes/ajax-actions.php:4496
4500 Cannot access property $name on array|object.
🪪 property.nonObject
at src/wp-admin/includes/ajax-actions.php:4500
4504 Cannot access property $download_link on array|object.
🪪 property.nonObject
at src/wp-admin/includes/ajax-actions.php:4504
- 4511 Cannot call method get_error_code() on bool|WP_Error.
- 🪪 method.nonObject
- at src/wp-admin/includes/ajax-actions.php:4511
- 4512 Cannot call method get_error_message() on bool|WP_Error.
- 🪪 method.nonObject
- at src/wp-admin/includes/ajax-actions.php:4512
- 4515 Cannot call method get_error_code() on bool|string|WP_Error.
- 🪪 method.nonObject
- at src/wp-admin/includes/ajax-actions.php:4515
- 4516 Cannot call method get_error_message() on bool|string|WP_Error.
- 🪪 method.nonObject
- at src/wp-admin/includes/ajax-actions.php:4516
4553 Offset 'activateUrl' might not exist on array{install: 'plugin',
- slug: string, errorMessage?: mixed, pluginName: mixed, debug?: array<
- string>, errorCode?: int|string, activateUrl?: string}.
+ slug: string, errorMessage?: string, pluginName: mixed, debug?: array
+ <string>, errorCode?: int|string, activateUrl?: string}.
🪪 offsetAccess.notFound
at src/wp-admin/includes/ajax-actions.php:4553
4564 Function wp_ajax_activate_plugin() has no return type specified.
@@ -2538,12 +2388,6 @@
array|string given.
🪪 argument.type
at src/wp-admin/includes/ajax-actions.php:4635
- 4667 Cannot call method get_error_code() on bool|string|WP_Error.
- 🪪 method.nonObject
- at src/wp-admin/includes/ajax-actions.php:4667
- 4668 Cannot call method get_error_message() on bool|string|WP_Error.
- 🪪 method.nonObject
- at src/wp-admin/includes/ajax-actions.php:4668
4692 Cannot access offset 'Version' on array|false.
🪪 offsetAccess.nonOffsetAccessible
at src/wp-admin/includes/ajax-actions.php:4692
@@ -2562,9 +2406,6 @@
array|true given.
🪪 argument.type
at src/wp-admin/includes/ajax-actions.php:4767
- 4784 Cannot call method get_error_message() on bool|WP_Error.
- 🪪 method.nonObject
- at src/wp-admin/includes/ajax-actions.php:4784
4801 Function wp_ajax_search_plugins() has no return type specified.
🪪 missingType.return
at src/wp-admin/includes/ajax-actions.php:4801
@@ -2580,15 +2421,6 @@
array<string>, array|string given.
🪪 argument.type
at src/wp-admin/includes/ajax-actions.php:4911
- 4917 Cannot call method get_error_code() on WP_Error|true.
- 🪪 method.nonObject
- at src/wp-admin/includes/ajax-actions.php:4917
- 4918 Cannot call method get_error_message() on WP_Error|true.
- 🪪 method.nonObject
- at src/wp-admin/includes/ajax-actions.php:4918
- 4920 Cannot call method get_error_data() on WP_Error|true.
- 🪪 method.nonObject
- at src/wp-admin/includes/ajax-actions.php:4920
4937 Function wp_ajax_wp_privacy_export_personal_data() has no return type
specified.
🪪 missingType.return
@@ -2742,15 +2574,6 @@
https://phpstan.org/blog/solving-phpstan-no-value-type-specified-in-i
terable-type
at src/wp-admin/includes/class-automatic-upgrader-skin.php:74
- 76 Cannot call method get_error_message() on array|string|WP_Error.
- 🪪 method.nonObject
- at src/wp-admin/includes/class-automatic-upgrader-skin.php:76
- 83 Possibly invalid array key type string|WP_Error.
- 🪪 offsetAccess.invalidOffset
- at src/wp-admin/includes/class-automatic-upgrader-skin.php:83
- 84 Possibly invalid array key type string|WP_Error.
- 🪪 offsetAccess.invalidOffset
- at src/wp-admin/includes/class-automatic-upgrader-skin.php:84
98 Parameter #2 $allowed_html of function wp_kses expects array<array>|s
tring, array<string, array<string, bool>|true> given.
🪪 argument.type
@@ -2854,18 +2677,6 @@
128 Method Bulk_Upgrader_Skin::error() has no return type specified.
🪪 missingType.return
at src/wp-admin/includes/class-bulk-upgrader-skin.php:128
- 135 Cannot call method get_error_messages() on string|WP_Error.
- 🪪 method.nonObject
- at src/wp-admin/includes/class-bulk-upgrader-skin.php:135
- 136 Cannot call method get_error_data() on string|WP_Error.
- 🪪 method.nonObject
- at src/wp-admin/includes/class-bulk-upgrader-skin.php:136
- 136 Cannot call method get_error_data() on string|WP_Error.
- 🪪 method.nonObject
- at src/wp-admin/includes/class-bulk-upgrader-skin.php:136
- 137 Cannot call method get_error_data() on string|WP_Error.
- 🪪 method.nonObject
- at src/wp-admin/includes/class-bulk-upgrader-skin.php:137
144 Parameter #1 $text of function esc_js expects string, int given.
🪪 argument.type
at src/wp-admin/includes/class-bulk-upgrader-skin.php:144
@@ -2920,10 +2731,6 @@
https://phpstan.org/blog/solving-phpstan-no-value-type-specified-in-i
terable-type
at src/wp-admin/includes/class-core-upgrader.php:66
- 91 Method Core_Upgrader::upgrade() should return string|WP_Error|false
- but returns bool|WP_Error.
- 🪪 return.type
- at src/wp-admin/includes/class-core-upgrader.php:91
109 Access to an undefined property object::$packages.
🪪 property.notFound
💡 Learn more: https://phpstan.org/blog/solving-phpstan-access-to-und
@@ -2965,37 +2772,11 @@
💡 Learn more: https://phpstan.org/blog/solving-phpstan-access-to-und
efined-property
at src/wp-admin/includes/class-core-upgrader.php:128
- 134 Cannot call method get_error_data() on string|WP_Error.
- 🪪 method.nonObject
- at src/wp-admin/includes/class-core-upgrader.php:134
- 137 Cannot call method get_error_message() on string|WP_Error.
- 🪪 method.nonObject
- at src/wp-admin/includes/class-core-upgrader.php:137
- 142 Cannot call method get_error_code() on string|WP_Error.
- 🪪 method.nonObject
- at src/wp-admin/includes/class-core-upgrader.php:142
- 143 Cannot call method get_error_data() on string|WP_Error.
- 🪪 method.nonObject
- at src/wp-admin/includes/class-core-upgrader.php:143
- 148 Cannot call method get_error_data() on string|WP_Error.
- 🪪 method.nonObject
- at src/wp-admin/includes/class-core-upgrader.php:148
- 163 Binary operation "." between string|WP_Error and
- '/wordpress/wp-admin…' results in an error.
- 🪪 binaryOp.invalid
- at src/wp-admin/includes/class-core-upgrader.php:163
- 178 Parameter #1 $from of function update_core expects string,
- string|WP_Error given.
- 🪪 argument.type
- at src/wp-admin/includes/class-core-upgrader.php:178
181 Access to an undefined property object::$packages.
🪪 property.notFound
💡 Learn more: https://phpstan.org/blog/solving-phpstan-access-to-und
efined-property
at src/wp-admin/includes/class-core-upgrader.php:181
- 184 Cannot call method get_error_code() on string|WP_Error.
- 🪪 method.nonObject
- at src/wp-admin/includes/class-core-upgrader.php:184
190 Parameter #1 $haystack of function str_contains expects string,
int|string given.
🪪 argument.type
@@ -3024,18 +2805,6 @@
253 Variable $rollback_result might not be defined.
🪪 variable.undefined
at src/wp-admin/includes/class-core-upgrader.php:253
- 254 Variable $rollback_result might not be defined.
- 🪪 variable.undefined
- at src/wp-admin/includes/class-core-upgrader.php:254
- 255 Variable $rollback_result might not be defined.
- 🪪 variable.undefined
- at src/wp-admin/includes/class-core-upgrader.php:255
- 258 Cannot call method get_error_code() on string|WP_Error.
- 🪪 method.nonObject
- at src/wp-admin/includes/class-core-upgrader.php:258
- 259 Cannot call method get_error_data() on string|WP_Error.
- 🪪 method.nonObject
- at src/wp-admin/includes/class-core-upgrader.php:259
282 Parameter #1 $input of function array_slice expects array, list<strin
g>|false given.
🪪 argument.type
@@ -3632,12 +3401,6 @@
100 Call to an undefined method WP_Upgrader::plugin_info().
🪪 method.notFound
at src/wp-admin/includes/class-plugin-installer-skin.php:100
- 193 Cannot call method get_error_code() on bool|string|WP_Error.
- 🪪 method.nonObject
- at src/wp-admin/includes/class-plugin-installer-skin.php:193
- 197 Cannot call method get_error_data() on bool|string|WP_Error.
- 🪪 method.nonObject
- at src/wp-admin/includes/class-plugin-installer-skin.php:197
211 Access to an undefined property WP_Upgrader::$new_plugin_data.
🪪 property.notFound
💡 Learn more: https://phpstan.org/blog/solving-phpstan-access-to-und
@@ -3810,20 +3573,11 @@
103 Call to an undefined method WP_Upgrader::theme_info().
🪪 method.notFound
at src/wp-admin/includes/class-theme-installer-skin.php:103
- 214 Cannot call method get_error_code() on bool|string|WP_Error.
- 🪪 method.nonObject
- at src/wp-admin/includes/class-theme-installer-skin.php:214
- 218 Cannot call method get_error_data() on bool|string|WP_Error.
- 🪪 method.nonObject
- at src/wp-admin/includes/class-theme-installer-skin.php:218
234 Access to an undefined property WP_Upgrader::$new_theme_data.
🪪 property.notFound
💡 Learn more: https://phpstan.org/blog/solving-phpstan-access-to-und
efined-property
at src/wp-admin/includes/class-theme-installer-skin.php:234
- 244 Cannot call method get_error_message() on WP_Error|false.
- 🪪 method.nonObject
- at src/wp-admin/includes/class-theme-installer-skin.php:244
270 Cannot cast non-empty-array|non-falsy-string to string.
🪪 cast.string
at src/wp-admin/includes/class-theme-installer-skin.php:270
@@ -4198,7 +3952,7 @@
💡 Learn more: https://phpstan.org/blog/solving-phpstan-access-to-und
efined-property
at src/wp-admin/includes/class-walker-nav-menu-edit.php:82
- 84 Cannot access property $name on array|WP_Error|WP_Term.
+ 84 Cannot access property $name on array|WP_Term.
🪪 property.nonObject
at src/wp-admin/includes/class-walker-nav-menu-edit.php:84
87 Access to an undefined property WP_Post::$object_id.
@@ -4328,15 +4082,6 @@
https://phpstan.org/blog/solving-phpstan-no-value-type-specified-in-i
terable-type
at src/wp-admin/includes/class-wp-ajax-upgrader-skin.php:150
- 152 Cannot call method get_error_codes() on array|string|WP_Error.
- 🪪 method.nonObject
- at src/wp-admin/includes/class-wp-ajax-upgrader-skin.php:152
- 153 Cannot call method get_error_data() on array|string|WP_Error.
- 🪪 method.nonObject
- at src/wp-admin/includes/class-wp-ajax-upgrader-skin.php:153
- 153 Cannot call method get_error_message() on array|string|WP_Error.
- 🪪 method.nonObject
- at src/wp-admin/includes/class-wp-ajax-upgrader-skin.php:153
------ -----------------------------------------------------------------------
------ -----------------------------------------------------------------------
@@ -4599,12 +4344,6 @@
501 Variable $upgrader might not be defined.
🪪 variable.undefined
at src/wp-admin/includes/class-wp-automatic-updater.php:501
- 511 Cannot call method get_error_code() on array|string|WP_Error|true.
- 🪪 method.nonObject
- at src/wp-admin/includes/class-wp-automatic-updater.php:511
- 512 Cannot call method get_error_code() on array|string|WP_Error|true.
- 🪪 method.nonObject
- at src/wp-admin/includes/class-wp-automatic-updater.php:512
515 Variable $upgrader might not be defined.
🪪 variable.undefined
at src/wp-admin/includes/class-wp-automatic-updater.php:515
@@ -4612,13 +4351,6 @@
returns false.
🪪 return.type
at src/wp-admin/includes/class-wp-automatic-updater.php:521
- 526 Cannot call method add() on array|string|WP_Error|true.
- 🪪 method.nonObject
- at src/wp-admin/includes/class-wp-automatic-updater.php:526
- 527 Parameter #1 $errors of method WP_Upgrader_Skin::error() expects
- string|WP_Error, array|string|WP_Error|true given.
- 🪪 argument.type
- at src/wp-admin/includes/class-wp-automatic-updater.php:527
536 Access to an undefined property object::$theme.
🪪 property.notFound
💡 Learn more: https://phpstan.org/blog/solving-phpstan-access-to-und
@@ -4645,10 +4377,6 @@
💡 Learn more: https://phpstan.org/blog/solving-phpstan-access-to-und
efined-property
at src/wp-admin/includes/class-wp-automatic-updater.php:583
- 587 Parameter #1 $error of method WP_Error::merge_from() expects
- WP_Error, bool|WP_Error given.
- 🪪 argument.type
- at src/wp-admin/includes/class-wp-automatic-updater.php:587
594 Access to an undefined property object::$slug.
🪪 property.notFound
💡 Learn more: https://phpstan.org/blog/solving-phpstan-access-to-und
@@ -4657,10 +4385,6 @@
598 Variable $upgrader might not be defined.
🪪 variable.undefined
at src/wp-admin/includes/class-wp-automatic-updater.php:598
- 600 Parameter #1 $error of method WP_Error::merge_from() expects
- WP_Error, bool|WP_Error given.
- 🪪 argument.type
- at src/wp-admin/includes/class-wp-automatic-updater.php:600
617 Access to an undefined property object::$slug.
🪪 property.notFound
💡 Learn more: https://phpstan.org/blog/solving-phpstan-access-to-und
@@ -4693,6 +4417,14 @@
💡 Learn more: https://phpstan.org/blog/solving-phpstan-access-to-und
efined-property
at src/wp-admin/includes/class-wp-automatic-updater.php:801
+ 815 Parameter #1 $haystack of function str_contains expects string,
+ int|string given.
+ 🪪 argument.type
+ at src/wp-admin/includes/class-wp-automatic-updater.php:815
+ 821 Parameter #1 $haystack of function str_contains expects string,
+ int|string given.
+ 🪪 argument.type
+ at src/wp-admin/includes/class-wp-automatic-updater.php:821
898 Method WP_Automatic_Updater::send_email() has no return type
specified.
🪪 missingType.return
@@ -4792,15 +4524,6 @@
error.
🪪 binaryOp.invalid
at src/wp-admin/includes/class-wp-automatic-updater.php:1793
- 1811 Cannot call method get_error_message() on array|WP_Error.
- 🪪 method.nonObject
- at src/wp-admin/includes/class-wp-automatic-updater.php:1811
- 1818 Cannot access offset 'body' on array|WP_Error.
- 🪪 offsetAccess.nonOffsetAccessible
- at src/wp-admin/includes/class-wp-automatic-updater.php:1818
- 1818 Cannot access offset 'body' on array|WP_Error.
- 🪪 offsetAccess.nonOffsetAccessible
- at src/wp-admin/includes/class-wp-automatic-updater.php:1818
1818 Parameter #2 $start of function substr expects int, int<0, max>|false
given.
🪪 argument.type
@@ -5116,12 +4839,6 @@
iterables are supported.
🪪 foreach.nonIterable
at src/wp-admin/includes/class-wp-debug-data.php:255
- 291 Cannot call method get_error_message() on array|WP_Error.
- 🪪 method.nonObject
- at src/wp-admin/includes/class-wp-debug-data.php:291
- 293 Cannot call method get_error_message() on array|WP_Error.
- 🪪 method.nonObject
- at src/wp-admin/includes/class-wp-debug-data.php:293
310 Method WP_Debug_Data::get_wp_dropins() return type has no value type
specified in iterable type array.
🪪 missingType.iterableValue
@@ -6102,9 +5819,6 @@
💡 Learn more: https://phpstan.org/blog/solving-phpstan-access-to-und
efined-property
at src/wp-admin/includes/class-wp-links-list-table.php:240
- 243 Cannot call method get_error_message() on array|WP_Error|WP_Term.
- 🪪 method.nonObject
- at src/wp-admin/includes/class-wp-links-list-table.php:243
245 Cannot access property $name on array|WP_Error|WP_Term.
🪪 property.nonObject
at src/wp-admin/includes/class-wp-links-list-table.php:245
@@ -8297,9 +8011,6 @@
https://phpstan.org/blog/solving-phpstan-no-value-type-specified-in-i
terable-type
at src/wp-admin/includes/class-wp-site-health.php:1318
- 1357 Cannot call method get_error_message() on array|WP_Error.
- 🪪 method.nonObject
- at src/wp-admin/includes/class-wp-site-health.php:1357
1388 Method WP_Site_Health::get_test_is_in_debug_mode() return type has no
value type specified in iterable type array.
🪪 missingType.iterableValue
@@ -8332,9 +8043,6 @@
https://phpstan.org/blog/solving-phpstan-no-value-type-specified-in-i
terable-type
at src/wp-admin/includes/class-wp-site-health.php:1657
- 1685 Cannot call method get_error_message() on bool|WP_Error.
- 🪪 method.nonObject
- at src/wp-admin/includes/class-wp-site-health.php:1685
1730 Method WP_Site_Health::get_test_background_updates() return type has
no value type specified in iterable type array.
🪪 missingType.iterableValue
@@ -8423,12 +8131,6 @@
error.
🪪 binaryOp.invalid
at src/wp-admin/includes/class-wp-site-health.php:2210
- 2241 Cannot call method get_error_code() on array|WP_Error.
- 🪪 method.nonObject
- at src/wp-admin/includes/class-wp-site-health.php:2241
- 2242 Cannot call method get_error_message() on array|WP_Error.
- 🪪 method.nonObject
- at src/wp-admin/includes/class-wp-site-health.php:2242
2294 Method WP_Site_Health::get_test_file_uploads() return type has no
value type specified in iterable type array.
🪪 missingType.iterableValue
@@ -8462,30 +8164,6 @@
https://phpstan.org/blog/solving-phpstan-no-value-type-specified-in-i
terable-type
at src/wp-admin/includes/class-wp-site-health.php:2446
- 2477 Cannot call method get_error_message() on array|WP_Error.
- 🪪 method.nonObject
- at src/wp-admin/includes/class-wp-site-health.php:2477
- 2478 Cannot call method get_error_code() on array|WP_Error.
- 🪪 method.nonObject
- at src/wp-admin/includes/class-wp-site-health.php:2478
- 2484 Cannot access offset 'status' on array|WP_Error.
- 🪪 offsetAccess.nonOffsetAccessible
- at src/wp-admin/includes/class-wp-site-health.php:2484
- 2486 Cannot access offset 'status' on array|WP_Error.
- 🪪 offsetAccess.nonOffsetAccessible
- at src/wp-admin/includes/class-wp-site-health.php:2486
- 2494 Cannot access offset 'advanced_cache_present' on array|WP_Error.
- 🪪 offsetAccess.nonOffsetAccessible
- at src/wp-admin/includes/class-wp-site-health.php:2494
- 2494 Cannot access offset 'headers' on array|WP_Error.
- 🪪 offsetAccess.nonOffsetAccessible
- at src/wp-admin/includes/class-wp-site-health.php:2494
- 2503 Cannot access offset 'response_time' on array|WP_Error.
- 🪪 offsetAccess.nonOffsetAccessible
- at src/wp-admin/includes/class-wp-site-health.php:2503
- 2542 Cannot access offset 'advanced_cache_present' on array|WP_Error.
- 🪪 offsetAccess.nonOffsetAccessible
- at src/wp-admin/includes/class-wp-site-health.php:2542
2560 Method WP_Site_Health::get_test_persistent_object_cache() return type
has no value type specified in iterable type array.
🪪 missingType.iterableValue
@@ -8529,12 +8207,6 @@
error.
🪪 binaryOp.invalid
at src/wp-admin/includes/class-wp-site-health.php:3287
- 3313 Cannot call method get_error_message() on array|WP_Error.
- 🪪 method.nonObject
- at src/wp-admin/includes/class-wp-site-health.php:3313
- 3314 Cannot call method get_error_code() on array|WP_Error.
- 🪪 method.nonObject
- at src/wp-admin/includes/class-wp-site-health.php:3314
3342 Method WP_Site_Health::maybe_create_scheduled_event() has no return
type specified.
🪪 missingType.return
@@ -8566,13 +8238,6 @@
https://phpstan.org/blog/solving-phpstan-no-value-type-specified-in-i
terable-type
at src/wp-admin/includes/class-wp-site-health.php:3691
- 3698 Cannot access offset 'response_timing' on array|WP_Error.
- 🪪 offsetAccess.nonOffsetAccessible
- at src/wp-admin/includes/class-wp-site-health.php:3698
- 3704 Cannot access offset 'page_caching_response_headers' on
- array|WP_Error.
- 🪪 offsetAccess.nonOffsetAccessible
- at src/wp-admin/includes/class-wp-site-health.php:3704
------ -----------------------------------------------------------------------
------ -----------------------------------------------------------------------
@@ -8820,9 +8485,6 @@
given.
🪪 argument.type
at src/wp-admin/includes/class-wp-theme-install-list-table.php:45
- 159 Cannot call method get_error_message() on array|object.
- 🪪 method.nonObject
- at src/wp-admin/includes/class-wp-theme-install-list-table.php:159
162 Cannot access property $themes on array|object.
🪪 property.nonObject
at src/wp-admin/includes/class-wp-theme-install-list-table.php:162
@@ -9070,16 +8732,6 @@
💡 Learn more: https://phpstan.org/blog/solving-phpstan-access-to-und
efined-property
at src/wp-admin/includes/class-wp-upgrader.php:258
- 258 Access to an undefined property object::$errors.
- 🪪 property.notFound
- 💡 Learn more: https://phpstan.org/blog/solving-phpstan-access-to-und
- efined-property
- at src/wp-admin/includes/class-wp-upgrader.php:258
- 259 Access to an undefined property object::$errors.
- 🪪 property.notFound
- 💡 Learn more: https://phpstan.org/blog/solving-phpstan-access-to-und
- efined-property
- at src/wp-admin/includes/class-wp-upgrader.php:259
265 Call to an undefined method object::abspath().
🪪 method.notFound
at src/wp-admin/includes/class-wp-upgrader.php:265
@@ -9102,22 +8754,6 @@
https://phpstan.org/blog/solving-phpstan-no-value-type-specified-in-i
terable-type
at src/wp-admin/includes/class-wp-upgrader.php:307
- 339 Cannot call method get_error_data() on string|WP_Error.
- 🪪 method.nonObject
- at src/wp-admin/includes/class-wp-upgrader.php:339
- 340 Cannot call method get_error_message() on string|WP_Error.
- 🪪 method.nonObject
- at src/wp-admin/includes/class-wp-upgrader.php:340
- 395 Cannot call method get_error_code() on WP_Error|true.
- 🪪 method.nonObject
- at src/wp-admin/includes/class-wp-upgrader.php:395
- 396 Cannot call method get_error_data() on WP_Error|true.
- 🪪 method.nonObject
- at src/wp-admin/includes/class-wp-upgrader.php:396
- 398 Method WP_Upgrader::unpack_package() should return string|WP_Error
- but returns WP_Error|true.
- 🪪 return.type
- at src/wp-admin/includes/class-wp-upgrader.php:398
413 Method WP_Upgrader::flatten_dirlist() has parameter $nested_files
with no value type specified in iterable type array.
🪪 missingType.iterableValue
@@ -9153,14 +8789,6 @@
int|string given.
🪪 argument.type
at src/wp-admin/includes/class-wp-upgrader.php:578
- 611 Method WP_Upgrader::install_package() should return array|WP_Error
- but returns bool|WP_Error.
- 🪪 return.type
- at src/wp-admin/includes/class-wp-upgrader.php:611
- 711 Method WP_Upgrader::install_package() should return array|WP_Error
- but returns WP_Error|true.
- 🪪 return.type
- at src/wp-admin/includes/class-wp-upgrader.php:711
774 Method WP_Upgrader::run() has parameter $options with no value type
specified in iterable type array.
🪪 missingType.iterableValue
@@ -9175,36 +8803,6 @@
https://phpstan.org/blog/solving-phpstan-no-value-type-specified-in-i
terable-type
at src/wp-admin/includes/class-wp-upgrader.php:774
- 837 Parameter #1 $errors of method WP_Upgrader_Skin::error() expects
- string|WP_Error, WP_Error|true given.
- 🪪 argument.type
- at src/wp-admin/includes/class-wp-upgrader.php:837
- 842 Method WP_Upgrader::run() should return array|WP_Error|false but
- returns WP_Error|true.
- 🪪 return.type
- at src/wp-admin/includes/class-wp-upgrader.php:842
- 855 Cannot call method get_error_data() on string|WP_Error.
- 🪪 method.nonObject
- at src/wp-admin/includes/class-wp-upgrader.php:855
- 858 Cannot call method get_error_code() on string|WP_Error.
- 🪪 method.nonObject
- at src/wp-admin/includes/class-wp-upgrader.php:858
- 860 Cannot call method get_error_message() on string|WP_Error.
- 🪪 method.nonObject
- at src/wp-admin/includes/class-wp-upgrader.php:860
- 865 Cannot call method get_error_code() on string|WP_Error.
- 🪪 method.nonObject
- at src/wp-admin/includes/class-wp-upgrader.php:865
- 866 Cannot call method get_error_data() on string|WP_Error.
- 🪪 method.nonObject
- at src/wp-admin/includes/class-wp-upgrader.php:866
- 872 Cannot call method get_error_data() on string|WP_Error.
- 🪪 method.nonObject
- at src/wp-admin/includes/class-wp-upgrader.php:872
- 894 Method WP_Upgrader::run() should return array|WP_Error|false but
- returns string|WP_Error.
- 🪪 return.type
- at src/wp-admin/includes/class-wp-upgrader.php:894
1007 Method WP_Upgrader::maintenance_mode() has no return type specified.
🪪 missingType.return
at src/wp-admin/includes/class-wp-upgrader.php:1007
@@ -9664,14 +9262,6 @@
array, array|string given.
🪪 argument.type
at src/wp-admin/includes/dashboard.php:1281
- 1290 Call to an undefined method
- SimplePie\SimplePie|WP_Error::get_title().
- 🪪 method.notFound
- at src/wp-admin/includes/dashboard.php:1290
- 1291 Call to an undefined method
- SimplePie\SimplePie|WP_Error::__destruct().
- 🪪 method.notFound
- at src/wp-admin/includes/dashboard.php:1291
1312 Function wp_dashboard_events_news() has no return type specified.
🪪 missingType.return
at src/wp-admin/includes/dashboard.php:1312
@@ -9920,10 +9510,6 @@
https://phpstan.org/blog/solving-phpstan-no-value-type-specified-in-i
terable-type
at src/wp-admin/includes/file.php:1124
- 1177 Function download_url() should return string|WP_Error but returns
- array|WP_Error.
- 🪪 return.type
- at src/wp-admin/includes/file.php:1177
1214 Parameter #1 $str of function strtolower expects string, array|string
given.
🪪 argument.type
@@ -9939,17 +9525,6 @@
string, array|string given.
🪪 argument.type
at src/wp-admin/includes/file.php:1259
- 1263 Function download_url() should return string|WP_Error but returns
- bool|WP_Error.
- 🪪 return.type
- at src/wp-admin/includes/file.php:1263
- 1339 Cannot call method add_data() on bool|WP_Error.
- 🪪 method.nonObject
- at src/wp-admin/includes/file.php:1339
- 1345 Function download_url() should return string|WP_Error but returns
- bool|WP_Error.
- 🪪 return.type
- at src/wp-admin/includes/file.php:1345
1382 Parameter #1 $data of function bin2hex expects string, string|false
given.
🪪 argument.type
@@ -10010,11 +9585,6 @@
💡 Learn more: https://phpstan.org/blog/solving-phpstan-access-to-und
efined-property
at src/wp-admin/includes/file.php:2210
- 2210 Access to an undefined property object::$errors.
- 🪪 property.notFound
- 💡 Learn more: https://phpstan.org/blog/solving-phpstan-access-to-und
- efined-property
- at src/wp-admin/includes/file.php:2210
2214 Call to an undefined method object::connect().
🪪 method.notFound
at src/wp-admin/includes/file.php:2214
@@ -10039,9 +9609,6 @@
https://phpstan.org/blog/solving-phpstan-no-value-type-specified-in-i
terable-type
at src/wp-admin/includes/file.php:2359
- 2503 Cannot call method get_error_message() on WP_Error|true.
- 🪪 method.nonObject
- at src/wp-admin/includes/file.php:2503
2668 Function wp_print_request_filesystem_credentials_modal() has no
return type specified.
🪪 missingType.return
@@ -10209,23 +9776,17 @@
array|string given.
🪪 argument.type
at src/wp-admin/includes/image-edit.php:781
- 783 Parameter #1 $image of function image_edit_apply_changes expects
- WP_Image_Editor, WP_Error|WP_Image_Editor given.
+ 795 Parameter #1 $max_w of method WP_Image_Editor::resize() expects
+ int|null, float|int<1, max> given.
🪪 argument.type
- at src/wp-admin/includes/image-edit.php:783
- 787 Call to an undefined method WP_Error|WP_Image_Editor::get_size().
- 🪪 method.notFound
- at src/wp-admin/includes/image-edit.php:787
- 795 Call to an undefined method WP_Error|WP_Image_Editor::resize().
- 🪪 method.notFound
at src/wp-admin/includes/image-edit.php:795
+ 795 Parameter #2 $max_h of method WP_Image_Editor::resize() expects
+ int|null, float|int<1, max> given.
+ 🪪 argument.type
+ at src/wp-admin/includes/image-edit.php:795
799 Cannot access property $post_mime_type on array|WP_Post.
🪪 property.nonObject
at src/wp-admin/includes/image-edit.php:799
- 799 Parameter #1 $image of function wp_stream_image expects
- WP_Image_Editor, WP_Error|WP_Image_Editor given.
- 🪪 argument.type
- at src/wp-admin/includes/image-edit.php:799
823 Parameter #1 $path of function pathinfo expects string, string|false
given.
🪪 argument.type
@@ -10249,20 +9810,10 @@
string|false given.
🪪 argument.type
at src/wp-admin/includes/image-edit.php:923
- 939 Call to an undefined method WP_Error|WP_Image_Editor::get_size().
- 🪪 method.notFound
- at src/wp-admin/includes/image-edit.php:939
- 953 Call to an undefined method WP_Error|WP_Image_Editor::resize().
- 🪪 method.notFound
- at src/wp-admin/includes/image-edit.php:953
964 Parameter #1 $json of function json_decode expects string,
array|string given.
🪪 argument.type
at src/wp-admin/includes/image-edit.php:964
- 966 Parameter #1 $image of function image_edit_apply_changes expects
- WP_Image_Editor, WP_Error|WP_Image_Editor given.
- 🪪 argument.type
- at src/wp-admin/includes/image-edit.php:966
974 Cannot access property $ID on array|WP_Post.
🪪 property.nonObject
at src/wp-admin/includes/image-edit.php:974
@@ -10289,10 +9840,6 @@
string|false given.
🪪 argument.type
at src/wp-admin/includes/image-edit.php:1018
- 1018 Parameter #2 $image of function wp_save_image_file expects
- WP_Image_Editor, WP_Error|WP_Image_Editor given.
- 🪪 argument.type
- at src/wp-admin/includes/image-edit.php:1018
1047 Parameter #2 $file of function update_attached_file expects string,
string|false given.
🪪 argument.type
@@ -10301,15 +9848,9 @@
string, string|false given.
🪪 argument.type
at src/wp-admin/includes/image-edit.php:1049
- 1051 Call to an undefined method WP_Error|WP_Image_Editor::get_size().
- 🪪 method.notFound
- at src/wp-admin/includes/image-edit.php:1051
1054 Cannot access offset 'filesize' on non-empty-array|WP_Error|true.
🪪 offsetAccess.nonOffsetAccessible
at src/wp-admin/includes/image-edit.php:1054
- 1127 Call to an undefined method WP_Error|WP_Image_Editor::multi_resize().
- 🪪 method.notFound
- at src/wp-admin/includes/image-edit.php:1127
1141 Cannot access offset 0 on array|false.
🪪 offsetAccess.nonOffsetAccessible
at src/wp-admin/includes/image-edit.php:1141
@@ -10342,17 +9883,6 @@
string|false given.
🪪 argument.type
at src/wp-admin/includes/image.php:41
- 43 Function wp_crop_image() should return string|WP_Error but returns
- WP_Error|WP_Image_Editor.
- 🪪 return.type
- at src/wp-admin/includes/image.php:43
- 46 Call to an undefined method WP_Error|WP_Image_Editor::crop().
- 🪪 method.notFound
- at src/wp-admin/includes/image.php:46
- 48 Function wp_crop_image() should return string|WP_Error but returns
- WP_Error|true.
- 🪪 return.type
- at src/wp-admin/includes/image.php:48
52 Parameter #1 $path of function wp_basename expects string,
int|string|false given.
🪪 argument.type
@@ -10365,16 +9895,6 @@
tring, int|string|false given.
🪪 argument.type
at src/wp-admin/includes/image.php:52
- 63 Call to an undefined method WP_Error|WP_Image_Editor::save().
- 🪪 method.notFound
- at src/wp-admin/includes/image.php:63
- 65 Function wp_crop_image() should return string|WP_Error but returns
- array|WP_Error.
- 🪪 return.type
- at src/wp-admin/includes/image.php:65
- 68 Cannot access offset 'path' on array|WP_Error.
- 🪪 offsetAccess.nonOffsetAccessible
- at src/wp-admin/includes/image.php:68
87 Function wp_get_missing_image_subsizes() return type has no value
type specified in iterable type array.
🪪 missingType.iterableValue
@@ -10425,55 +9945,12 @@
https://phpstan.org/blog/solving-phpstan-no-value-type-specified-in-i
terable-type
at src/wp-admin/includes/image.php:240
- 320 Call to an undefined method WP_Error|WP_Image_Editor::resize().
- 🪪 method.notFound
- at src/wp-admin/includes/image.php:320
329 Variable $resized might not be defined.
🪪 variable.undefined
at src/wp-admin/includes/image.php:329
- 330 Call to an undefined method
- WP_Error|WP_Image_Editor::maybe_exif_rotate().
- 🪪 method.notFound
- at src/wp-admin/includes/image.php:330
334 Variable $resized might not be defined.
🪪 variable.undefined
at src/wp-admin/includes/image.php:334
- 340 Call to an undefined method
- WP_Error|WP_Image_Editor::generate_filename().
- 🪪 method.notFound
- at src/wp-admin/includes/image.php:340
- 340 Call to an undefined method WP_Error|WP_Image_Editor::save().
- 🪪 method.notFound
- at src/wp-admin/includes/image.php:340
- 343 Call to an undefined method
- WP_Error|WP_Image_Editor::generate_filename().
- 🪪 method.notFound
- at src/wp-admin/includes/image.php:343
- 343 Call to an undefined method WP_Error|WP_Image_Editor::save().
- 🪪 method.notFound
- at src/wp-admin/includes/image.php:343
- 345 Call to an undefined method WP_Error|WP_Image_Editor::save().
- 🪪 method.notFound
- at src/wp-admin/includes/image.php:345
- 349 Parameter #1 $saved_data of function _wp_image_meta_replace_original
- expects array, array|WP_Error given.
- 🪪 argument.type
- at src/wp-admin/includes/image.php:349
- 371 Call to an undefined method
- WP_Error|WP_Image_Editor::maybe_exif_rotate().
- 🪪 method.notFound
- at src/wp-admin/includes/image.php:371
- 375 Call to an undefined method
- WP_Error|WP_Image_Editor::generate_filename().
- 🪪 method.notFound
- at src/wp-admin/includes/image.php:375
- 375 Call to an undefined method WP_Error|WP_Image_Editor::save().
- 🪪 method.notFound
- at src/wp-admin/includes/image.php:375
- 378 Parameter #1 $saved_data of function _wp_image_meta_replace_original
- expects array, array|WP_Error given.
- 🪪 argument.type
- at src/wp-admin/includes/image.php:378
430 Function _wp_make_subsizes() has parameter $image_meta with no value
type specified in iterable type array.
🪪 missingType.iterableValue
@@ -10495,13 +9972,6 @@
https://phpstan.org/blog/solving-phpstan-no-value-type-specified-in-i
terable-type
at src/wp-admin/includes/image.php:430
- 480 Call to an undefined method
- WP_Error|WP_Image_Editor::maybe_exif_rotate().
- 🪪 method.notFound
- at src/wp-admin/includes/image.php:480
- 501 Call to an undefined method WP_Error|WP_Image_Editor::multi_resize().
- 🪪 method.notFound
- at src/wp-admin/includes/image.php:501
522 Function wp_copy_parent_attachment_properties() return type has no
value type specified in iterable type array.
🪪 missingType.iterableValue
@@ -10586,15 +10056,6 @@
expects int, int|WP_Error given.
🪪 argument.type
at src/wp-admin/includes/image.php:665
- 709 Call to an undefined method WP_Error|WP_Image_Editor::save().
- 🪪 method.notFound
- at src/wp-admin/includes/image.php:709
- 714 Cannot access offset 'path' on array|WP_Error.
- 🪪 offsetAccess.nonOffsetAccessible
- at src/wp-admin/includes/image.php:714
- 715 Cannot access offset 'path' on array|WP_Error.
- 🪪 offsetAccess.nonOffsetAccessible
- at src/wp-admin/includes/image.php:715
825 Function wp_read_image_metadata() return type has no value type
specified in iterable type array.
🪪 missingType.iterableValue
@@ -10671,10 +10132,6 @@
https://phpstan.org/blog/solving-phpstan-no-value-type-specified-in-i
terable-type
at src/wp-admin/includes/import.php:37
- 57 Function register_importer() should return void|WP_Error but returns
- callable.
- 🪪 return.type
- at src/wp-admin/includes/import.php:57
71 Function wp_import_cleanup() has no return type specified.
🪪 missingType.return
at src/wp-admin/includes/import.php:71
@@ -10793,18 +10250,6 @@
string given.
🪪 argument.type
at src/wp-admin/includes/media.php:379
- 430 Binary operation "." between 'X-WP-Upload…' and int|WP_Error results
- in an error.
- 🪪 binaryOp.invalid
- at src/wp-admin/includes/media.php:430
- 437 Parameter #1 $attachment_id of function
- wp_generate_attachment_metadata expects int, int|WP_Error given.
- 🪪 argument.type
- at src/wp-admin/includes/media.php:437
- 437 Parameter #1 $attachment_id of function wp_update_attachment_metadata
- expects int, int|WP_Error given.
- 🪪 argument.type
- at src/wp-admin/includes/media.php:437
455 Function media_handle_sideload() has parameter $post_data with no
value type specified in iterable type array.
🪪 missingType.iterableValue
@@ -10818,14 +10263,6 @@
463 Cannot access property $post_date on array|WP_Post.
🪪 property.nonObject
at src/wp-admin/includes/media.php:463
- 517 Parameter #1 $attachment_id of function
- wp_generate_attachment_metadata expects int, int|WP_Error given.
- 🪪 argument.type
- at src/wp-admin/includes/media.php:517
- 517 Parameter #1 $attachment_id of function wp_update_attachment_metadata
- expects int, int|WP_Error given.
- 🪪 argument.type
- at src/wp-admin/includes/media.php:517
535 Function wp_iframe() has no return type specified.
🪪 missingType.return
at src/wp-admin/includes/media.php:535
@@ -10898,22 +10335,6 @@
959 Variable $html might not be defined.
🪪 variable.undefined
at src/wp-admin/includes/media.php:959
- 1060 Parameter #1 $file_array of function media_handle_sideload expects
- array<string>, array<string, string|WP_Error> given.
- 🪪 argument.type
- at src/wp-admin/includes/media.php:1060
- 1064 Parameter #1 $filename of function unlink expects string,
- string|WP_Error given.
- 🪪 argument.type
- at src/wp-admin/includes/media.php:1064
- 1069 Parameter #1 $post_id of function add_post_meta expects int,
- int|WP_Error given.
- 🪪 argument.type
- at src/wp-admin/includes/media.php:1069
- 1076 Parameter #1 $attachment_id of function wp_get_attachment_url expects
- int, int|WP_Error given.
- 🪪 argument.type
- at src/wp-admin/includes/media.php:1076
1221 Cannot access offset 3 on array|false.
🪪 offsetAccess.nonOffsetAccessible
at src/wp-admin/includes/media.php:1221
@@ -11208,14 +10629,6 @@
https://phpstan.org/blog/solving-phpstan-no-value-type-specified-in-i
terable-type
at src/wp-admin/includes/media.php:2333
- 2381 Parameter #1 $post_id of function get_media_items expects int, int<mi
- n, -1>|int<1, max>|WP_Error given.
- 🪪 argument.type
- at src/wp-admin/includes/media.php:2381
- 2383 Cannot call method get_error_message() on int<min, -1>|int<1, max>|WP
- _Error.
- 🪪 method.nonObject
- at src/wp-admin/includes/media.php:2383
2407 Function media_upload_type_url_form() has no return type specified.
🪪 missingType.return
at src/wp-admin/includes/media.php:2407
@@ -11680,9 +11093,6 @@
specified.
🪪 missingType.return
at src/wp-admin/includes/meta-boxes.php:1524
- 1543 Cannot access offset 'count' on array|WP_Error.
- 🪪 offsetAccess.nonOffsetAccessible
- at src/wp-admin/includes/meta-boxes.php:1543
1573 Parameter #1 $taxonomy of function get_taxonomy expects string,
string|WP_Taxonomy given.
🪪 argument.type
@@ -11847,25 +11257,6 @@
613 Function show_message() has no return type specified.
🪪 missingType.return
at src/wp-admin/includes/misc.php:613
- 615 Cannot call method get_error_data() on string|WP_Error.
- 🪪 method.nonObject
- at src/wp-admin/includes/misc.php:615
- 615 Cannot call method get_error_data() on string|WP_Error.
- 🪪 method.nonObject
- at src/wp-admin/includes/misc.php:615
- 616 Cannot call method get_error_data() on string|WP_Error.
- 🪪 method.nonObject
- at src/wp-admin/includes/misc.php:616
- 616 Cannot call method get_error_message() on string|WP_Error.
- 🪪 method.nonObject
- at src/wp-admin/includes/misc.php:616
- 618 Cannot call method get_error_message() on string|WP_Error.
- 🪪 method.nonObject
- at src/wp-admin/includes/misc.php:618
- 622 Part $message (string|WP_Error) of encapsed string cannot be cast to
- string.
- 🪪 encapsedStringPart.nonString
- at src/wp-admin/includes/misc.php:622
697 Function set_screen_options() has no return type specified.
🪪 missingType.return
at src/wp-admin/includes/misc.php:697
@@ -12390,6 +11781,20 @@
passed callable needs to be same or wider than parameter type
array|WP_Post|null of accepting callable.
at src/wp-admin/includes/nav-menu.php:130
+ 162 Parameter #1 $callback of function array_map expects
+ (callable(int|string|WP_Term): mixed)|null, 'wp_setup_nav_menu…'
+ given.
+ 🪪 argument.type
+ 💡 Type #1 from the union: Type object of parameter #1 $menu_item of
+ passed callable needs to be same or wider than parameter type
+ int|string|WP_Term of accepting callable.
+ at src/wp-admin/includes/nav-menu.php:162
+ 169 Cannot access property $term_id on int|string|WP_Term.
+ 🪪 property.nonObject
+ at src/wp-admin/includes/nav-menu.php:169
+ 170 Cannot access property $name on int|string|WP_Term.
+ 🪪 property.nonObject
+ at src/wp-admin/includes/nav-menu.php:170
186 Function wp_nav_menu_setup() has no return type specified.
🪪 missingType.return
at src/wp-admin/includes/nav-menu.php:186
@@ -12447,9 +11852,6 @@
passed callable needs to be same or wider than parameter type
int|WP_Post of accepting callable.
at src/wp-admin/includes/nav-menu.php:729
- 735 Cannot call method get_error_message() on array<int|WP_Post>.
- 🪪 method.nonObject
- at src/wp-admin/includes/nav-menu.php:735
748 Parameter #1 (non-empty-array<string>|non-falsy-string) of echo canno
t be converted to string.
🪪 echo.nonString
@@ -12506,7 +11908,7 @@
int|string|WP_Term of accepting callable.
at src/wp-admin/includes/nav-menu.php:1038
1038 Parameter #2 $array of function array_map expects array, array<int|st
- ring|WP_Term>|string|WP_Error given.
+ ring|WP_Term>|string given.
🪪 argument.type
at src/wp-admin/includes/nav-menu.php:1038
1047 Parameter #1 (non-empty-array<string>|non-falsy-string) of echo canno
@@ -12525,13 +11927,9 @@
int|string|WP_Term of accepting callable.
at src/wp-admin/includes/nav-menu.php:1105
1105 Parameter #2 $array of function array_map expects array, array<int|st
- ring|WP_Term>|string|WP_Error given.
+ ring|WP_Term>|string given.
🪪 argument.type
at src/wp-admin/includes/nav-menu.php:1105
- 1111 Cannot call method get_error_message() on array<int|string|WP_Term>|s
- tring|WP_Error.
- 🪪 method.nonObject
- at src/wp-admin/includes/nav-menu.php:1111
1148 Function wp_save_nav_menu_items() has parameter $menu_data with no
value type specified in iterable type array.
🪪 missingType.iterableValue
@@ -12570,10 +11968,6 @@
1266 Cannot access property $term_id on WP_Term|false.
🪪 property.nonObject
at src/wp-admin/includes/nav-menu.php:1266
- 1339 Function wp_get_nav_menu_to_edit() should return string|WP_Error|null
- but returns WP_Term|false.
- 🪪 return.type
- at src/wp-admin/includes/nav-menu.php:1339
1372 Function _wp_delete_orphaned_draft_menu_items() has no return type
specified.
🪪 missingType.return
@@ -12586,12 +11980,6 @@
int, int|string given.
🪪 argument.type
at src/wp-admin/includes/nav-menu.php:1454
- 1461 Cannot call method get_error_message() on int|WP_Error.
- 🪪 method.nonObject
- at src/wp-admin/includes/nav-menu.php:1461
- 1468 Possibly invalid array key type int|WP_Error.
- 🪪 offsetAccess.invalidOffset
- at src/wp-admin/includes/nav-menu.php:1468
1502 Parameter #2 $arr2 of function array_intersect expects an array of
values castable to string, array<WP_Term> given.
🪪 argument.type
@@ -12612,12 +12000,6 @@
113 Function network_step1() has no return type specified.
🪪 missingType.return
at src/wp-admin/includes/network.php:113
- 162 Cannot call method get_error_messages() on WP_Error|false.
- 🪪 method.nonObject
- at src/wp-admin/includes/network.php:162
- 172 Cannot call method get_error_codes() on WP_Error|false.
- 🪪 method.nonObject
- at src/wp-admin/includes/network.php:172
412 Function network_step2() has no return type specified.
🪪 missingType.return
at src/wp-admin/includes/network.php:412
@@ -12625,9 +12007,6 @@
tring, string|false given.
🪪 argument.type
at src/wp-admin/includes/network.php:418
- 433 Cannot call method get_error_message() on WP_Error|false.
- 🪪 method.nonObject
- at src/wp-admin/includes/network.php:433
600 Parameter #1 $str of function ltrim expects string, string|false|null
given.
🪪 argument.type
@@ -12687,9 +12066,6 @@
💡 Learn more: https://phpstan.org/blog/solving-phpstan-access-to-und
efined-property
at src/wp-admin/includes/plugin-install.php:116
- 194 Cannot call method get_error_message() on array|WP_Error.
- 🪪 method.nonObject
- at src/wp-admin/includes/plugin-install.php:194
241 Function install_popular_tags() has parameter $args with no value
type specified in iterable type array.
🪪 missingType.iterableValue
@@ -12704,10 +12080,6 @@
https://phpstan.org/blog/solving-phpstan-no-value-type-specified-in-i
terable-type
at src/wp-admin/includes/plugin-install.php:241
- 251 Function install_popular_tags() should return array|WP_Error but
- returns array|object.
- 🪪 return.type
- at src/wp-admin/includes/plugin-install.php:251
256 Function install_popular_tags() should return array|WP_Error but
returns array|object.
🪪 return.type
@@ -12715,9 +12087,6 @@
264 Function install_dashboard() has no return type specified.
🪪 missingType.return
at src/wp-admin/includes/plugin-install.php:264
- 277 Cannot call method get_error_message() on array|WP_Error.
- 🪪 method.nonObject
- at src/wp-admin/includes/plugin-install.php:277
292 Parameter #1 (array<string>|string) of echo cannot be converted to st
ring.
🪪 echo.nonString
@@ -12819,10 +12188,6 @@
519 Function install_plugin_information() has no return type specified.
🪪 missingType.return
at src/wp-admin/includes/plugin-install.php:519
- 534 Parameter #1 $message of function wp_die expects string|WP_Error,
- array|object given.
- 🪪 argument.type
- at src/wp-admin/includes/plugin-install.php:534
581 Cannot access property $sections on array|object.
🪪 property.nonObject
at src/wp-admin/includes/plugin-install.php:581
@@ -13029,14 +12394,6 @@
https://phpstan.org/blog/solving-phpstan-no-value-type-specified-in-i
terable-type
at src/wp-admin/includes/plugin.php:500
- 654 Function activate_plugin() should return WP_Error|null but returns
- int|WP_Error.
- 🪪 return.type
- at src/wp-admin/includes/plugin.php:654
- 659 Function activate_plugin() should return WP_Error|null but returns
- WP_Error|true.
- 🪪 return.type
- at src/wp-admin/includes/plugin.php:659
758 Function deactivate_plugins() has no return type specified.
🪪 missingType.return
at src/wp-admin/includes/plugin.php:758
@@ -13052,16 +12409,6 @@
💡 Learn more: https://phpstan.org/blog/solving-phpstan-access-to-und
efined-property
at src/wp-admin/includes/plugin.php:951
- 951 Access to an undefined property object::$errors.
- 🪪 property.notFound
- 💡 Learn more: https://phpstan.org/blog/solving-phpstan-access-to-und
- efined-property
- at src/wp-admin/includes/plugin.php:951
- 952 Access to an undefined property object::$errors.
- 🪪 property.notFound
- 💡 Learn more: https://phpstan.org/blog/solving-phpstan-access-to-und
- efined-property
- at src/wp-admin/includes/plugin.php:952
956 Call to an undefined method object::wp_plugins_dir().
🪪 method.notFound
at src/wp-admin/includes/plugin.php:956
@@ -13084,10 +12431,6 @@
(callable(string): mixed)|null, array{object, 'delete'} given.
🪪 argument.type
at src/wp-admin/includes/plugin.php:1026
- 1096 Function validate_active_plugins() should return array<WP_Error> but
- returns array<int|WP_Error>.
- 🪪 return.type
- at src/wp-admin/includes/plugin.php:1096
1391 Default value of the parameter #5 $callback ('') of function
add_menu_page() is incompatible with type callable(): mixed.
🪪 parameter.defaultValue
@@ -13280,10 +12623,6 @@
https://phpstan.org/blog/solving-phpstan-no-value-type-specified-in-i
terable-type
at src/wp-admin/includes/post.php:226
- 236 Parameter #1 $arr1 of function array_diff_key expects array,
- array|WP_Error given.
- 🪪 argument.type
- at src/wp-admin/includes/post.php:236
255 Function edit_post() has parameter $post_data with no value type
specified in iterable type array.
🪪 missingType.iterableValue
@@ -13305,9 +12644,6 @@
WP_Post, array|WP_Post|null given.
🪪 argument.type
at src/wp-admin/includes/post.php:300
- 322 Cannot call method get_error_message() on array|WP_Error.
- 🪪 method.nonObject
- at src/wp-admin/includes/post.php:322
327 Cannot access offset 'post_format' on array|WP_Error.
🪪 offsetAccess.nonOffsetAccessible
at src/wp-admin/includes/post.php:327
@@ -13475,9 +12811,6 @@
given.
🪪 argument.type
at src/wp-admin/includes/post.php:757
- 772 Cannot call method get_error_message() on int|WP_Error.
- 🪪 method.nonObject
- at src/wp-admin/includes/post.php:772
775 Parameter #1 $post of function get_post expects int|WP_Post|null,
int|WP_Error given.
🪪 argument.type
@@ -13506,37 +12839,10 @@
array|WP_Post|null.
🪪 return.type
at src/wp-admin/includes/post.php:839
- 954 Function wp_write_post() should return int|WP_Error but returns
- array|WP_Error.
- 🪪 return.type
- at src/wp-admin/includes/post.php:954
959 Parameter #1 $postarr of function wp_insert_post expects array,
array|WP_Error given.
🪪 argument.type
at src/wp-admin/includes/post.php:959
- 968 Parameter #1 $post_id of function add_meta expects int, int<min, -1>|
- int<1, max>|WP_Error given.
- 🪪 argument.type
- at src/wp-admin/includes/post.php:968
- 970 Parameter #1 $post_id of function add_post_meta expects int, int<min,
- -1>|int<1, max>|WP_Error given.
- 🪪 argument.type
- at src/wp-admin/includes/post.php:970
- 973 Parameter #1 $post of function _fix_attachment_links expects
- int|WP_Post, int<min, -1>|int<1, max>|WP_Error given.
- 🪪 argument.type
- at src/wp-admin/includes/post.php:973
- 975 Parameter #1 $post of function wp_set_post_lock expects int|WP_Post,
- int<min, -1>|int<1, max>|WP_Error given.
- 🪪 argument.type
- at src/wp-admin/includes/post.php:975
- 990 Cannot call method get_error_message() on int|WP_Error.
- 🪪 method.nonObject
- at src/wp-admin/includes/post.php:990
- 992 Function write_post() should return int|void but returns
- int|WP_Error.
- 🪪 return.type
- at src/wp-admin/includes/post.php:992
1031 Parameter #1 $meta_key of function is_protected_meta expects string,
array|string given.
🪪 argument.type
@@ -13854,10 +13160,6 @@
https://phpstan.org/blog/solving-phpstan-no-value-type-specified-in-i
terable-type
at src/wp-admin/includes/post.php:1957
- 1967 Function wp_create_post_autosave() should return int|WP_Error but
- returns array|WP_Error.
- 🪪 return.type
- at src/wp-admin/includes/post.php:1967
1976 Parameter #1 $post of function _wp_post_revision_data expects
array|WP_Post, array|WP_Error given.
🪪 argument.type
@@ -13870,10 +13172,6 @@
array|int|WP_Post|null, array|string given.
🪪 argument.type
at src/wp-admin/includes/post.php:2013
- 2018 Parameter #1 $post of function get_post expects int|WP_Post|null, int
- <min, -1>|int<1, max>|WP_Error given.
- 🪪 argument.type
- at src/wp-admin/includes/post.php:2018
2034 Function wp_autosave_post_revisioned_meta_fields() has no return type
specified.
🪪 missingType.return
@@ -13907,9 +13205,6 @@
2107 Cannot access property $ID on array|WP_Post.
🪪 property.nonObject
at src/wp-admin/includes/post.php:2107
- 2111 Cannot call method get_error_message() on int|WP_Error.
- 🪪 method.nonObject
- at src/wp-admin/includes/post.php:2111
2117 Cannot access property $ID on array|WP_Post.
🪪 property.nonObject
at src/wp-admin/includes/post.php:2117
@@ -14028,9 +13323,6 @@
specified.
🪪 missingType.return
at src/wp-admin/includes/privacy-tools.php:73
- 84 Cannot call method get_error_message() on WP_Error|true.
- 🪪 method.nonObject
- at src/wp-admin/includes/privacy-tools.php:84
96 Parameter #1 $key of function sanitize_key expects string,
array|string given.
🪪 argument.type
@@ -14043,9 +13335,6 @@
array|string given.
🪪 argument.type
at src/wp-admin/includes/privacy-tools.php:112
- 153 Cannot call method get_error_message() on int|WP_Error.
- 🪪 method.nonObject
- at src/wp-admin/includes/privacy-tools.php:153
169 Parameter #1 $request_id of function wp_send_user_request expects
int, int|WP_Error given.
🪪 argument.type
@@ -14239,9 +13528,6 @@
https://phpstan.org/blog/solving-phpstan-no-value-type-specified-in-i
terable-type
at src/wp-admin/includes/privacy-tools.php:769
- 874 Cannot call method get_error_message() on WP_Error|true.
- 🪪 method.nonObject
- at src/wp-admin/includes/privacy-tools.php:874
915 Function wp_privacy_process_personal_data_erasure_page() has
parameter $response with no value type specified in iterable type
array.
@@ -14516,9 +13802,6 @@
1166 Parameter #1 $str of function md5 expects string, int<1, max> given.
🪪 argument.type
at src/wp-admin/includes/schema.php:1166
- 1175 Cannot call method get_error_message() on array|WP_Error.
- 🪪 method.nonObject
- at src/wp-admin/includes/schema.php:1175
1234 Function populate_network_meta() has no return type specified.
🪪 missingType.return
at src/wp-admin/includes/schema.php:1234
@@ -14581,13 +13864,6 @@
https://phpstan.org/blog/solving-phpstan-no-value-type-specified-in-i
terable-type
at src/wp-admin/includes/taxonomy.php:121
- 169 Function wp_insert_category() should return int|WP_Error but returns
- array|WP_Error.
- 🪪 return.type
- at src/wp-admin/includes/taxonomy.php:169
- 174 Cannot access offset 'term_id' on array|WP_Error.
- 🪪 offsetAccess.nonOffsetAccessible
- at src/wp-admin/includes/taxonomy.php:174
188 Function wp_update_category() has parameter $catarr with no value
type specified in iterable type array.
🪪 missingType.iterableValue
@@ -14622,13 +13898,8 @@
array<int|string|WP_Term>|string|WP_Error given.
🪪 argument.type
at src/wp-admin/includes/taxonomy.php:269
- 276 Function get_terms_to_edit() should return string|WP_Error|false but
- returns non-empty-array<int|string|WP_Term>|non-falsy-string|WP_Error
- |true.
- 🪪 return.type
- at src/wp-admin/includes/taxonomy.php:276
- 279 Argument of an invalid type array<int|string|WP_Term>|string|WP_Error
- |true supplied for foreach, only iterables are supported.
+ 279 Argument of an invalid type array<int|string|WP_Term>|string|true sup
+ plied for foreach, only iterables are supported.
🪪 foreach.nonIterable
at src/wp-admin/includes/taxonomy.php:279
280 Cannot access property $name on int|string|WP_Term.
@@ -15029,10 +14300,6 @@
255 Function install_theme_information() has no return type specified.
🪪 missingType.return
at src/wp-admin/includes/theme-install.php:255
- 261 Parameter #1 $message of function wp_die expects string|WP_Error,
- array|object given.
- 🪪 argument.type
- at src/wp-admin/includes/theme-install.php:261
------ -----------------------------------------------------------------------
------ -----------------------------------------------------------------------
@@ -15047,16 +14314,6 @@
💡 Learn more: https://phpstan.org/blog/solving-phpstan-access-to-und
efined-property
at src/wp-admin/includes/theme.php:65
- 65 Access to an undefined property object::$errors.
- 🪪 property.notFound
- 💡 Learn more: https://phpstan.org/blog/solving-phpstan-access-to-und
- efined-property
- at src/wp-admin/includes/theme.php:65
- 66 Access to an undefined property object::$errors.
- 🪪 property.notFound
- 💡 Learn more: https://phpstan.org/blog/solving-phpstan-access-to-und
- efined-property
- at src/wp-admin/includes/theme.php:66
70 Call to an undefined method object::wp_themes_dir().
🪪 method.notFound
at src/wp-admin/includes/theme.php:70
@@ -15146,9 +14403,6 @@
💡 Learn more: https://phpstan.org/blog/solving-phpstan-access-to-und
efined-property
at src/wp-admin/includes/theme.php:507
- 585 Cannot call method get_error_message() on array|WP_Error.
- 🪪 method.nonObject
- at src/wp-admin/includes/theme.php:585
647 Function wp_prepare_themes_for_js() return type has no value type
specified in iterable type array.
🪪 missingType.iterableValue
@@ -15207,9 +14461,6 @@
70 Cannot access offset 'slug' on array|object|null.
🪪 offsetAccess.nonOffsetAccessible
at src/wp-admin/includes/translation-install.php:70
- 97 Cannot call method get_error_message() on array|WP_Error.
- 🪪 method.nonObject
- at src/wp-admin/includes/translation-install.php:97
167 Function wp_get_available_translations() return type has no value
type specified in iterable type array.
🪪 missingType.iterableValue
@@ -15217,9 +14468,6 @@
https://phpstan.org/blog/solving-phpstan-no-value-type-specified-in-i
terable-type
at src/wp-admin/includes/translation-install.php:167
- 177 Cannot access offset 'translations' on array|WP_Error.
- 🪪 offsetAccess.nonOffsetAccessible
- at src/wp-admin/includes/translation-install.php:177
203 Function wp_install_language_form() has no return type specified.
🪪 missingType.return
at src/wp-admin/includes/translation-install.php:203
@@ -15287,15 +14535,6 @@
string given.
🪪 argument.type
at src/wp-admin/includes/update-core.php:1300
- 1323 Cannot call method get_error_code() on WP_Error|true.
- 🪪 method.nonObject
- at src/wp-admin/includes/update-core.php:1323
- 1324 Cannot call method get_error_message() on WP_Error|true.
- 🪪 method.nonObject
- at src/wp-admin/includes/update-core.php:1324
- 1325 Cannot call method get_error_data() on WP_Error|true.
- 🪪 method.nonObject
- at src/wp-admin/includes/update-core.php:1325
1366 Variable $working_dir_local might not be defined.
🪪 variable.undefined
at src/wp-admin/includes/update-core.php:1366
@@ -15305,40 +14544,6 @@
1391 Variable $working_dir_local might not be defined.
🪪 variable.undefined
at src/wp-admin/includes/update-core.php:1391
- 1408 Cannot call method get_error_code() on WP_Error|true.
- 🪪 method.nonObject
- at src/wp-admin/includes/update-core.php:1408
- 1409 Cannot call method get_error_message() on WP_Error|true.
- 🪪 method.nonObject
- at src/wp-admin/includes/update-core.php:1409
- 1410 Cannot call method get_error_data() on WP_Error|true.
- 🪪 method.nonObject
- at src/wp-admin/includes/update-core.php:1410
- 1446 Cannot call method get_error_code() on WP_Error|true.
- 🪪 method.nonObject
- at src/wp-admin/includes/update-core.php:1446
- 1447 Cannot call method get_error_message() on WP_Error|true.
- 🪪 method.nonObject
- at src/wp-admin/includes/update-core.php:1447
- 1448 Cannot call method get_error_data() on WP_Error|true.
- 🪪 method.nonObject
- at src/wp-admin/includes/update-core.php:1448
- 1528 Cannot call method add() on WP_Error|true.
- 🪪 method.nonObject
- at src/wp-admin/includes/update-core.php:1528
- 1529 Cannot call method get_error_code() on WP_Error|true.
- 🪪 method.nonObject
- at src/wp-admin/includes/update-core.php:1529
- 1530 Cannot call method get_error_message() on WP_Error|true.
- 🪪 method.nonObject
- at src/wp-admin/includes/update-core.php:1530
- 1531 Cannot call method get_error_data() on WP_Error|true.
- 🪪 method.nonObject
- at src/wp-admin/includes/update-core.php:1531
- 1543 Function update_core() should return string|WP_Error but returns
- WP_Error|true.
- 🪪 return.type
- at src/wp-admin/includes/update-core.php:1543
1598 Variable $wp_version might not be defined.
🪪 variable.undefined
at src/wp-admin/includes/update-core.php:1598
@@ -15961,18 +15166,6 @@
https://phpstan.org/blog/solving-phpstan-no-value-type-specified-in-i
terable-type
at src/wp-admin/includes/user.php:654
- 661 Cannot call method get_error_code() on WP_Error|true.
- 🪪 method.nonObject
- at src/wp-admin/includes/user.php:661
- 662 Cannot call method get_error_message() on WP_Error|true.
- 🪪 method.nonObject
- at src/wp-admin/includes/user.php:662
- 671 Cannot call method get_error_code() on WP_Error|true.
- 🪪 method.nonObject
- at src/wp-admin/includes/user.php:671
- 672 Cannot call method get_error_message() on WP_Error|true.
- 🪪 method.nonObject
- at src/wp-admin/includes/user.php:672
------ -----------------------------------------------------------------------
------ -----------------------------------------------------------------------
@@ -16174,15 +15367,6 @@
at src/wp-admin/maint/repair.php:143
------ --------------------------------------
- ------ -------------------------------------------------------------------
- Line wp-admin/media-new.php
- ------ -------------------------------------------------------------------
- 35 Parameter #1 $message of function wp_die expects string|WP_Error,
- int|WP_Error given.
- 🪪 argument.type
- at src/wp-admin/media-new.php:35
- ------ -------------------------------------------------------------------
-
------ -----------------------------------------------------------------------
Line wp-admin/menu-header.php
------ -----------------------------------------------------------------------
@@ -16319,9 +15503,9 @@
------ -----------------------------------------------------------------------
Line wp-admin/nav-menus.php
------ -----------------------------------------------------------------------
- 84 Cannot access offset 0 on array<int|string|WP_Term>|string|WP_Error.
- 🪪 offsetAccess.nonOffsetAccessible
- at src/wp-admin/nav-menus.php:84
+ 85 Cannot cast int<min, -1>|int<1, max>|non-falsy-string|WP_Term to int.
+ 🪪 cast.int
+ at src/wp-admin/nav-menus.php:85
87 Parameter #1 $menu_item of function wp_setup_nav_menu_item expects
object, array|WP_Post|null given.
🪪 argument.type
@@ -16334,9 +15518,9 @@
object, array|WP_Post|null given.
🪪 argument.type
at src/wp-admin/nav-menus.php:118
- 174 Cannot access offset 0 on array<int|string|WP_Term>|string|WP_Error.
- 🪪 offsetAccess.nonOffsetAccessible
- at src/wp-admin/nav-menus.php:174
+ 175 Cannot cast int<min, -1>|int<1, max>|non-falsy-string|WP_Term to int.
+ 🪪 cast.int
+ at src/wp-admin/nav-menus.php:175
177 Parameter #1 $menu_item of function wp_setup_nav_menu_item expects
object, array|WP_Post|null given.
🪪 argument.type
@@ -16349,45 +15533,16 @@
object, array|WP_Post|null given.
🪪 argument.type
at src/wp-admin/nav-menus.php:209
- 345 Cannot call method get_error_message() on bool|WP_Error.
- 🪪 method.nonObject
- at src/wp-admin/nav-menus.php:345
- 388 Cannot call method get_error_message() on int|WP_Error.
- 🪪 method.nonObject
- at src/wp-admin/nav-menus.php:388
- 396 Parameter #1 $menu of function wp_get_nav_menu_object expects
- int|string|WP_Term, int|WP_Error given.
- 🪪 argument.type
- at src/wp-admin/nav-menus.php:396
398 Cannot access property $name on WP_Term|false.
🪪 property.nonObject
at src/wp-admin/nav-menus.php:398
- 401 Parameter #1 $menu_id of function wp_save_nav_menu_items expects int,
- int|WP_Error given.
- 🪪 argument.type
- at src/wp-admin/nav-menus.php:401
401 Parameter #2 $menu_data of function wp_save_nav_menu_items expects
array<array>, int given.
🪪 argument.type
at src/wp-admin/nav-menus.php:401
- 406 Parameter #1 $nav_menu_selected_id of function
- wp_nav_menu_update_menu_items expects int|string, int|WP_Error given.
- 🪪 argument.type
- at src/wp-admin/nav-menus.php:406
- 441 Binary operation "." between 'nav-menus.php?menu=' and int|WP_Error
- results in an error.
- 🪪 binaryOp.invalid
- at src/wp-admin/nav-menus.php:441
482 Cannot access property $name on WP_Term|false.
🪪 property.nonObject
at src/wp-admin/nav-menus.php:482
- 491 Cannot call method get_error_message() on int|WP_Error.
- 🪪 method.nonObject
- at src/wp-admin/nav-menus.php:491
- 499 Parameter #1 $menu of function wp_get_nav_menu_object expects
- int|string|WP_Term, int|WP_Error given.
- 🪪 argument.type
- at src/wp-admin/nav-menus.php:499
500 Cannot access property $name on WP_Term|false.
🪪 property.nonObject
at src/wp-admin/nav-menus.php:500
@@ -16461,20 +15616,6 @@
string|false|null given.
🪪 argument.type
at src/wp-admin/network.php:102
- 104 Cannot call method get_error_code() on WP_Error|true.
- 🪪 method.nonObject
- at src/wp-admin/network.php:104
- 104 Cannot call method get_error_codes() on WP_Error|true.
- 🪪 method.nonObject
- at src/wp-admin/network.php:104
- 105 Parameter #1 $errors of function network_step2 expects
- WP_Error|false, WP_Error|true given.
- 🪪 argument.type
- at src/wp-admin/network.php:105
- 107 Parameter #1 $errors of function network_step1 expects
- WP_Error|false, WP_Error|true given.
- 🪪 argument.type
- at src/wp-admin/network.php:107
------ -----------------------------------------------------------------------
------ ----------------------------------------------
@@ -16569,25 +15710,14 @@
int|false given.
🪪 argument.type
at src/wp-admin/network/site-new.php:149
- 152 Parameter #1 $site_id of function wpmu_new_site_admin_notification
- expects int, int|WP_Error given.
- 🪪 argument.type
- at src/wp-admin/network/site-new.php:152
152 Parameter #2 $user_id of function wpmu_new_site_admin_notification
expects int, int|false given.
🪪 argument.type
at src/wp-admin/network/site-new.php:152
- 153 Parameter #1 $blog_id of function wpmu_welcome_notification expects
- int, int|WP_Error given.
- 🪪 argument.type
- at src/wp-admin/network/site-new.php:153
153 Parameter #2 $user_id of function wpmu_welcome_notification expects
int, int|false given.
🪪 argument.type
at src/wp-admin/network/site-new.php:153
- 165 Cannot call method get_error_message() on int|WP_Error.
- 🪪 method.nonObject
- at src/wp-admin/network/site-new.php:165
------ -----------------------------------------------------------------------
------ --------------------------------------------------------------------
@@ -16778,9 +15908,6 @@
int|WP_Site given.
🪪 argument.type
at src/wp-admin/network/upgrade.php:80
- 102 Cannot call method get_error_message() on array|WP_Error.
- 🪪 method.nonObject
- at src/wp-admin/network/upgrade.php:102
------ -------------------------------------------------------------------
------ ----------------------------------------------------------------------
@@ -16945,10 +16072,6 @@
------ --------------------------------------------------------------------
Line wp-admin/options-privacy.php
------ --------------------------------------------------------------------
- 108 Binary operation "." between 'post.php?post=' and int|WP_Error
- results in an error.
- 🪪 binaryOp.invalid
- at src/wp-admin/options-privacy.php:108
223 Parameter #1 $url of function esc_url expects string, string|false
given.
🪪 argument.type
@@ -17009,15 +16132,6 @@
array|string|false given.
🪪 argument.type
at src/wp-admin/plugin-editor.php:194
- 209 Cannot call method get_error_code() on WP_Error|true.
- 🪪 method.nonObject
- at src/wp-admin/plugin-editor.php:209
- 209 Cannot call method get_error_message() on WP_Error|true.
- 🪪 method.nonObject
- at src/wp-admin/plugin-editor.php:209
- 209 Cannot call method get_error_message() on WP_Error|true.
- 🪪 method.nonObject
- at src/wp-admin/plugin-editor.php:209
209 Parameter #1 $text of function esc_html expects string, int|string
given.
🪪 argument.type
@@ -17148,10 +16262,6 @@
array|string given.
🪪 argument.type
at src/wp-admin/plugins.php:183
- 185 Parameter #1 $message of function wp_die expects string|WP_Error,
- int|WP_Error given.
- 🪪 argument.type
- at src/wp-admin/plugins.php:185
192 Parameter #2 $newvalue of function ini_set expects string, true
given.
🪪 argument.type
@@ -17253,10 +16363,6 @@
456 Variable $status might not be defined.
🪪 variable.undefined
at src/wp-admin/plugins.php:456
- 459 Parameter #1 $message of function wp_die expects string|WP_Error,
- WP_Error|true given.
- 🪪 argument.type
- at src/wp-admin/plugins.php:459
462 Variable $page might not be defined.
🪪 variable.undefined
at src/wp-admin/plugins.php:462
@@ -17489,9 +16595,6 @@
365 Variable $secret_keys might not be defined.
🪪 variable.undefined
at src/wp-admin/setup-config.php:365
- 371 Variable $secret_keys might not be defined.
- 🪪 variable.undefined
- at src/wp-admin/setup-config.php:371
379 Variable $config_file might not be defined.
🪪 variable.undefined
at src/wp-admin/setup-config.php:379
@@ -17571,15 +16674,6 @@
string|false given.
🪪 argument.type
at src/wp-admin/theme-editor.php:184
- 203 Cannot call method get_error_code() on WP_Error|true.
- 🪪 method.nonObject
- at src/wp-admin/theme-editor.php:203
- 203 Cannot call method get_error_message() on WP_Error|true.
- 🪪 method.nonObject
- at src/wp-admin/theme-editor.php:203
- 203 Cannot call method get_error_message() on WP_Error|true.
- 🪪 method.nonObject
- at src/wp-admin/theme-editor.php:203
203 Parameter #1 $text of function esc_html expects string, int|string
given.
🪪 argument.type
@@ -17632,10 +16726,6 @@
------ ----------------------------------------------------------------------
Line wp-admin/themes.php
------ ----------------------------------------------------------------------
- 51 Parameter #1 $message of function wp_die expects string|WP_Error,
- bool|WP_Error given.
- 🪪 argument.type
- at src/wp-admin/themes.php:51
357 Variable $submenu might not be defined.
🪪 variable.undefined
at src/wp-admin/themes.php:357
@@ -17926,24 +17016,6 @@
💡 Learn more: https://phpstan.org/blog/solving-phpstan-access-to-und
efined-property
at src/wp-admin/update-core.php:897
- 911 Parameter #1 $message of function show_message expects
- string|WP_Error, string|WP_Error|false given.
- 🪪 argument.type
- at src/wp-admin/update-core.php:911
- 912 Cannot call method get_error_code() on string|WP_Error|false.
- 🪪 method.nonObject
- at src/wp-admin/update-core.php:912
- 912 Cannot call method get_error_code() on string|WP_Error|false.
- 🪪 method.nonObject
- at src/wp-admin/update-core.php:912
- 924 Parameter #2 ...$values of function sprintf expects
- bool|float|int|string|null, string|WP_Error|false given.
- 🪪 argument.type
- at src/wp-admin/update-core.php:924
- 932 Parameter #2 ...$values of function sprintf expects
- bool|float|int|string|null, string|WP_Error|false given.
- 🪪 argument.type
- at src/wp-admin/update-core.php:932
949 Function do_dismiss_core_update() has no return type specified.
🪪 missingType.return
at src/wp-admin/update-core.php:949
@@ -17960,40 +17032,40 @@
at src/wp-admin/update-core.php:1115
------ -----------------------------------------------------------------------
- ------ -------------------------------------------------------------------
- Line wp-admin/update.php
- ------ -------------------------------------------------------------------
- 99 Parameter #2 $newvalue of function ini_set expects string, true
- given.
- 🪪 argument.type
- at src/wp-admin/update.php:99
- 124 Parameter #1 $message of function wp_die expects string|WP_Error,
- array|object given.
- 🪪 argument.type
- at src/wp-admin/update.php:124
- 135 Cannot access property $name on array|object.
- 🪪 property.nonObject
- at src/wp-admin/update.php:135
- 135 Cannot access property $version on array|object.
- 🪪 property.nonObject
- at src/wp-admin/update.php:135
- 145 Cannot access property $download_link on array|object.
- 🪪 property.nonObject
- at src/wp-admin/update.php:145
- 280 Parameter #1 $message of function wp_die expects string|WP_Error,
- array|object given.
- 🪪 argument.type
- at src/wp-admin/update.php:280
- 291 Cannot access property $name on array|object.
- 🪪 property.nonObject
- at src/wp-admin/update.php:291
- 291 Cannot access property $version on array|object.
- 🪪 property.nonObject
- at src/wp-admin/update.php:291
- 297 Cannot access property $download_link on array|object.
- 🪪 property.nonObject
- at src/wp-admin/update.php:297
- ------ -------------------------------------------------------------------
+ ------ ---------------------------------------------------------------------
+ Line wp-admin/update.php
+ ------ ---------------------------------------------------------------------
+ 99 Parameter #2 $newvalue of function ini_set expects string, true
+ given.
+ 🪪 argument.type
+ at src/wp-admin/update.php:99
+ 135 Cannot access property $name on array|object.
+ 🪪 property.nonObject
+ at src/wp-admin/update.php:135
+ 135 Cannot access property $version on array|object.
+ 🪪 property.nonObject
+ at src/wp-admin/update.php:135
+ 145 Cannot access property $download_link on array|object.
+ 🪪 property.nonObject
+ at src/wp-admin/update.php:145
+ 182 Call to function is_wp_error() with 0|0.0|''|'0'|array{}|false|null
+ will always evaluate to false.
+ 🪪 function.impossibleType
+ at src/wp-admin/update.php:182
+ 291 Cannot access property $name on array|object.
+ 🪪 property.nonObject
+ at src/wp-admin/update.php:291
+ 291 Cannot access property $version on array|object.
+ 🪪 property.nonObject
+ at src/wp-admin/update.php:291
+ 297 Cannot access property $download_link on array|object.
+ 🪪 property.nonObject
+ at src/wp-admin/update.php:297
+ 334 Call to function is_wp_error() with 0|0.0|''|'0'|array{}|false|null
+ will always evaluate to false.
+ 🪪 function.impossibleType
+ at src/wp-admin/update.php:334
+ ------ ---------------------------------------------------------------------
------ --------------------------------------------------------------------
Line wp-admin/upgrade.php
@@ -18258,10 +17330,6 @@
68 Variable $blog_id might not be defined.
🪪 variable.undefined
at src/wp-admin/user-new.php:68
- 207 Binary operation "." between 'users.php?update…' and int|WP_Error
- results in an error.
- 🪪 binaryOp.invalid
- at src/wp-admin/user-new.php:207
218 Parameter #2 $user_email of function wpmu_validate_user_signup
expects string, array|string given.
🪪 argument.type
@@ -18283,12 +17351,6 @@
243 Variable $wpdb might not be defined.
🪪 variable.undefined
at src/wp-admin/user-new.php:243
- 247 Cannot access offset 'user_id' on array|WP_Error.
- 🪪 offsetAccess.nonOffsetAccessible
- at src/wp-admin/user-new.php:247
- 253 Cannot access offset 'user_id' on array|WP_Error.
- 🪪 offsetAccess.nonOffsetAccessible
- at src/wp-admin/user-new.php:253
344 Parameter #1 $str of function urlencode expects string, array|string
given.
🪪 argument.type
@@ -18543,12 +17605,6 @@
expects array, array|string given.
🪪 argument.type
at src/wp-comments-post.php:25
- 27 Call to an undefined method WP_Comment|WP_Error::get_error_data().
- 🪪 method.notFound
- at src/wp-comments-post.php:27
- 30 Call to an undefined method WP_Comment|WP_Error::get_error_message().
- 🪪 method.notFound
- at src/wp-comments-post.php:30
57 Access to an undefined property WP_Comment|WP_Error::$comment_ID.
🪪 property.notFound
💡 Learn more: https://phpstan.org/blog/solving-phpstan-access-to-und
@@ -18661,10 +17717,6 @@
given.
🪪 argument.type
at src/wp-content/themes/twentyeleven/content-gallery.php:52
- 99 Parameter #3 ...$values of function printf expects
- bool|float|int|string|null, string|WP_Error given.
- 🪪 argument.type
- at src/wp-content/themes/twentyeleven/content-gallery.php:99
------ --------------------------------------------------------------------
------ -----------------------------------------------------------------------
@@ -18678,20 +17730,7 @@
string given.
🪪 argument.type
at src/wp-content/themes/twentyeleven/content-image.php:49
- 78 Parameter #3 ...$values of function printf expects
- bool|float|int|string|null, string|WP_Error given.
- 🪪 argument.type
- at src/wp-content/themes/twentyeleven/content-image.php:78
------ -----------------------------------------------------------------------
-
- ------ ------------------------------------------------------------
- Line wp-content/themes/twentyeleven/content-quote.php
- ------ ------------------------------------------------------------
- 75 Parameter #3 ...$values of function printf expects
- bool|float|int|string|null, string|WP_Error given.
- 🪪 argument.type
- at src/wp-content/themes/twentyeleven/content-quote.php:75
- ------ ------------------------------------------------------------
------ -----------------------------------------------------------------------
Line wp-content/themes/twentyeleven/content-single.php
@@ -18735,10 +17774,6 @@
string, string|false given.
🪪 argument.type
at src/wp-content/themes/twentyeleven/content.php:72
- 84 Parameter #3 ...$values of function printf expects
- bool|float|int|string|null, string|WP_Error given.
- 🪪 argument.type
- at src/wp-content/themes/twentyeleven/content.php:84
------ ---------------------------------------------------------------------
------ -----------------------------------------------------------------------
@@ -19539,10 +18574,6 @@
string given.
🪪 argument.type
at src/wp-content/themes/twentyfifteen/inc/template-tags.php:103
- 124 Parameter #3 ...$values of function printf expects
- bool|float|int|string|null, string|WP_Error given.
- 🪪 argument.type
- at src/wp-content/themes/twentyfifteen/inc/template-tags.php:124
137 Parameter #1 $url of function esc_url expects string, string|false
given.
🪪 argument.type
@@ -20173,9 +19204,6 @@
498 Cannot access property $term_id on array|WP_Term.
🪪 property.nonObject
at src/wp-content/themes/twentyfourteen/inc/featured-content.php:498
- 502 Cannot access offset 'term_id' on array|WP_Error.
- 🪪 offsetAccess.nonOffsetAccessible
- at src/wp-content/themes/twentyfourteen/inc/featured-content.php:502
------ -----------------------------------------------------------------------
------ -----------------------------------------------------------------------
@@ -20871,10 +19899,6 @@
75 Function twentynineteen_entry_footer() has no return type specified.
🪪 missingType.return
at src/wp-content/themes/twentynineteen/inc/template-tags.php:75
- 106 Parameter #4 ...$values of function printf expects
- bool|float|int|string|null, string|WP_Error given.
- 🪪 argument.type
- at src/wp-content/themes/twentynineteen/inc/template-tags.php:106
143 Function twentynineteen_post_thumbnail() has no return type
specified.
🪪 missingType.return
@@ -21260,10 +20284,6 @@
63 Function twentyseventeen_entry_footer() has no return type specified.
🪪 missingType.return
at src/wp-content/themes/twentyseventeen/inc/template-tags.php:63
- 92 Binary operation "." between non-falsy-string and
- non-falsy-string|WP_Error results in an error.
- 🪪 binaryOp.invalid
- at src/wp-content/themes/twentyseventeen/inc/template-tags.php:92
120 Function twentyseventeen_edit_link() has no return type specified.
🪪 missingType.return
at src/wp-content/themes/twentyseventeen/inc/template-tags.php:120
@@ -21838,10 +20858,6 @@
specified.
🪪 missingType.return
at src/wp-content/themes/twentysixteen/inc/template-tags.php:112
- 129 Parameter #3 ...$values of function printf expects
- bool|float|int|string|null, string|WP_Error given.
- 🪪 argument.type
- at src/wp-content/themes/twentysixteen/inc/template-tags.php:129
146 Function twentysixteen_post_thumbnail() has no return type specified.
🪪 missingType.return
at src/wp-content/themes/twentysixteen/inc/template-tags.php:146
@@ -22233,10 +21249,6 @@
134 Variable $post might not be defined.
🪪 variable.undefined
at src/wp-content/themes/twentyten/loop.php:134
- 201 Parameter #3 ...$values of function printf expects
- bool|float|int|string|null, string|WP_Error given.
- 🪪 argument.type
- at src/wp-content/themes/twentyten/loop.php:201
220 Variable $wp_query might not be defined.
🪪 variable.undefined
at src/wp-content/themes/twentyten/loop.php:220
@@ -22365,10 +21377,6 @@
583 Function twentythirteen_entry_meta() has no return type specified.
🪪 missingType.return
at src/wp-content/themes/twentythirteen/functions.php:583
- 599 Binary operation "." between '<span class="tags…' and
- non-falsy-string|WP_Error results in an error.
- 🪪 binaryOp.invalid
- at src/wp-content/themes/twentythirteen/functions.php:599
606 Parameter #1 $author_id of function get_author_posts_url expects int,
string given.
🪪 argument.type
@@ -23936,14 +22944,6 @@
given.
🪪 argument.type
at src/wp-content/themes/twentytwentyone/inc/template-tags.php:82
- 117 Parameter #2 ...$values of function printf expects
- bool|float|int|string|null, string|WP_Error given.
- 🪪 argument.type
- at src/wp-content/themes/twentytwentyone/inc/template-tags.php:117
- 159 Parameter #2 ...$values of function printf expects
- bool|float|int|string|null, string|WP_Error given.
- 🪪 argument.type
- at src/wp-content/themes/twentytwentyone/inc/template-tags.php:159
192 Parameter #1 $post_id of function wp_get_attachment_caption expects
int, int|false given.
🪪 argument.type
@@ -24068,34 +23068,8 @@
💡 Learn more: https://phpstan.org/blog/solving-phpstan-access-to-und
efined-property
at src/wp-cron.php:77
- 137 Cannot call method get_error_code() on bool|WP_Error.
- 🪪 method.nonObject
- at src/wp-cron.php:137
- 138 Cannot call method get_error_message() on bool|WP_Error.
- 🪪 method.nonObject
- at src/wp-cron.php:138
- 164 Cannot call method get_error_code() on bool|WP_Error.
- 🪪 method.nonObject
- at src/wp-cron.php:164
- 165 Cannot call method get_error_message() on bool|WP_Error.
- 🪪 method.nonObject
- at src/wp-cron.php:165
------ -----------------------------------------------------------------------
- ------ -----------------------------------------------------------
- Line wp-includes/abilities-api/class-wp-ability.php
- ------ -----------------------------------------------------------
- 490 Cannot call method get_error_message() on WP_Error|true.
- 🪪 method.nonObject
- at src/wp-includes/abilities-api/class-wp-ability.php:490
- 583 Cannot call method get_error_message() on WP_Error|true.
- 🪪 method.nonObject
- at src/wp-includes/abilities-api/class-wp-ability.php:583
- 613 Cannot call method get_error_message() on WP_Error|false.
- 🪪 method.nonObject
- at src/wp-includes/abilities-api/class-wp-ability.php:613
- ------ -----------------------------------------------------------
-
------ -------------------------------------------------------------
Line wp-includes/abilities.php
------ -------------------------------------------------------------
@@ -24302,45 +23276,6 @@
array|Message|MessagePart|string|null given.
🪪 argument.type
at src/wp-includes/ai-client.php:33
- ------ -----------------------------------------------------------------------
-
- ------ -----------------------------------------------------------------------
- Line wp-includes/ai-client/adapters/class-wp-ai-client-http-client.php
- ------ -----------------------------------------------------------------------
- 82 Cannot call method get_error_message() on array|WP_Error.
- 🪪 method.nonObject
- at
- src/wp-includes/ai-client/adapters/class-wp-ai-client-http-client.php
- :82
- 87 Parameter #1 $wp_response of method
- WP_AI_Client_HTTP_Client::create_psr_response() expects array<string,
- mixed>, array|WP_Error given.
- 🪪 argument.type
- at
- src/wp-includes/ai-client/adapters/class-wp-ai-client-http-client.php
- :87
- 112 Cannot call method get_error_message() on array|WP_Error.
- 🪪 method.nonObject
- at
- src/wp-includes/ai-client/adapters/class-wp-ai-client-http-client.php
- :112
- 117 Cannot call method get_error_code() on array|WP_Error.
- 🪪 method.nonObject
- at
- src/wp-includes/ai-client/adapters/class-wp-ai-client-http-client.php
- :117
- 117 Cannot call method get_error_code() on array|WP_Error.
- 🪪 method.nonObject
- at
- src/wp-includes/ai-client/adapters/class-wp-ai-client-http-client.php
- :117
- 121 Parameter #1 $wp_response of method
- WP_AI_Client_HTTP_Client::create_psr_response() expects array<string,
- mixed>, array|WP_Error given.
- 🪪 argument.type
- at
- src/wp-includes/ai-client/adapters/class-wp-ai-client-http-client.php
- :121
------ -----------------------------------------------------------------------
------ -----------------------------------------------------------------------
@@ -24549,27 +23484,23 @@
https://phpstan.org/blog/solving-phpstan-no-value-type-specified-in-i
terable-type
at src/wp-includes/block-bindings/term-data.php:21
- 73 Cannot access property $name on array|WP_Error|WP_Term.
+ 73 Cannot access property $name on array|WP_Term.
🪪 property.nonObject
at src/wp-includes/block-bindings/term-data.php:73
77 Parameter #1 $term of function get_term_link expects
- int|string|WP_Term, array|WP_Error|WP_Term given.
+ int|string|WP_Term, array|WP_Term given.
🪪 argument.type
at src/wp-includes/block-bindings/term-data.php:77
- 78 Parameter #1 $url of function esc_url expects string, string|WP_Error
- given.
- 🪪 argument.type
- at src/wp-includes/block-bindings/term-data.php:78
- 81 Cannot access property $slug on array|WP_Error|WP_Term.
+ 81 Cannot access property $slug on array|WP_Term.
🪪 property.nonObject
at src/wp-includes/block-bindings/term-data.php:81
- 84 Cannot access property $description on array|WP_Error|WP_Term.
+ 84 Cannot access property $description on array|WP_Term.
🪪 property.nonObject
at src/wp-includes/block-bindings/term-data.php:84
- 87 Cannot access property $parent on array|WP_Error|WP_Term.
+ 87 Cannot access property $parent on array|WP_Term.
🪪 property.nonObject
at src/wp-includes/block-bindings/term-data.php:87
- 90 Cannot access property $count on array|WP_Error|WP_Term.
+ 90 Cannot access property $count on array|WP_Term.
🪪 property.nonObject
at src/wp-includes/block-bindings/term-data.php:90
103 Function _register_block_bindings_term_data_source() has no return
@@ -25543,13 +24474,6 @@
array|WP_Post|null given.
🪪 argument.type
at src/wp-includes/block-template-utils.php:906
- 909 Function _build_block_template_result_from_post() should return
- WP_Block_Template|WP_Error but returns array<WP_Term>|WP_Error|false.
- 🪪 return.type
- at src/wp-includes/block-template-utils.php:909
- 917 Cannot access offset 0 on non-empty-array<WP_Term>|WP_Error.
- 🪪 offsetAccess.nonOffsetAccessible
- at src/wp-includes/block-template-utils.php:917
920 Cannot access property $post_type on array|WP_Post.
🪪 property.nonObject
at src/wp-includes/block-template-utils.php:920
@@ -25557,49 +24481,15 @@
array|WP_Post|null given.
🪪 argument.type
at src/wp-includes/block-template-utils.php:921
- 923 Cannot access offset 0 on array<WP_Term>|WP_Error.
- 🪪 offsetAccess.nonOffsetAccessible
- at src/wp-includes/block-template-utils.php:923
928 Cannot access property $ID on array|WP_Post.
🪪 property.nonObject
at src/wp-includes/block-template-utils.php:928
929 Cannot access property $ID on array|WP_Post.
🪪 property.nonObject
at src/wp-includes/block-template-utils.php:929
- 939 Access to an undefined property WP_Block_Template|WP_Error::$slug.
- 🪪 property.notFound
- 💡 Learn more: https://phpstan.org/blog/solving-phpstan-access-to-und
- efined-property
- at src/wp-includes/block-template-utils.php:939
939 Cannot access property $post_type on array|WP_Post.
🪪 property.nonObject
at src/wp-includes/block-template-utils.php:939
- 943 Access to an undefined property WP_Block_Template|WP_Error::$slug.
- 🪪 property.notFound
- 💡 Learn more: https://phpstan.org/blog/solving-phpstan-access-to-und
- efined-property
- at src/wp-includes/block-template-utils.php:943
- 960 Access to an undefined property WP_Block_Template|WP_Error::$title.
- 🪪 property.notFound
- 💡 Learn more: https://phpstan.org/blog/solving-phpstan-access-to-und
- efined-property
- at src/wp-includes/block-template-utils.php:960
- 968 Access to an undefined property WP_Block_Template|WP_Error::$title.
- 🪪 property.notFound
- 💡 Learn more: https://phpstan.org/blog/solving-phpstan-access-to-und
- efined-property
- at src/wp-includes/block-template-utils.php:968
- 974 Access to an undefined property
- WP_Block_Template|WP_Error::$description.
- 🪪 property.notFound
- 💡 Learn more: https://phpstan.org/blog/solving-phpstan-access-to-und
- efined-property
- at src/wp-includes/block-template-utils.php:974
- 1000 Parameter #3 $template of function
- _wp_build_title_and_description_for_single_post_type_block_template
- expects WP_Block_Template, WP_Block_Template|WP_Error given.
- 🪪 argument.type
- at src/wp-includes/block-template-utils.php:1000
1006 Parameter #1 $string of function strlen expects string,
string|WP_Post_Type given.
🪪 argument.type
@@ -25613,21 +24503,6 @@
expects string, string|WP_Post_Type given.
🪪 argument.type
at src/wp-includes/block-template-utils.php:1011
- 1011 Parameter #3 $template of function
- _wp_build_title_and_description_for_single_post_type_block_template
- expects WP_Block_Template, WP_Block_Template|WP_Error given.
- 🪪 argument.type
- at src/wp-includes/block-template-utils.php:1011
- 1020 Parameter #3 $template of function
- _wp_build_title_and_description_for_taxonomy_block_template expects
- WP_Block_Template, WP_Block_Template|WP_Error given.
- 🪪 argument.type
- at src/wp-includes/block-template-utils.php:1020
- 1023 Parameter #3 $template of function
- _wp_build_title_and_description_for_taxonomy_block_template expects
- WP_Block_Template, WP_Block_Template|WP_Error given.
- 🪪 argument.type
- at src/wp-includes/block-template-utils.php:1023
1029 Parameter #1 $string of function strlen expects string,
string|WP_Taxonomy given.
🪪 argument.type
@@ -25641,92 +24516,6 @@
string, string|WP_Taxonomy given.
🪪 argument.type
at src/wp-includes/block-template-utils.php:1034
- 1034 Parameter #3 $template of function
- _wp_build_title_and_description_for_taxonomy_block_template expects
- WP_Block_Template, WP_Block_Template|WP_Error given.
- 🪪 argument.type
- at src/wp-includes/block-template-utils.php:1034
- 1047 Access to an undefined property WP_Block_Template|WP_Error::$slug.
- 🪪 property.notFound
- 💡 Learn more: https://phpstan.org/blog/solving-phpstan-access-to-und
- efined-property
- at src/wp-includes/block-template-utils.php:1047
- 1049 Access to an undefined property WP_Block_Template|WP_Error::$plugin.
- 🪪 property.notFound
- 💡 Learn more: https://phpstan.org/blog/solving-phpstan-access-to-und
- efined-property
- at src/wp-includes/block-template-utils.php:1049
- 1050 Access to an undefined property WP_Block_Template|WP_Error::$origin.
- 🪪 property.notFound
- 💡 Learn more: https://phpstan.org/blog/solving-phpstan-access-to-und
- efined-property
- at src/wp-includes/block-template-utils.php:1050
- 1051 Access to an undefined property WP_Block_Template|WP_Error::$origin.
- 🪪 property.notFound
- 💡 Learn more: https://phpstan.org/blog/solving-phpstan-access-to-und
- efined-property
- at src/wp-includes/block-template-utils.php:1051
- 1051 Access to an undefined property WP_Block_Template|WP_Error::$source.
- 🪪 property.notFound
- 💡 Learn more: https://phpstan.org/blog/solving-phpstan-access-to-und
- efined-property
- at src/wp-includes/block-template-utils.php:1051
- 1053 Access to an undefined property WP_Block_Template|WP_Error::$origin.
- 🪪 property.notFound
- 💡 Learn more: https://phpstan.org/blog/solving-phpstan-access-to-und
- efined-property
- at src/wp-includes/block-template-utils.php:1053
- 1054 Access to an undefined property WP_Block_Template|WP_Error::$slug.
- 🪪 property.notFound
- 💡 Learn more: https://phpstan.org/blog/solving-phpstan-access-to-und
- efined-property
- at src/wp-includes/block-template-utils.php:1054
- 1054 Access to an undefined property WP_Block_Template|WP_Error::$title.
- 🪪 property.notFound
- 💡 Learn more: https://phpstan.org/blog/solving-phpstan-access-to-und
- efined-property
- at src/wp-includes/block-template-utils.php:1054
- 1055 Access to an undefined property
- WP_Block_Template|WP_Error::$description.
- 🪪 property.notFound
- 💡 Learn more: https://phpstan.org/blog/solving-phpstan-access-to-und
- efined-property
- at src/wp-includes/block-template-utils.php:1055
- 1059 Access to an undefined property WP_Block_Template|WP_Error::$type.
- 🪪 property.notFound
- 💡 Learn more: https://phpstan.org/blog/solving-phpstan-access-to-und
- efined-property
- at src/wp-includes/block-template-utils.php:1059
- 1070 Access to an undefined property WP_Block_Template|WP_Error::$content.
- 🪪 property.notFound
- 💡 Learn more: https://phpstan.org/blog/solving-phpstan-access-to-und
- efined-property
- at src/wp-includes/block-template-utils.php:1070
- 1074 Parameter #2 $context of function apply_block_hooks_to_content
- expects array|WP_Block_Template|WP_Post|null,
- WP_Block_Template|WP_Error given.
- 🪪 argument.type
- at src/wp-includes/block-template-utils.php:1074
- 1077 Access to an undefined property WP_Block_Template|WP_Error::$content.
- 🪪 property.notFound
- 💡 Learn more: https://phpstan.org/blog/solving-phpstan-access-to-und
- efined-property
- at src/wp-includes/block-template-utils.php:1077
- 1079 Access to an undefined property WP_Block_Template|WP_Error::$content.
- 🪪 property.notFound
- 💡 Learn more: https://phpstan.org/blog/solving-phpstan-access-to-und
- efined-property
- at src/wp-includes/block-template-utils.php:1079
- 1080 Access to an undefined property WP_Block_Template|WP_Error::$content.
- 🪪 property.notFound
- 💡 Learn more: https://phpstan.org/blog/solving-phpstan-access-to-und
- efined-property
- at src/wp-includes/block-template-utils.php:1080
- 1081 Parameter #2 $context of function apply_block_hooks_to_content
- expects array|WP_Block_Template|WP_Post|null,
- WP_Block_Template|WP_Error given.
- 🪪 argument.type
- at src/wp-includes/block-template-utils.php:1081
1105 Function get_block_templates() has parameter $query with no value
type specified in iterable type array.
🪪 missingType.iterableValue
@@ -25738,20 +24527,10 @@
expects WP_Post, int|WP_Post given.
🪪 argument.type
at src/wp-includes/block-template-utils.php:1170
- 1176 Access to an undefined property
- WP_Block_Template|WP_Error::$is_custom.
- 🪪 property.notFound
- 💡 Learn more: https://phpstan.org/blog/solving-phpstan-access-to-und
- efined-property
- at src/wp-includes/block-template-utils.php:1176
1329 Parameter #1 $post of function _build_block_template_result_from_post
expects WP_Post, int|WP_Post given.
🪪 argument.type
at src/wp-includes/block-template-utils.php:1329
- 1332 Function get_block_template() should return WP_Block_Template|null
- but returns WP_Block_Template|WP_Error.
- 🪪 return.type
- at src/wp-includes/block-template-utils.php:1332
1427 Function block_template_part() has no return type specified.
🪪 missingType.return
at src/wp-includes/block-template-utils.php:1427
@@ -25793,26 +24572,6 @@
1732 Cannot access property $post_type on array|WP_Post.
🪪 property.nonObject
at src/wp-includes/block-template-utils.php:1732
- 1739 Cannot access offset 0 on non-empty-array<WP_Term>|WP_Error.
- 🪪 offsetAccess.nonOffsetAccessible
- at src/wp-includes/block-template-utils.php:1739
- 1752 Cannot access offset 0 on non-empty-array<WP_Term>|WP_Error.
- 🪪 offsetAccess.nonOffsetAccessible
- at src/wp-includes/block-template-utils.php:1752
- 1758 Function inject_ignored_hooked_blocks_metadata_attributes() should
- return stdClass|WP_Error but returns WP_Block_Template|WP_Error.
- 🪪 return.type
- at src/wp-includes/block-template-utils.php:1758
- 1776 Parameter #2 $context of function apply_block_hooks_to_content
- expects array|WP_Block_Template|WP_Post|null,
- WP_Block_Template|WP_Error given.
- 🪪 argument.type
- at src/wp-includes/block-template-utils.php:1776
- 1789 Parameter #2 $context of function apply_block_hooks_to_content
- expects array|WP_Block_Template|WP_Post|null,
- WP_Block_Template|WP_Error given.
- 🪪 argument.type
- at src/wp-includes/block-template-utils.php:1789
------ -----------------------------------------------------------------------
------ -----------------------------------------------------------------------
@@ -26442,10 +25201,6 @@
array|stdClass given.
🪪 argument.type
at src/wp-includes/bookmark.php:62
- 83 Function get_bookmark_field() should return string|WP_Error but
- returns array|object|null.
- 🪪 return.type
- at src/wp-includes/bookmark.php:83
94 Access to an undefined property object::$link_id.
🪪 property.notFound
💡 Learn more: https://phpstan.org/blog/solving-phpstan-access-to-und
@@ -26983,10 +25738,6 @@
363 Cannot access property $query_var on WP_Taxonomy|false.
🪪 property.nonObject
at src/wp-includes/canonical.php:363
- 375 Parameter #1 $url of function parse_url expects string,
- string|WP_Error given.
- 🪪 argument.type
- at src/wp-includes/canonical.php:375
383 Cannot access offset 'path' on array{scheme?: string, host?: string,
port?: int<0, 65535>, user?: string, pass?: string, path?: string,
query?: string, fragment?: string}|false.
@@ -26997,7 +25748,7 @@
💡 Learn more: https://phpstan.org/blog/solving-phpstan-access-to-und
efined-property
at src/wp-includes/canonical.php:396
- 403 Cannot access property $term_id on array|WP_Error|WP_Term.
+ 403 Cannot access property $term_id on array|WP_Term.
🪪 property.nonObject
at src/wp-includes/canonical.php:403
421 Parameter #1 $value of function trailingslashit expects string,
@@ -27327,19 +26078,19 @@
582 Cannot access property $ID on array|WP_Post.
🪪 property.nonObject
at src/wp-includes/capabilities.php:582
- 732 Cannot access property $taxonomy on array|WP_Error|WP_Term.
+ 732 Cannot access property $taxonomy on array|WP_Term.
🪪 property.nonObject
at src/wp-includes/capabilities.php:732
- 739 Cannot access property $taxonomy on array|WP_Error|WP_Term.
+ 739 Cannot access property $taxonomy on array|WP_Term.
🪪 property.nonObject
at src/wp-includes/capabilities.php:739
- 739 Cannot access property $term_id on array|WP_Error|WP_Term.
+ 739 Cannot access property $term_id on array|WP_Term.
🪪 property.nonObject
at src/wp-includes/capabilities.php:739
- 740 Cannot access property $taxonomy on array|WP_Error|WP_Term.
+ 740 Cannot access property $taxonomy on array|WP_Term.
🪪 property.nonObject
at src/wp-includes/capabilities.php:740
- 740 Cannot access property $term_id on array|WP_Error|WP_Term.
+ 740 Cannot access property $term_id on array|WP_Term.
🪪 property.nonObject
at src/wp-includes/capabilities.php:740
834 Access to an undefined property WP_Post_Type::$capabilities.
@@ -27381,10 +26132,6 @@
int|string|WP_Term, int|object given.
🪪 argument.type
at src/wp-includes/category-template.php:25
- 31 Function get_category_link() should return string but returns
- string|WP_Error.
- 🪪 return.type
- at src/wp-includes/category-template.php:31
47 Function get_category_parents() has parameter $deprecated with no
value type specified in iterable type array.
🪪 missingType.iterableValue
@@ -27396,15 +26143,7 @@
int|false given.
🪪 argument.type
at src/wp-includes/category-template.php:78
- 83 Parameter #1 $input of function array_values expects array<WP_Term>,
- array<WP_Term>|WP_Error given.
- 🪪 argument.type
- at src/wp-includes/category-template.php:83
- 114 Function get_the_category_by_ID() should return string|WP_Error but
- returns array|WP_Error|WP_Term|null.
- 🪪 return.type
- at src/wp-includes/category-template.php:114
- 117 Cannot access property $name on array|WP_Error|WP_Term.
+ 117 Cannot access property $name on array|WP_Term.
🪪 property.nonObject
at src/wp-includes/category-template.php:117
144 Parameter #1 $object_type of function is_object_in_taxonomy expects
@@ -27477,8 +26216,8 @@
https://phpstan.org/blog/solving-phpstan-no-value-type-specified-in-i
terable-type
at src/wp-includes/category-template.php:716
- 751 Argument of an invalid type array<int|string|WP_Term>|string|WP_Error
- supplied for foreach, only iterables are supported.
+ 751 Argument of an invalid type array<int|string|WP_Term>|string supplied
+ for foreach, only iterables are supported.
🪪 foreach.nonIterable
at src/wp-includes/category-template.php:751
753 Cannot access property $taxonomy on int|string|WP_Term.
@@ -27491,19 +26230,17 @@
755 Cannot access property $taxonomy on int|string|WP_Term.
🪪 property.nonObject
at src/wp-includes/category-template.php:755
- 762 Cannot access offset (int|string) on non-empty-array<int|string|WP_Te
- rm>|non-falsy-string|WP_Error.
- 🪪 offsetAccess.nonOffsetAccessible
+ 762 Cannot access property $link on int|string|WP_Term.
+ 🪪 property.nonObject
at src/wp-includes/category-template.php:762
- 763 Cannot access offset (int|string) on non-empty-array<int|string|WP_Te
- rm>|non-falsy-string|WP_Error.
- 🪪 offsetAccess.nonOffsetAccessible
+ 763 Cannot access property $id on int|string|WP_Term.
+ 🪪 property.nonObject
at src/wp-includes/category-template.php:763
763 Cannot access property $term_id on int|string|WP_Term.
🪪 property.nonObject
at src/wp-includes/category-template.php:763
767 Parameter #1 $tags of function wp_generate_tag_cloud expects array<WP
- _Term>, array<int|string|WP_Term>|string|WP_Error given.
+ _Term>, array<int|string|WP_Term>|string given.
🪪 argument.type
at src/wp-includes/category-template.php:767
845 Function wp_generate_tag_cloud() has parameter $args with no value
@@ -27546,10 +26283,6 @@
1231 Function the_tags() has no return type specified.
🪪 missingType.return
at src/wp-includes/category-template.php:1231
- 1239 Parameter #1 (string|WP_Error|false) of echo cannot be converted to
- string.
- 🪪 echo.nonString
- at src/wp-includes/category-template.php:1239
1269 Access to an undefined property
WP_Post|WP_Post_Type|WP_Term|WP_User::$term_id.
🪪 property.notFound
@@ -27557,7 +26290,7 @@
efined-property
at src/wp-includes/category-template.php:1269
1275 Function term_description() should return string but returns
- int|string|WP_Error|null.
+ int|string|null.
🪪 return.type
at src/wp-includes/category-template.php:1275
1295 Cannot access property $ID on array|WP_Post.
@@ -27567,7 +26300,7 @@
🪪 property.nonObject
at src/wp-includes/category-template.php:1298
1300 Parameter #1 $input_list of function wp_list_pluck expects array,
- array<int|string|WP_Term>|string|WP_Error given.
+ array<int|string|WP_Term>|string given.
🪪 argument.type
at src/wp-includes/category-template.php:1300
1301 Cannot access property $ID on array|WP_Post.
@@ -27576,18 +26309,6 @@
1314 Cannot access property $ID on array|WP_Post.
🪪 property.nonObject
at src/wp-includes/category-template.php:1314
- 1342 Function get_the_term_list() should return string|WP_Error|false but
- returns array<WP_Term>|WP_Error|false.
- 🪪 return.type
- at src/wp-includes/category-template.php:1342
- 1351 Argument of an invalid type array<WP_Term>|WP_Error supplied for fore
- ach, only iterables are supported.
- 🪪 foreach.nonIterable
- at src/wp-includes/category-template.php:1351
- 1356 Parameter #1 $url of function esc_url expects string, string|WP_Error
- given.
- 🪪 argument.type
- at src/wp-includes/category-template.php:1356
1398 Function get_term_parents_list() has parameter $args with no value
type specified in iterable type array.
🪪 missingType.iterableValue
@@ -27595,11 +26316,7 @@
https://phpstan.org/blog/solving-phpstan-no-value-type-specified-in-i
terable-type
at src/wp-includes/category-template.php:1398
- 1403 Function get_term_parents_list() should return string|WP_Error but
- returns array|WP_Error|WP_Term|null.
- 🪪 return.type
- at src/wp-includes/category-template.php:1403
- 1410 Cannot access property $term_id on array|WP_Error|WP_Term.
+ 1410 Cannot access property $term_id on array|WP_Term.
🪪 property.nonObject
at src/wp-includes/category-template.php:1410
1433 Cannot access property $name on array|WP_Error|WP_Term.
@@ -27639,9 +26356,6 @@
1549 Cannot access property $ID on array|WP_Post.
🪪 property.nonObject
at src/wp-includes/category-template.php:1549
- 1554 Function has_term() should return bool but returns bool|WP_Error.
- 🪪 return.type
- at src/wp-includes/category-template.php:1554
------ -----------------------------------------------------------------------
------ -----------------------------------------------------------------------
@@ -27661,6 +26375,14 @@
https://phpstan.org/blog/solving-phpstan-no-value-type-specified-in-i
terable-type
at src/wp-includes/category.php:26
+ 62 Parameter #1 $category of function _make_cat_compat expects
+ array|object, array|int|object|string given.
+ 🪪 argument.type
+ at src/wp-includes/category.php:62
+ 92 Function get_category() never returns null so it can be removed from
+ the return type.
+ 🪪 return.unusedType
+ at src/wp-includes/category.php:92
92 Function get_category() return type has no value type specified in
iterable type array.
🪪 missingType.iterableValue
@@ -27683,19 +26405,19 @@
supplied for foreach, only iterables are supported.
🪪 foreach.nonIterable
at src/wp-includes/category.php:150
- 154 Cannot access property $parent on array|int|string|WP_Error|WP_Term.
+ 154 Cannot access property $parent on array|int|string|WP_Term.
🪪 property.nonObject
at src/wp-includes/category.php:154
- 154 Cannot access property $parent on array|int|string|WP_Error|WP_Term.
+ 154 Cannot access property $parent on array|int|string|WP_Term.
🪪 property.nonObject
at src/wp-includes/category.php:154
- 154 Cannot access property $term_id on array|int|string|WP_Error|WP_Term.
+ 154 Cannot access property $term_id on array|int|string|WP_Term.
🪪 property.nonObject
at src/wp-includes/category.php:154
- 155 Cannot access property $parent on array|int|string|WP_Error|WP_Term.
+ 155 Cannot access property $parent on array|int|string|WP_Term.
🪪 property.nonObject
at src/wp-includes/category.php:155
- 161 Cannot access property $slug on array|WP_Error|WP_Term.
+ 161 Cannot access property $slug on array|WP_Term.
🪪 property.nonObject
at src/wp-includes/category.php:161
165 Cannot access property $term_id on int|string|WP_Term.
@@ -27724,7 +26446,7 @@
211 Cannot access property $term_id on array|WP_Term.
🪪 property.nonObject
at src/wp-includes/category.php:211
- 233 Cannot access property $name on array|WP_Error|WP_Term.
+ 233 Cannot access property $name on array|WP_Term.
🪪 property.nonObject
at src/wp-includes/category.php:233
261 Function sanitize_category() has parameter $category with no value
@@ -29873,18 +28595,6 @@
https://phpstan.org/blog/solving-phpstan-no-value-type-specified-in-i
terable-type
at src/wp-includes/class-wp-customize-manager.php:1156
- 1169 Property WP_Customize_Manager::$_changeset_data (array|null) does not
- accept array|WP_Error.
- 🪪 assign.propertyType
- at src/wp-includes/class-wp-customize-manager.php:1169
- 1178 Property WP_Customize_Manager::$_changeset_data (array|null) does not
- accept array|WP_Error.
- 🪪 assign.propertyType
- at src/wp-includes/class-wp-customize-manager.php:1178
- 1184 Method WP_Customize_Manager::changeset_data() should return array but
- returns array|WP_Error.
- 🪪 return.type
- at src/wp-includes/class-wp-customize-manager.php:1184
1193 Property WP_Customize_Manager::$pending_starter_content_settings_ids
type has no value type specified in iterable type array.
🪪 missingType.iterableValue
@@ -29957,14 +28667,6 @@
1375 Cannot access property $ID on int|WP_Post.
🪪 property.nonObject
at src/wp-includes/class-wp-customize-manager.php:1375
- 1404 Parameter #1 $post_id of function update_post_meta expects int,
- int|WP_Error given.
- 🪪 argument.type
- at src/wp-includes/class-wp-customize-manager.php:1404
- 1405 Parameter #1 $post_id of function update_post_meta expects int,
- int|WP_Error given.
- 🪪 argument.type
- at src/wp-includes/class-wp-customize-manager.php:1405
1430 Cannot access property $ID on int|WP_Post.
🪪 property.nonObject
at src/wp-includes/class-wp-customize-manager.php:1430
@@ -30146,12 +28848,6 @@
https://phpstan.org/blog/solving-phpstan-no-value-type-specified-in-i
terable-type
at src/wp-includes/class-wp-customize-manager.php:2410
- 2413 Cannot access property $errors on WP_Error|true.
- 🪪 property.nonObject
- at src/wp-includes/class-wp-customize-manager.php:2413
- 2416 Cannot call method get_error_data() on WP_Error|true.
- 🪪 method.nonObject
- at src/wp-includes/class-wp-customize-manager.php:2416
2431 Method WP_Customize_Manager::save() has no return type specified.
🪪 missingType.return
at src/wp-includes/class-wp-customize-manager.php:2431
@@ -30211,24 +28907,6 @@
given.
🪪 argument.type
at src/wp-includes/class-wp-customize-manager.php:2509
- 2557 Cannot call method get_error_message() on array|WP_Error.
- 🪪 method.nonObject
- at src/wp-includes/class-wp-customize-manager.php:2557
- 2558 Cannot call method get_error_code() on array|WP_Error.
- 🪪 method.nonObject
- at src/wp-includes/class-wp-customize-manager.php:2558
- 2560 Cannot call method get_error_data() on array|WP_Error.
- 🪪 method.nonObject
- at src/wp-includes/class-wp-customize-manager.php:2560
- 2561 Cannot call method get_error_data() on array|WP_Error.
- 🪪 method.nonObject
- at src/wp-includes/class-wp-customize-manager.php:2561
- 2563 Cannot call method get_error_data() on array|WP_Error.
- 🪪 method.nonObject
- at src/wp-includes/class-wp-customize-manager.php:2563
- 2575 Cannot access offset 'changeset_status' on array|WP_Error.
- 🪪 offsetAccess.nonOffsetAccessible
- at src/wp-includes/class-wp-customize-manager.php:2575
2575 Cannot access property $post_status on array|WP_Post.
🪪 property.nonObject
at src/wp-includes/class-wp-customize-manager.php:2575
@@ -30258,18 +28936,6 @@
2699 Cannot access property $post_date_gmt on array|WP_Post.
🪪 property.nonObject
at src/wp-includes/class-wp-customize-manager.php:2699
- 2758 Cannot access offset (int|string) on array|WP_Error.
- 🪪 offsetAccess.nonOffsetAccessible
- at src/wp-includes/class-wp-customize-manager.php:2758
- 2844 Cannot access offset mixed on array|WP_Error.
- 🪪 offsetAccess.nonOffsetAccessible
- at src/wp-includes/class-wp-customize-manager.php:2844
- 2847 Cannot access offset mixed on array|WP_Error.
- 🪪 offsetAccess.nonOffsetAccessible
- at src/wp-includes/class-wp-customize-manager.php:2847
- 2848 Cannot access offset mixed on array|WP_Error.
- 🪪 offsetAccess.nonOffsetAccessible
- at src/wp-includes/class-wp-customize-manager.php:2848
2966 Offset 'ID' might not exist on array{post_content: string|false,
post_title?: mixed, ID: int<min, -1>|int<1, max>, post_status?: mixed
, post_date_gmt: mixed, post_date: int|string}|array{post_content:
@@ -30294,13 +28960,6 @@
array|string given.
🪪 argument.type
at src/wp-includes/class-wp-customize-manager.php:2986
- 2988 Property WP_Customize_Manager::$_changeset_post_id (int|false) does
- not accept int|WP_Error.
- 🪪 assign.propertyType
- at src/wp-includes/class-wp-customize-manager.php:2988
- 3002 Cannot call method get_error_code() on int|WP_Error.
- 🪪 method.nonObject
- at src/wp-includes/class-wp-customize-manager.php:3002
3038 Method WP_Customize_Manager::preserve_insert_changeset_post_content()
has parameter $data with no value type specified in iterable type
array.
@@ -30415,21 +29074,9 @@
has no return type specified.
🪪 missingType.return
at src/wp-includes/class-wp-customize-manager.php:3390
- 3483 Method WP_Customize_Manager::_publish_changeset_values() should
- return WP_Error|true but returns array|WP_Error.
- 🪪 return.type
- at src/wp-includes/class-wp-customize-manager.php:3483
3496 Cannot access property $post_name on array|WP_Post.
🪪 property.nonObject
at src/wp-includes/class-wp-customize-manager.php:3496
- 3498 Property WP_Customize_Manager::$_changeset_data (array|null) does not
- accept array|WP_Error.
- 🪪 assign.propertyType
- at src/wp-includes/class-wp-customize-manager.php:3498
- 3505 Argument of an invalid type array|WP_Error supplied for foreach, only
- iterables are supported.
- 🪪 foreach.nonIterable
- at src/wp-includes/class-wp-customize-manager.php:3505
3627 Cannot access property $post_name on int|WP_Post.
🪪 property.nonObject
at src/wp-includes/class-wp-customize-manager.php:3627
@@ -30740,9 +29387,6 @@
iterables are supported.
🪪 foreach.nonIterable
at src/wp-includes/class-wp-customize-nav-menus.php:113
- 122 Cannot call method get_error_code() on array|WP_Error.
- 🪪 method.nonObject
- at src/wp-includes/class-wp-customize-nav-menus.php:122
141 Method WP_Customize_Nav_Menus::load_available_items_query() return
type has no value type specified in iterable type array.
🪪 missingType.iterableValue
@@ -30784,13 +29428,8 @@
258 Cannot access property $ID on array|int|WP_Post.
🪪 property.nonObject
at src/wp-includes/class-wp-customize-nav-menus.php:258
- 279 Method WP_Customize_Nav_Menus::load_available_items_query() should
- return array|WP_Error but returns array<int|string|WP_Term>|string|WP
- _Error.
- 🪪 return.type
- at src/wp-includes/class-wp-customize-nav-menus.php:279
- 282 Argument of an invalid type array<int|string|WP_Term>|string|WP_Error
- supplied for foreach, only iterables are supported.
+ 282 Argument of an invalid type array<int|string|WP_Term>|string supplied
+ for foreach, only iterables are supported.
🪪 foreach.nonIterable
at src/wp-includes/class-wp-customize-nav-menus.php:282
283 Cannot access property $name on int|string|WP_Term.
@@ -30941,18 +29580,10 @@
array|string given.
🪪 argument.type
at src/wp-includes/class-wp-customize-nav-menus.php:984
- 988 Method WP_Customize_Nav_Menus::insert_auto_draft_post() should return
- WP_Error|WP_Post but returns int|WP_Error.
- 🪪 return.type
- at src/wp-includes/class-wp-customize-nav-menus.php:988
990 Method WP_Customize_Nav_Menus::insert_auto_draft_post() should return
WP_Error|WP_Post but returns array|WP_Post|null.
🪪 return.type
at src/wp-includes/class-wp-customize-nav-menus.php:990
- 990 Parameter #1 $post of function get_post expects int|WP_Post|null,
- int|WP_Error given.
- 🪪 argument.type
- at src/wp-includes/class-wp-customize-nav-menus.php:990
999 Method WP_Customize_Nav_Menus::ajax_insert_auto_draft_post() has no
return type specified.
🪪 missingType.return
@@ -30965,19 +29596,6 @@
array|string given.
🪪 argument.type
at src/wp-includes/class-wp-customize-nav-menus.php:1023
- 1054 Call to an undefined method WP_Error|WP_Post::get_error_message().
- 🪪 method.notFound
- at src/wp-includes/class-wp-customize-nav-menus.php:1054
- 1060 Access to an undefined property WP_Error|WP_Post::$ID.
- 🪪 property.notFound
- 💡 Learn more: https://phpstan.org/blog/solving-phpstan-access-to-und
- efined-property
- at src/wp-includes/class-wp-customize-nav-menus.php:1060
- 1061 Access to an undefined property WP_Error|WP_Post::$ID.
- 🪪 property.notFound
- 💡 Learn more: https://phpstan.org/blog/solving-phpstan-access-to-und
- efined-property
- at src/wp-includes/class-wp-customize-nav-menus.php:1061
1074 Method WP_Customize_Nav_Menus::print_templates() has no return type
specified.
🪪 missingType.return
@@ -31801,9 +30419,6 @@
int|string|null given.
🪪 argument.type
at src/wp-includes/class-wp-customize-widgets.php:1737
- 1745 Cannot call method get_error_code() on array|WP_Error.
- 🪪 method.nonObject
- at src/wp-includes/class-wp-customize-widgets.php:1745
1748 Cannot access offset 'form' on array|WP_Error.
🪪 offsetAccess.nonOffsetAccessible
at src/wp-includes/class-wp-customize-widgets.php:1748
@@ -33650,10 +32265,6 @@
accept GdImage|resource|WP_Error.
🪪 assign.propertyType
at src/wp-includes/class-wp-image-editor-gd.php:197
- 202 Method WP_Image_Editor_GD::resize() should return WP_Error|true but
- returns GdImage|resource|WP_Error.
- 🪪 return.type
- at src/wp-includes/class-wp-image-editor-gd.php:202
221 Method WP_Image_Editor_GD::_resize() has invalid return type GdImage.
🪪 class.notFound
at src/wp-includes/class-wp-image-editor-gd.php:221
@@ -33704,17 +32315,10 @@
https://phpstan.org/blog/solving-phpstan-no-value-type-specified-in-i
terable-type
at src/wp-includes/class-wp-image-editor-gd.php:308
- 332 Parameter #1 $image of method WP_Image_Editor_GD::_save() expects
- GdImage|resource, GdImage|resource|WP_Error given.
- 🪪 argument.type
- at src/wp-includes/class-wp-image-editor-gd.php:332
335 Parameter #1 $im of function imagedestroy expects resource,
- GdImage|resource|WP_Error given.
+ GdImage|resource given.
🪪 argument.type
at src/wp-includes/class-wp-image-editor-gd.php:335
- 342 Cannot access offset 'path' on array|GdImage|resource|WP_Error.
- 🪪 offsetAccess.nonOffsetAccessible
- at src/wp-includes/class-wp-image-editor-gd.php:342
388 Parameter #1 $im of function imageantialias expects resource,
GdImage|resource|false given.
🪪 argument.type
@@ -33786,12 +32390,6 @@
https://phpstan.org/blog/solving-phpstan-no-value-type-specified-in-i
terable-type
at src/wp-includes/class-wp-image-editor-gd.php:494
- 498 Cannot access offset 'path' on array|WP_Error.
- 🪪 offsetAccess.nonOffsetAccessible
- at src/wp-includes/class-wp-image-editor-gd.php:498
- 499 Cannot access offset 'mime-type' on array|WP_Error.
- 🪪 offsetAccess.nonOffsetAccessible
- at src/wp-includes/class-wp-image-editor-gd.php:499
523 Method WP_Image_Editor_GD::_save() return type has no value type
specified in iterable type array.
🪪 missingType.iterableValue
@@ -33957,9 +32555,6 @@
null.
🪪 assign.propertyType
at src/wp-includes/class-wp-image-editor-imagick.php:700
- 707 Cannot access offset 'path' on array|WP_Error|true.
- 🪪 offsetAccess.nonOffsetAccessible
- at src/wp-includes/class-wp-image-editor-imagick.php:707
866 Method WP_Image_Editor_Imagick::save() return type has no value type
specified in iterable type array.
🪪 missingType.iterableValue
@@ -33967,12 +32562,6 @@
https://phpstan.org/blog/solving-phpstan-no-value-type-specified-in-i
terable-type
at src/wp-includes/class-wp-image-editor-imagick.php:866
- 870 Cannot access offset 'path' on array|WP_Error.
- 🪪 offsetAccess.nonOffsetAccessible
- at src/wp-includes/class-wp-image-editor-imagick.php:870
- 871 Cannot access offset 'mime-type' on array|WP_Error.
- 🪪 offsetAccess.nonOffsetAccessible
- at src/wp-includes/class-wp-image-editor-imagick.php:871
874 Parameter #1 $str of function strtoupper expects string, string|false
given.
🪪 argument.type
@@ -33992,10 +32581,6 @@
given.
🪪 argument.type
at src/wp-includes/class-wp-image-editor-imagick.php:930
- 951 Method WP_Image_Editor_Imagick::_save() should return array|WP_Error
- but returns WP_Error|true.
- 🪪 return.type
- at src/wp-includes/class-wp-image-editor-imagick.php:951
967 Cannot access offset 'mode' on array{0: int, 1: int, 2: int, 3: int,
4: int, 5: int, 6: int, 7: int, ...}|false.
🪪 offsetAccess.nonOffsetAccessible
@@ -34008,26 +32593,14 @@
string, string|false given.
🪪 argument.type
at src/wp-includes/class-wp-image-editor-imagick.php:1051
- 1158 Method WP_Image_Editor_Imagick::pdf_load_source() should return
- WP_Error|true but returns string|WP_Error.
- 🪪 return.type
- at src/wp-includes/class-wp-image-editor-imagick.php:1158
1166 Parameter #2 $value of method Imagick::setOption() expects string,
true given.
🪪 argument.type
at src/wp-includes/class-wp-image-editor-imagick.php:1166
- 1172 Parameter #1 $filename of method Imagick::readImage() expects string,
- string|WP_Error given.
- 🪪 argument.type
- at src/wp-includes/class-wp-image-editor-imagick.php:1172
1175 Parameter #2 $value of method Imagick::setOption() expects string,
false given.
🪪 argument.type
at src/wp-includes/class-wp-image-editor-imagick.php:1175
- 1177 Parameter #1 $filename of method Imagick::readImage() expects string,
- string|WP_Error given.
- 🪪 argument.type
- at src/wp-includes/class-wp-image-editor-imagick.php:1177
------ -----------------------------------------------------------------------
------ -----------------------------------------------------------------------
@@ -34504,10 +33077,6 @@
WP_Navigation_Fallback::get_fallback_classic_menu() through static::.
🪪 staticClassAccess.privateMethod
at src/wp-includes/class-wp-navigation-fallback.php:141
- 151 Method WP_Navigation_Fallback::create_classic_menu_fallback() should
- return int|WP_Error but returns string|WP_Error.
- 🪪 return.type
- at src/wp-includes/class-wp-navigation-fallback.php:151
187 Unsafe call to private method
WP_Navigation_Fallback::get_nav_menu_at_primary_location() through
static::.
@@ -34822,9 +33391,6 @@
https://phpstan.org/blog/solving-phpstan-no-value-type-specified-in-i
terable-type
at src/wp-includes/class-wp-oembed.php:534
- 557 Cannot call method get_error_code() on object|false.
- 🪪 method.nonObject
- at src/wp-includes/class-wp-oembed.php:557
639 Variable $loader in isset() always exists and is not nullable.
🪪 isset.variable
at src/wp-includes/class-wp-oembed.php:639
@@ -35665,13 +34231,13 @@
at src/wp-includes/class-wp-query.php:3950
4013 Property WP_Query::$queried_object
(WP_Post|WP_Post_Type|WP_Term|WP_User|null) does not accept
- array|WP_Error|WP_Term.
+ array|WP_Term.
🪪 assign.propertyType
at src/wp-includes/class-wp-query.php:4013
- 4014 Cannot access property $term_id on array|WP_Error|WP_Term.
+ 4014 Cannot access property $term_id on array|WP_Term.
🪪 property.nonObject
at src/wp-includes/class-wp-query.php:4014
- 4016 Cannot access property $taxonomy on array|WP_Error|WP_Term.
+ 4016 Cannot access property $taxonomy on array|WP_Term.
🪪 property.nonObject
at src/wp-includes/class-wp-query.php:4016
4017 Property WP_Query::$queried_object
@@ -35925,24 +34491,10 @@
type specified.
🪪 missingType.return
at src/wp-includes/class-wp-recovery-mode-cookie-service.php:62
- 89 Method WP_Recovery_Mode_Cookie_Service::validate_cookie() should
- return WP_Error|true but returns array|WP_Error.
- 🪪 return.type
- at src/wp-includes/class-wp-recovery-mode-cookie-service.php:89
- 92 Cannot use array destructuring on array|WP_Error.
- 🪪 offsetAccess.nonArray
- at src/wp-includes/class-wp-recovery-mode-cookie-service.php:92
108 Parameter #2 $user_string of function hash_equals expects string,
string|false given.
🪪 argument.type
at src/wp-includes/class-wp-recovery-mode-cookie-service.php:108
- 137 Method WP_Recovery_Mode_Cookie_Service::get_session_id_from_cookie()
- should return string|WP_Error but returns array|WP_Error.
- 🪪 return.type
- at src/wp-includes/class-wp-recovery-mode-cookie-service.php:137
- 140 Cannot use array destructuring on array|WP_Error.
- 🪪 offsetAccess.nonArray
- at src/wp-includes/class-wp-recovery-mode-cookie-service.php:140
153 Method WP_Recovery_Mode_Cookie_Service::parse_cookie() return type
has no value type specified in iterable type array.
🪪 missingType.iterableValue
@@ -36055,18 +34607,14 @@
at src/wp-includes/class-wp-recovery-mode-key-service.php:190
------ -----------------------------------------------------------------------
- ------ -------------------------------------------------------------------
- Line wp-includes/class-wp-recovery-mode-link-service.php
- ------ -------------------------------------------------------------------
- 73 Method WP_Recovery_Mode_Link_Service::handle_begin_link() has no
- return type specified.
- 🪪 missingType.return
- at src/wp-includes/class-wp-recovery-mode-link-service.php:73
- 89 Parameter #1 $message of function wp_die expects string|WP_Error,
- WP_Error|true given.
- 🪪 argument.type
- at src/wp-includes/class-wp-recovery-mode-link-service.php:89
- ------ -------------------------------------------------------------------
+ ------ ------------------------------------------------------------------
+ Line wp-includes/class-wp-recovery-mode-link-service.php
+ ------ ------------------------------------------------------------------
+ 73 Method WP_Recovery_Mode_Link_Service::handle_begin_link() has no
+ return type specified.
+ 🪪 missingType.return
+ at src/wp-includes/class-wp-recovery-mode-link-service.php:73
+ ------ ------------------------------------------------------------------
------ -----------------------------------------------------------------------
Line wp-includes/class-wp-recovery-mode.php
@@ -36093,16 +34641,6 @@
specified.
🪪 missingType.return
at src/wp-includes/class-wp-recovery-mode.php:270
- 276 Cannot call method add_data() on WP_Error|true.
- 🪪 method.nonObject
- at src/wp-includes/class-wp-recovery-mode.php:276
- 277 Parameter #1 $message of function wp_die expects string|WP_Error,
- WP_Error|true given.
- 🪪 argument.type
- at src/wp-includes/class-wp-recovery-mode.php:277
- 284 Cannot call method add_data() on string|WP_Error.
- 🪪 method.nonObject
- at src/wp-includes/class-wp-recovery-mode.php:284
289 Property WP_Recovery_Mode::$session_id (string) does not accept
string|WP_Error.
🪪 assign.propertyType
@@ -36809,6 +35347,10 @@
https://phpstan.org/blog/solving-phpstan-no-value-type-specified-in-i
terable-type
at src/wp-includes/class-wp-tax-query.php:384
+ 397 Call to function is_wp_error() with array will always evaluate to
+ false.
+ 🪪 function.impossibleType
+ at src/wp-includes/class-wp-tax-query.php:397
505 Method WP_Tax_Query::find_compatible_table_alias() has parameter
$clause with no value type specified in iterable type array.
🪪 missingType.iterableValue
@@ -36847,6 +35389,10 @@
🪪 parameterByRef.type
💡 You can change the parameter out type with @param-out PHPDoc tag.
at src/wp-includes/class-wp-tax-query.php:556
+ 569 Call to function is_wp_error() with array will always evaluate to
+ false.
+ 🪪 function.impossibleType
+ at src/wp-includes/class-wp-tax-query.php:569
575 Parameter #2 ...$args of function array_merge expects array,
array|WP_Error given.
🪪 argument.type
@@ -36861,12 +35407,6 @@
https://phpstan.org/blog/solving-phpstan-no-value-type-specified-in-i
terable-type
at src/wp-includes/class-wp-tax-query.php:596
- 647 Parameter &$query by-ref type of method
- WP_Tax_Query::transform_query() expects array, array<int|string|WP_Te
- rm>|string given.
- 🪪 parameterByRef.type
- 💡 You can change the parameter out type with @param-out PHPDoc tag.
- at src/wp-includes/class-wp-tax-query.php:647
651 Parameter #1 $var of function count expects array|Countable, array<in
t|string|WP_Term>|string given.
🪪 argument.type
@@ -37329,10 +35869,6 @@
https://phpstan.org/blog/solving-phpstan-no-value-type-specified-in-i
terable-type
at src/wp-includes/class-wp-theme-json-resolver.php:478
- 524 Parameter #1 $post of function get_post expects int|WP_Post|null,
- int|WP_Error given.
- 🪪 argument.type
- at src/wp-includes/class-wp-theme-json-resolver.php:524
735 Method WP_Theme_JSON_Resolver::clean_cached_data() has no return type
specified.
🪪 missingType.return
@@ -39649,15 +38185,6 @@
specified.
🪪 missingType.return
at src/wp-includes/class-wp-xmlrpc-server.php:245
- 327 Access to an undefined property WP_Error|WP_User::$ID.
- 🪪 property.notFound
- 💡 Learn more: https://phpstan.org/blog/solving-phpstan-access-to-und
- efined-property
- at src/wp-includes/class-wp-xmlrpc-server.php:327
- 328 Method wp_xmlrpc_server::login() should return WP_User|false but
- returns WP_Error|WP_User.
- 🪪 return.type
- at src/wp-includes/class-wp-xmlrpc-server.php:328
359 Method wp_xmlrpc_server::escape() has parameter $data with no value
type specified in iterable type array.
🪪 missingType.iterableValue
@@ -39952,24 +38479,9 @@
1655 Cannot access property $cap on string|WP_Taxonomy.
🪪 property.nonObject
at src/wp-includes/class-wp-xmlrpc-server.php:1655
- 1662 Cannot call method get_error_message() on array|WP_Error.
- 🪪 method.nonObject
- at src/wp-includes/class-wp-xmlrpc-server.php:1662
- 1665 Cannot access offset 'term_id' on array|WP_Error.
- 🪪 offsetAccess.nonOffsetAccessible
- at src/wp-includes/class-wp-xmlrpc-server.php:1665
1667 Cannot access property $term_id on array|WP_Term.
🪪 property.nonObject
at src/wp-includes/class-wp-xmlrpc-server.php:1667
- 1681 Cannot call method get_error_message() on array|WP_Error|false.
- 🪪 method.nonObject
- at src/wp-includes/class-wp-xmlrpc-server.php:1681
- 1713 Cannot call method get_error_message() on int|WP_Error.
- 🪪 method.nonObject
- at src/wp-includes/class-wp-xmlrpc-server.php:1713
- 1724 Cannot cast int<min, -1>|int<1, max>|WP_Error to string.
- 🪪 cast.string
- at src/wp-includes/class-wp-xmlrpc-server.php:1724
1746 Method wp_xmlrpc_server::wp_editPost() has parameter $args with no
value type specified in iterable type array.
🪪 missingType.iterableValue
@@ -40041,23 +38553,11 @@
...}.
🪪 offsetAccess.notFound
at src/wp-includes/class-wp-xmlrpc-server.php:2131
- 2139 Cannot call method get_error_message() on array|WP_Error|WP_Term.
- 🪪 method.nonObject
- at src/wp-includes/class-wp-xmlrpc-server.php:2139
2157 Offset 'name' might not exist on array{false}|array{name: string,
label: string, labels: stdClass, description: string, public: bool,
publicly_queryable: bool, hierarchical: bool, show_ui: bool, ...}.
🪪 offsetAccess.notFound
at src/wp-includes/class-wp-xmlrpc-server.php:2157
- 2160 Cannot call method get_error_message() on array|WP_Error.
- 🪪 method.nonObject
- at src/wp-includes/class-wp-xmlrpc-server.php:2160
- 2169 Cannot access offset 'term_id' on non-empty-array|WP_Error.
- 🪪 offsetAccess.nonOffsetAccessible
- at src/wp-includes/class-wp-xmlrpc-server.php:2169
- 2172 Cannot access offset 'term_id' on non-empty-array|WP_Error.
- 🪪 offsetAccess.nonOffsetAccessible
- at src/wp-includes/class-wp-xmlrpc-server.php:2172
2172 Method wp_xmlrpc_server::wp_newTerm() should return int|IXR_Error but
returns string.
🪪 return.type
@@ -40069,26 +38569,17 @@
https://phpstan.org/blog/solving-phpstan-no-value-type-specified-in-i
terable-type
at src/wp-includes/class-wp-xmlrpc-server.php:2195
- 2229 Cannot call method get_error_message() on array|WP_Error|WP_Term.
- 🪪 method.nonObject
- at src/wp-includes/class-wp-xmlrpc-server.php:2229
2249 Offset 'hierarchical' might not exist on array{false}|array{name:
string, label: string, labels: stdClass, description: string, public:
bool, publicly_queryable: bool, hierarchical: bool, show_ui: bool,
...}.
🪪 offsetAccess.notFound
at src/wp-includes/class-wp-xmlrpc-server.php:2249
- 2257 Cannot call method get_error_message() on array|WP_Error|WP_Term.
- 🪪 method.nonObject
- at src/wp-includes/class-wp-xmlrpc-server.php:2257
2275 Offset 'name' might not exist on array{false}|array{name: string,
label: string, labels: stdClass, description: string, public: bool,
publicly_queryable: bool, hierarchical: bool, show_ui: bool, ...}.
🪪 offsetAccess.notFound
at src/wp-includes/class-wp-xmlrpc-server.php:2275
- 2278 Cannot call method get_error_message() on array|WP_Error.
- 🪪 method.nonObject
- at src/wp-includes/class-wp-xmlrpc-server.php:2278
2311 Method wp_xmlrpc_server::wp_deleteTerm() has parameter $args with no
value type specified in iterable type array.
🪪 missingType.iterableValue
@@ -40099,17 +38590,11 @@
2336 Cannot access property $name on WP_Taxonomy|false.
🪪 property.nonObject
at src/wp-includes/class-wp-xmlrpc-server.php:2336
- 2339 Cannot call method get_error_message() on array|WP_Error|WP_Term.
- 🪪 method.nonObject
- at src/wp-includes/class-wp-xmlrpc-server.php:2339
2350 Cannot access property $name on WP_Taxonomy|false.
🪪 property.nonObject
at src/wp-includes/class-wp-xmlrpc-server.php:2350
- 2353 Cannot call method get_error_message() on bool|int|WP_Error.
- 🪪 method.nonObject
- at src/wp-includes/class-wp-xmlrpc-server.php:2353
2360 Method wp_xmlrpc_server::wp_deleteTerm() should return IXR_Error|true
- but returns int<min, -1>|int<1, max>|WP_Error|true.
+ but returns int<min, -1>|int<1, max>|true.
🪪 return.type
at src/wp-includes/class-wp-xmlrpc-server.php:2360
2390 Method wp_xmlrpc_server::wp_getTerm() has parameter $args with no
@@ -40129,9 +38614,6 @@
2416 Cannot access property $name on WP_Taxonomy|false.
🪪 property.nonObject
at src/wp-includes/class-wp-xmlrpc-server.php:2416
- 2419 Cannot call method get_error_message() on array|WP_Error|WP_Term.
- 🪪 method.nonObject
- at src/wp-includes/class-wp-xmlrpc-server.php:2419
2455 Method wp_xmlrpc_server::wp_getTerms() has parameter $args with no
value type specified in iterable type array.
🪪 missingType.iterableValue
@@ -40152,12 +38634,8 @@
2485 Cannot access property $name on WP_Taxonomy|false.
🪪 property.nonObject
at src/wp-includes/class-wp-xmlrpc-server.php:2485
- 2516 Cannot call method get_error_message() on array<int|string|WP_Term>|s
- tring|WP_Error.
- 🪪 method.nonObject
- at src/wp-includes/class-wp-xmlrpc-server.php:2516
- 2521 Argument of an invalid type array<int|string|WP_Term>|string|WP_Error
- supplied for foreach, only iterables are supported.
+ 2521 Argument of an invalid type array<int|string|WP_Term>|string supplied
+ for foreach, only iterables are supported.
🪪 foreach.nonIterable
at src/wp-includes/class-wp-xmlrpc-server.php:2521
2522 Parameter #1 $term of method wp_xmlrpc_server::_prepare_term()
@@ -40261,9 +38739,6 @@
https://phpstan.org/blog/solving-phpstan-no-value-type-specified-in-i
terable-type
at src/wp-includes/class-wp-xmlrpc-server.php:2900
- 2959 Cannot call method get_error_message() on int|WP_Error.
- 🪪 method.nonObject
- at src/wp-includes/class-wp-xmlrpc-server.php:2959
2984 Method wp_xmlrpc_server::wp_getPage() has parameter $args with no
value type specified in iterable type array.
🪪 missingType.iterableValue
@@ -40396,16 +38871,6 @@
https://phpstan.org/blog/solving-phpstan-no-value-type-specified-in-i
terable-type
at src/wp-includes/class-wp-xmlrpc-server.php:3415
- 3465 Cannot call method get_error_code() on int|WP_Error.
- 🪪 method.nonObject
- at src/wp-includes/class-wp-xmlrpc-server.php:3465
- 3466 Cannot call method get_error_data() on int|WP_Error.
- 🪪 method.nonObject
- at src/wp-includes/class-wp-xmlrpc-server.php:3466
- 3484 Method wp_xmlrpc_server::wp_newCategory() should return int|IXR_Error
- but returns int<min, -1>|int<1, max>|WP_Error.
- 🪪 return.type
- at src/wp-includes/class-wp-xmlrpc-server.php:3484
3502 Method wp_xmlrpc_server::wp_deleteCategory() has parameter $args with
no value type specified in iterable type array.
🪪 missingType.iterableValue
@@ -40481,9 +38946,6 @@
https://phpstan.org/blog/solving-phpstan-no-value-type-specified-in-i
terable-type
at src/wp-includes/class-wp-xmlrpc-server.php:3811
- 3876 Cannot call method get_error_message() on int|WP_Error|false.
- 🪪 method.nonObject
- at src/wp-includes/class-wp-xmlrpc-server.php:3876
3912 Method wp_xmlrpc_server::wp_newComment() has parameter $args with no
value type specified in iterable type array.
🪪 missingType.iterableValue
@@ -40491,13 +38953,6 @@
https://phpstan.org/blog/solving-phpstan-no-value-type-specified-in-i
terable-type
at src/wp-includes/class-wp-xmlrpc-server.php:3912
- 4031 Cannot call method get_error_message() on int|WP_Error|false.
- 🪪 method.nonObject
- at src/wp-includes/class-wp-xmlrpc-server.php:4031
- 4048 Method wp_xmlrpc_server::wp_newComment() should return int|IXR_Error
- but returns int<min, -1>|int<1, max>|WP_Error.
- 🪪 return.type
- at src/wp-includes/class-wp-xmlrpc-server.php:4048
4065 Method wp_xmlrpc_server::wp_getCommentStatusList() has parameter
$args with no value type specified in iterable type array.
🪪 missingType.iterableValue
@@ -40883,17 +39338,6 @@
https://phpstan.org/blog/solving-phpstan-no-value-type-specified-in-i
terable-type
at src/wp-includes/class-wp-xmlrpc-server.php:5126
- 5170 Cannot call method get_error_message() on int|WP_Error.
- 🪪 method.nonObject
- at src/wp-includes/class-wp-xmlrpc-server.php:5170
- 5177 Parameter #1 $post_id of method wp_xmlrpc_server::attach_uploads()
- expects int, int<min, -1>|int<1, max>|WP_Error given.
- 🪪 argument.type
- at src/wp-includes/class-wp-xmlrpc-server.php:5177
- 5189 Method wp_xmlrpc_server::blogger_newPost() should return
- int|IXR_Error but returns int<min, -1>|int<1, max>|WP_Error.
- 🪪 return.type
- at src/wp-includes/class-wp-xmlrpc-server.php:5189
5209 Method wp_xmlrpc_server::blogger_editPost() has parameter $args with
no value type specified in iterable type array.
🪪 missingType.iterableValue
@@ -40936,11 +39380,9 @@
https://phpstan.org/blog/solving-phpstan-no-value-type-specified-in-i
terable-type
at src/wp-includes/class-wp-xmlrpc-server.php:5373
- 5680 Cannot call method get_error_message() on int|WP_Error.
- 🪪 method.nonObject
- at src/wp-includes/class-wp-xmlrpc-server.php:5680
- 5697 Cannot cast int<min, -1>|int<1, max>|WP_Error to string.
- 🪪 cast.string
+ 5697 Method wp_xmlrpc_server::mw_newPost() should return int|IXR_Error but
+ returns string.
+ 🪪 return.type
at src/wp-includes/class-wp-xmlrpc-server.php:5697
5708 Method wp_xmlrpc_server::add_enclosure_if_new() has no return type
specified.
@@ -41014,9 +39456,6 @@
6017 Offset 'post_date_gmt' might not exist on array|string.
🪪 offsetAccess.notFound
at src/wp-includes/class-wp-xmlrpc-server.php:6017
- 6048 Cannot call method get_error_message() on int|WP_Error.
- 🪪 method.nonObject
- at src/wp-includes/class-wp-xmlrpc-server.php:6048
6121 Method wp_xmlrpc_server::mw_getPost() has parameter $args with no
value type specified in iterable type array.
🪪 missingType.iterableValue
@@ -41253,9 +39692,6 @@
tring>|string given.
🪪 argument.type
at src/wp-includes/class-wp-xmlrpc-server.php:7078
- 7143 Cannot call method get_error_message() on int|WP_Error|false.
- 🪪 method.nonObject
- at src/wp-includes/class-wp-xmlrpc-server.php:7143
7156 Parameter #3 ...$values of function sprintf expects
bool|float|int|string|null, array<string>|string given.
🪪 argument.type
@@ -41743,10 +40179,6 @@
https://phpstan.org/blog/solving-phpstan-no-value-type-specified-in-i
terable-type
at src/wp-includes/class-wpdb.php:3374
- 3387 Method wpdb::get_col_length() should return array|WP_Error|false but
- returns string|WP_Error.
- 🪪 return.type
- at src/wp-includes/class-wpdb.php:3387
3553 Method wpdb::strip_invalid_text() has parameter $data with no value
type specified in iterable type array.
🪪 missingType.iterableValue
@@ -41768,20 +40200,6 @@
3688 Cannot access offset non-falsy-string on non-empty-array|object.
🪪 offsetAccess.nonOffsetAccessible
at src/wp-includes/class-wpdb.php:3688
- 3736 Method wpdb::strip_invalid_text_from_query() should return
- string|WP_Error but returns array|WP_Error.
- 🪪 return.type
- at src/wp-includes/class-wpdb.php:3736
- 3739 Cannot access offset 0 on array|WP_Error.
- 🪪 offsetAccess.nonOffsetAccessible
- at src/wp-includes/class-wpdb.php:3739
- 3776 Method wpdb::strip_invalid_text_for_column() should return
- string|WP_Error but returns array|WP_Error.
- 🪪 return.type
- at src/wp-includes/class-wpdb.php:3776
- 3779 Cannot access offset string on array|WP_Error.
- 🪪 offsetAccess.nonOffsetAccessible
- at src/wp-includes/class-wpdb.php:3779
3865 Method wpdb::load_col_info() has no return type specified.
🪪 missingType.return
at src/wp-includes/class-wpdb.php:3865
@@ -41813,17 +40231,6 @@
------ ---------------------------------------------------------------
------ -----------------------------------------------------------------------
- Line wp-includes/collaboration/class-wp-http-polling-sync-server.php
- ------ -----------------------------------------------------------------------
- 245 Method WP_HTTP_Polling_Sync_Server::handle_request() should return
- WP_Error|WP_REST_Response but returns WP_Error|true.
- 🪪 return.type
- at
- src/wp-includes/collaboration/class-wp-http-polling-sync-server.php:2
- 45
- ------ -----------------------------------------------------------------------
-
- ------ -----------------------------------------------------------------------
Line wp-includes/comment-template.php
------ -----------------------------------------------------------------------
36 Parameter #1 $user_id of function get_userdata expects int, string
@@ -42660,18 +41067,6 @@
https://phpstan.org/blog/solving-phpstan-no-value-type-specified-in-i
terable-type
at src/wp-includes/comment.php:2314
- 2385 Function wp_new_comment() should return int|WP_Error|false but
- returns int|string|WP_Error.
- 🪪 return.type
- at src/wp-includes/comment.php:2385
- 2396 Function wp_new_comment() should return int|WP_Error|false but
- returns int|string|WP_Error.
- 🪪 return.type
- at src/wp-includes/comment.php:2396
- 2414 Function wp_new_comment() should return int|WP_Error|false but
- returns int|string|WP_Error.
- 🪪 return.type
- at src/wp-includes/comment.php:2414
2450 Cannot access property $comment_approved on array|WP_Comment.
🪪 property.nonObject
at src/wp-includes/comment.php:2450
@@ -42887,26 +41282,14 @@
string, string|false given.
🪪 argument.type
at src/wp-includes/comment.php:3671
- 3806 Function wp_handle_comment_submission() should return
- WP_Comment|WP_Error but returns WP_Error|true.
- 🪪 return.type
- at src/wp-includes/comment.php:3806
3809 Parameter #1 $commentdata of function wp_new_comment expects array,
array|string given.
🪪 argument.type
at src/wp-includes/comment.php:3809
- 3811 Function wp_handle_comment_submission() should return
- WP_Comment|WP_Error but returns int|WP_Error|false.
- 🪪 return.type
- at src/wp-includes/comment.php:3811
3818 Function wp_handle_comment_submission() should return
WP_Comment|WP_Error but returns array|WP_Comment|null.
🪪 return.type
at src/wp-includes/comment.php:3818
- 3818 Parameter #1 $comment of function get_comment expects
- int|string|WP_Comment|null, int<min, -1>|int<1, max>|WP_Error given.
- 🪪 argument.type
- at src/wp-includes/comment.php:3818
3829 Function wp_register_comment_personal_data_exporter() has parameter
$exporters with no value type specified in iterable type array.
🪪 missingType.iterableValue
@@ -43152,14 +41535,6 @@
https://phpstan.org/blog/solving-phpstan-no-value-type-specified-in-i
terable-type
at src/wp-includes/cron.php:576
- 651 Parameter #2 $callback of function array_walk expects
- callable(bool|WP_Error, int<0, max>): mixed, array{WP_Error,
- 'merge_from'} given.
- 🪪 argument.type
- 💡 Type WP_Error of parameter #1 $error of passed callable needs to
- be same or wider than parameter type bool|WP_Error of accepting
- callable.
- at src/wp-includes/cron.php:651
778 Function wp_get_scheduled_event() has parameter $args with no value
type specified in iterable type array.
🪪 missingType.iterableValue
@@ -43382,13 +41757,6 @@
at
src/wp-includes/customize/class-wp-customize-custom-css-setting.php:6
5
- 274 Access to an undefined property WP_Error|WP_Post::$ID.
- 🪪 property.notFound
- 💡 Learn more: https://phpstan.org/blog/solving-phpstan-access-to-und
- efined-property
- at
- src/wp-includes/customize/class-wp-customize-custom-css-setting.php:2
- 74
------ -----------------------------------------------------------------------
------ -----------------------------------------------------------------------
@@ -43931,13 +42299,6 @@
at
src/wp-includes/customize/class-wp-customize-nav-menu-item-setting.ph
p:643
- 644 Access to an undefined property WP_Post::$url.
- 🪪 property.notFound
- 💡 Learn more: https://phpstan.org/blog/solving-phpstan-access-to-und
- efined-property
- at
- src/wp-includes/customize/class-wp-customize-nav-menu-item-setting.ph
- p:644
648 Access to an undefined property WP_Post::$attr_title.
🪪 property.notFound
💡 Learn more: https://phpstan.org/blog/solving-phpstan-access-to-und
@@ -44005,18 +42366,6 @@
at
src/wp-includes/customize/class-wp-customize-nav-menu-item-setting.ph
p:874
- 879 Property WP_Customize_Nav_Menu_Item_Setting::$update_error (WP_Error)
- does not accept int|WP_Error.
- 🪪 assign.propertyType
- at
- src/wp-includes/customize/class-wp-customize-nav-menu-item-setting.ph
- p:879
- 883 Property WP_Customize_Nav_Menu_Item_Setting::$post_id (int) does not
- accept int|WP_Error.
- 🪪 assign.propertyType
- at
- src/wp-includes/customize/class-wp-customize-nav-menu-item-setting.ph
- p:883
904 Method
WP_Customize_Nav_Menu_Item_Setting::amend_customize_save_response()
has parameter $data with no value type specified in iterable type
@@ -44208,41 +42557,16 @@
terable-type
at
src/wp-includes/customize/class-wp-customize-nav-menu-setting.php:484
- 505 Property WP_Customize_Nav_Menu_Setting::$update_error (WP_Error) does
- not accept bool|WP_Error.
- 🪪 assign.propertyType
- at
- src/wp-includes/customize/class-wp-customize-nav-menu-setting.php:505
517 Parameter #2 $menu_data of function wp_update_nav_menu_object expects
array, array|string given.
🪪 argument.type
at
src/wp-includes/customize/class-wp-customize-nav-menu-setting.php:517
- 520 Cannot call method get_error_code() on int|WP_Error.
- 🪪 method.nonObject
- at
- src/wp-includes/customize/class-wp-customize-nav-menu-setting.php:520
524 Parameter #2 $menu_data of function wp_update_nav_menu_object expects
array, array|string given.
🪪 argument.type
at
src/wp-includes/customize/class-wp-customize-nav-menu-setting.php:524
- 529 Property WP_Customize_Nav_Menu_Setting::$update_error (WP_Error) does
- not accept int|WP_Error.
- 🪪 assign.propertyType
- at
- src/wp-includes/customize/class-wp-customize-nav-menu-setting.php:529
- 533 Property WP_Customize_Nav_Menu_Setting::$term_id (int) does not
- accept int|WP_Error.
- 🪪 assign.propertyType
- at
- src/wp-includes/customize/class-wp-customize-nav-menu-setting.php:533
- 546 Parameter #2 $menu_id of method
- WP_Customize_Nav_Menu_Setting::filter_nav_menu_options_value()
- expects int, int|WP_Error given.
- 🪪 argument.type
- at
- src/wp-includes/customize/class-wp-customize-nav-menu-setting.php:546
603 Method WP_Customize_Nav_Menu_Setting::filter_nav_menu_options_value()
has parameter $nav_menu_options with no value type specified in
iterable type array.
@@ -45328,9 +43652,6 @@
134 Cannot access offset 'name' on array|WP_Error|null.
🪪 offsetAccess.nonOffsetAccessible
at src/wp-includes/fonts/class-wp-font-collection.php:134
- 135 Cannot access offset 'font_families' on array|WP_Error.
- 🪪 offsetAccess.nonOffsetAccessible
- at src/wp-includes/fonts/class-wp-font-collection.php:135
138 Cannot access offset 'description' on array|WP_Error.
🪪 offsetAccess.nonOffsetAccessible
at src/wp-includes/fonts/class-wp-font-collection.php:138
@@ -48095,9 +46416,6 @@
https://phpstan.org/blog/solving-phpstan-no-value-type-specified-in-i
terable-type
at src/wp-includes/http.php:246
- 247 Cannot access offset 'headers' on array|WP_Error.
- 🪪 offsetAccess.nonOffsetAccessible
- at src/wp-includes/http.php:247
264 Function wp_remote_retrieve_header() has parameter $response with no
value type specified in iterable type array.
🪪 missingType.iterableValue
@@ -48112,9 +46430,6 @@
https://phpstan.org/blog/solving-phpstan-no-value-type-specified-in-i
terable-type
at src/wp-includes/http.php:264
- 265 Cannot access offset 'headers' on array|WP_Error.
- 🪪 offsetAccess.nonOffsetAccessible
- at src/wp-includes/http.php:265
282 Function wp_remote_retrieve_response_code() has parameter $response
with no value type specified in iterable type array.
🪪 missingType.iterableValue
@@ -48122,9 +46437,6 @@
https://phpstan.org/blog/solving-phpstan-no-value-type-specified-in-i
terable-type
at src/wp-includes/http.php:282
- 283 Cannot access offset 'response' on array|WP_Error.
- 🪪 offsetAccess.nonOffsetAccessible
- at src/wp-includes/http.php:283
300 Function wp_remote_retrieve_response_message() has parameter
$response with no value type specified in iterable type array.
🪪 missingType.iterableValue
@@ -48132,9 +46444,6 @@
https://phpstan.org/blog/solving-phpstan-no-value-type-specified-in-i
terable-type
at src/wp-includes/http.php:300
- 301 Cannot access offset 'response' on array|WP_Error.
- 🪪 offsetAccess.nonOffsetAccessible
- at src/wp-includes/http.php:301
316 Function wp_remote_retrieve_body() has parameter $response with no
value type specified in iterable type array.
🪪 missingType.iterableValue
@@ -48142,9 +46451,6 @@
https://phpstan.org/blog/solving-phpstan-no-value-type-specified-in-i
terable-type
at src/wp-includes/http.php:316
- 317 Cannot access offset 'body' on array|WP_Error.
- 🪪 offsetAccess.nonOffsetAccessible
- at src/wp-includes/http.php:317
333 Function wp_remote_retrieve_cookies() has parameter $response with no
value type specified in iterable type array.
🪪 missingType.iterableValue
@@ -48152,9 +46458,6 @@
https://phpstan.org/blog/solving-phpstan-no-value-type-specified-in-i
terable-type
at src/wp-includes/http.php:333
- 334 Cannot access offset 'cookies' on array|WP_Error.
- 🪪 offsetAccess.nonOffsetAccessible
- at src/wp-includes/http.php:334
351 Function wp_remote_retrieve_cookie() has parameter $response with no
value type specified in iterable type array.
🪪 missingType.iterableValue
@@ -49051,7 +47354,7 @@
249 Cannot access property $parent on array|WP_Error|WP_Term.
🪪 property.nonObject
at src/wp-includes/link-template.php:249
- 259 Cannot access property $slug on array|WP_Error|WP_Term.
+ 259 Cannot access property $slug on array|WP_Term.
🪪 property.nonObject
at src/wp-includes/link-template.php:259
266 Parameter #1 $user_id of function get_userdata expects int, string
@@ -49237,26 +47540,26 @@
string|false.
🪪 return.type
at src/wp-includes/link-template.php:918
- 946 Cannot access property $taxonomy on array|WP_Error|WP_Term.
+ 946 Cannot access property $taxonomy on array|WP_Term.
🪪 property.nonObject
at src/wp-includes/link-template.php:946
- 956 Cannot access property $term_id on array|WP_Error|WP_Term.
+ 956 Cannot access property $term_id on array|WP_Term.
🪪 property.nonObject
at src/wp-includes/link-template.php:956
- 958 Cannot access property $slug on array|WP_Error|WP_Term.
+ 958 Cannot access property $slug on array|WP_Term.
🪪 property.nonObject
at src/wp-includes/link-template.php:958
961 Cannot access property $query_var on WP_Taxonomy|false.
🪪 property.nonObject
at src/wp-includes/link-template.php:961
- 961 Cannot access property $slug on array|WP_Error|WP_Term.
+ 961 Cannot access property $slug on array|WP_Term.
🪪 property.nonObject
at src/wp-includes/link-template.php:961
- 964 Cannot access property $taxonomy on array|WP_Error|WP_Term.
+ 964 Cannot access property $taxonomy on array|WP_Term.
🪪 property.nonObject
at src/wp-includes/link-template.php:964
964 Parameter #1 $term of function get_term_link expects
- int|string|WP_Term, array|WP_Error|WP_Term given.
+ int|string|WP_Term, array|WP_Term given.
🪪 argument.type
at src/wp-includes/link-template.php:964
971 Parameter #1 $value of function trailingslashit expects string,
@@ -49270,10 +47573,10 @@
1055 Function edit_tag_link() has no return type specified.
🪪 missingType.return
at src/wp-includes/link-template.php:1055
- 1088 Cannot access property $taxonomy on array|WP_Error|WP_Term.
+ 1088 Cannot access property $taxonomy on array|WP_Term.
🪪 property.nonObject
at src/wp-includes/link-template.php:1088
- 1089 Cannot access property $term_id on array|WP_Error|WP_Term.
+ 1089 Cannot access property $term_id on array|WP_Term.
🪪 property.nonObject
at src/wp-includes/link-template.php:1089
1147 Cannot access property $taxonomy on
@@ -49414,7 +47717,7 @@
🪪 property.nonObject
at src/wp-includes/link-template.php:1890
1896 Parameter #1 $arr1 of function array_diff expects array, array<int|st
- ring|WP_Term>|string|WP_Error given.
+ ring|WP_Term>|string given.
🪪 argument.type
at src/wp-includes/link-template.php:1896
1916 Cannot access property $post_type on array|WP_Post.
@@ -49852,22 +48155,22 @@
1789 Right side of && is always true.
🪪 booleanAnd.rightAlwaysTrue
at src/wp-includes/load.php:1789
- 1844 Function wp_start_scraping_edited_file_errors() has no return type
+ 1846 Function wp_start_scraping_edited_file_errors() has no return type
specified.
🪪 missingType.return
- at src/wp-includes/load.php:1844
- 1849 Parameter #1 $key of function sanitize_key expects string,
+ at src/wp-includes/load.php:1846
+ 1851 Parameter #1 $key of function sanitize_key expects string,
array|string given.
🪪 argument.type
- at src/wp-includes/load.php:1849
- 1890 Function wp_finalize_scraping_edited_file_errors() has no return type
+ at src/wp-includes/load.php:1851
+ 1892 Function wp_finalize_scraping_edited_file_errors() has no return type
specified.
🪪 missingType.return
- at src/wp-includes/load.php:1890
- 1898 Parameter #3 $subject of function str_replace expects array<string>|s
+ at src/wp-includes/load.php:1892
+ 1900 Parameter #3 $subject of function str_replace expects array<string>|s
tring, array<string, int|string> given.
🪪 argument.type
- at src/wp-includes/load.php:1898
+ at src/wp-includes/load.php:1900
------ -----------------------------------------------------------------------
------ -----------------------------------------------------------------------
@@ -49988,19 +48291,6 @@
https://phpstan.org/blog/solving-phpstan-no-value-type-specified-in-i
terable-type
at src/wp-includes/media.php:697
- 701 Call to an undefined method WP_Error|WP_Image_Editor::resize().
- 🪪 method.notFound
- at src/wp-includes/media.php:701
- 705 Call to an undefined method WP_Error|WP_Image_Editor::save().
- 🪪 method.notFound
- at src/wp-includes/media.php:705
- 708 Cannot access offset 'path' on non-empty-array|WP_Error.
- 🪪 offsetAccess.nonOffsetAccessible
- at src/wp-includes/media.php:708
- 709 Function image_make_intermediate_size() should return array|false but
- returns array<mixed, mixed>|WP_Error.
- 🪪 return.type
- at src/wp-includes/media.php:709
780 Function image_get_intermediate_size() return type has no value type
specified in iterable type array.
🪪 missingType.iterableValue
@@ -51225,16 +49515,6 @@
💡 Learn more: https://phpstan.org/blog/solving-phpstan-access-to-und
efined-property
at src/wp-includes/ms-functions.php:1262
- 1271 Cannot call method get_error_code() on int|WP_Error.
- 🪪 method.nonObject
- at src/wp-includes/ms-functions.php:1271
- 1272 Cannot call method add_data() on int|WP_Error.
- 🪪 method.nonObject
- at src/wp-includes/ms-functions.php:1272
- 1282 Function wpmu_activate_signup() should return array|WP_Error but
- returns int|WP_Error.
- 🪪 return.type
- at src/wp-includes/ms-functions.php:1282
1305 Access to an undefined property object::$title.
🪪 property.notFound
💡 Learn more: https://phpstan.org/blog/solving-phpstan-access-to-und
@@ -51249,18 +49529,6 @@
specified.
🪪 missingType.return
at src/wp-includes/ms-functions.php:1327
- 1362 Parameter #1 $user_id of function delete_user_option expects int,
- int|WP_Error given.
- 🪪 argument.type
- at src/wp-includes/ms-functions.php:1362
- 1363 Parameter #1 $user_id of function delete_user_option expects int,
- int|WP_Error given.
- 🪪 argument.type
- at src/wp-includes/ms-functions.php:1363
- 1374 Function wpmu_create_user() should return int|false but returns
- int|WP_Error.
- 🪪 return.type
- at src/wp-includes/ms-functions.php:1374
1404 Function wpmu_create_blog() has parameter $options with no value type
specified in iterable type array.
🪪 missingType.iterableValue
@@ -51600,10 +49868,6 @@
https://phpstan.org/blog/solving-phpstan-no-value-type-specified-in-i
terable-type
at src/wp-includes/ms-site.php:44
- 65 Function wp_insert_site() should return int|WP_Error but returns
- array|WP_Error.
- 🪪 return.type
- at src/wp-includes/ms-site.php:65
159 Function wp_update_site() has parameter $data with no value type
specified in iterable type array.
🪪 missingType.iterableValue
@@ -51611,10 +49875,6 @@
https://phpstan.org/blog/solving-phpstan-no-value-type-specified-in-i
terable-type
at src/wp-includes/ms-site.php:159
- 178 Function wp_update_site() should return int|WP_Error but returns
- array|WP_Error.
- 🪪 return.type
- at src/wp-includes/ms-site.php:178
353 Function _prime_site_caches() has no return type specified.
🪪 missingType.return
at src/wp-includes/ms-site.php:353
@@ -51907,29 +50167,12 @@
https://phpstan.org/blog/solving-phpstan-no-value-type-specified-in-i
terable-type
at src/wp-includes/nav-menu.php:312
- 361 Function wp_update_nav_menu_object() should return int|WP_Error but
- returns array|WP_Error.
- 🪪 return.type
- at src/wp-includes/nav-menu.php:361
- 372 Cannot access offset 'term_id' on array|WP_Error.
- 🪪 offsetAccess.nonOffsetAccessible
- at src/wp-includes/nav-menu.php:372
- 374 Cannot access offset 'term_id' on array|WP_Error.
- 🪪 offsetAccess.nonOffsetAccessible
- at src/wp-includes/nav-menu.php:374
377 Negated boolean expression is always false.
🪪 booleanNot.alwaysFalse
at src/wp-includes/nav-menu.php:377
377 Property WP_Term::$term_id (int) in isset() is not nullable.
🪪 isset.property
at src/wp-includes/nav-menu.php:377
- 386 Function wp_update_nav_menu_object() should return int|WP_Error but
- returns array|WP_Error.
- 🪪 return.type
- at src/wp-includes/nav-menu.php:386
- 389 Cannot access offset 'term_id' on array|WP_Error.
- 🪪 offsetAccess.nonOffsetAccessible
- at src/wp-includes/nav-menu.php:389
418 Function wp_update_nav_menu_item() has parameter $menu_item_data with
no value type specified in iterable type array.
🪪 missingType.iterableValue
@@ -51937,35 +50180,16 @@
https://phpstan.org/blog/solving-phpstan-no-value-type-specified-in-i
terable-type
at src/wp-includes/nav-menu.php:418
- 434 Function wp_update_nav_menu_item() should return int|WP_Error but
- returns WP_Term|false.
- 🪪 return.type
- at src/wp-includes/nav-menu.php:434
463 Strict comparison using !== between 0 and int<min, -1>|int<1, max> wi
ll always evaluate to true.
🪪 notIdentical.alwaysTrue
at src/wp-includes/nav-menu.php:463
569 Cannot access property $term_id on WP_Term|false.
🪪 property.nonObject
- at src/wp-includes/nav-menu.php:569
- 569 Parameter #1 $object_id of function is_object_in_term expects int,
- int<min, -1>|int<1, max>|WP_Error given.
- 🪪 argument.type
at src/wp-includes/nav-menu.php:569
570 Cannot access property $term_id on WP_Term|false.
🪪 property.nonObject
at src/wp-includes/nav-menu.php:570
- 570 Parameter #1 $object_id of function wp_set_object_terms expects int,
- int<min, -1>|int<1, max>|WP_Error given.
- 🪪 argument.type
- at src/wp-includes/nav-menu.php:570
- 572 Function wp_update_nav_menu_item() should return int|WP_Error but
- returns array|WP_Error.
- 🪪 return.type
- at src/wp-includes/nav-menu.php:572
- 581 Cannot cast int<min, -1>|int<1, max>|WP_Error to int.
- 🪪 cast.int
- at src/wp-includes/nav-menu.php:581
644 Function wp_get_nav_menus() has parameter $args with no value type
specified in iterable type array.
🪪 missingType.iterableValue
@@ -52151,7 +50375,7 @@
💡 Learn more: https://phpstan.org/blog/solving-phpstan-access-to-und
efined-property
at src/wp-includes/nav-menu.php:938
- 939 Cannot access property $name on array|WP_Error|WP_Term.
+ 939 Cannot access property $name on array|WP_Term.
🪪 property.nonObject
at src/wp-includes/nav-menu.php:939
941 Access to an undefined property object::$url.
@@ -52970,10 +51194,6 @@
2386 Cannot access property $user_login on WP_User|false.
🪪 property.nonObject
at src/wp-includes/pluggable.php:2386
- 2386 Part $key (string|WP_Error) of encapsed string cannot be cast to
- string.
- 🪪 encapsedStringPart.nonString
- at src/wp-includes/pluggable.php:2386
2389 Cannot access property $user_email on WP_User|false.
🪪 property.nonObject
at src/wp-includes/pluggable.php:2389
@@ -54307,10 +52527,6 @@
array|string given.
🪪 argument.type
at src/wp-includes/post.php:5302
- 5319 Parameter #1 $input_list of function wp_list_pluck expects array,
- array<WP_Term>|WP_Error given.
- 🪪 argument.type
- at src/wp-includes/post.php:5319
5339 Function wp_publish_post() has no return type specified.
🪪 missingType.return
at src/wp-includes/post.php:5339
@@ -55272,20 +53488,6 @@
https://phpstan.org/blog/solving-phpstan-no-value-type-specified-in-i
terable-type
at src/wp-includes/rest-api.php:2184
- 2188 Function rest_validate_value_from_schema() should return
- WP_Error|true but returns array|WP_Error.
- 🪪 return.type
- at src/wp-includes/rest-api.php:2188
- 2191 Cannot access offset 'type' on array|WP_Error.
- 🪪 offsetAccess.nonOffsetAccessible
- at src/wp-includes/rest-api.php:2191
- 2199 Function rest_validate_value_from_schema() should return
- WP_Error|true but returns array|WP_Error.
- 🪪 return.type
- at src/wp-includes/rest-api.php:2199
- 2202 Cannot access offset 'type' on array|WP_Error.
- 🪪 offsetAccess.nonOffsetAccessible
- at src/wp-includes/rest-api.php:2202
2373 Function rest_validate_object_value_from_schema() has parameter $args
with no value type specified in iterable type array.
🪪 missingType.iterableValue
@@ -55332,20 +53534,6 @@
https://phpstan.org/blog/solving-phpstan-no-value-type-specified-in-i
terable-type
at src/wp-includes/rest-api.php:2782
- 2790 Cannot access offset 'type' on array|WP_Error.
- 🪪 offsetAccess.nonOffsetAccessible
- at src/wp-includes/rest-api.php:2790
- 2793 Parameter #2 $args of function rest_sanitize_value_from_schema
- expects array, array|WP_Error given.
- 🪪 argument.type
- at src/wp-includes/rest-api.php:2793
- 2803 Cannot access offset 'type' on array|WP_Error.
- 🪪 offsetAccess.nonOffsetAccessible
- at src/wp-includes/rest-api.php:2803
- 2806 Parameter #2 $args of function rest_sanitize_value_from_schema
- expects array, array|WP_Error given.
- 🪪 argument.type
- at src/wp-includes/rest-api.php:2806
2944 Function rest_preload_api_request() has parameter $memo with no value
type specified in iterable type array.
🪪 missingType.iterableValue
@@ -55401,20 +53589,6 @@
https://phpstan.org/blog/solving-phpstan-no-value-type-specified-in-i
terable-type
at src/wp-includes/rest-api.php:3050
- 3055 Cannot access offset 'type' on array|WP_Error.
- 🪪 offsetAccess.nonOffsetAccessible
- at src/wp-includes/rest-api.php:3055
- 3058 Parameter #2 $schema of function rest_filter_response_by_context
- expects array, array|WP_Error given.
- 🪪 argument.type
- at src/wp-includes/rest-api.php:3058
- 3066 Cannot access offset 'type' on array|WP_Error.
- 🪪 offsetAccess.nonOffsetAccessible
- at src/wp-includes/rest-api.php:3066
- 3069 Parameter #2 $schema of function rest_filter_response_by_context
- expects array, array|WP_Error given.
- 🪪 argument.type
- at src/wp-includes/rest-api.php:3069
3098 Argument of an invalid type array|object supplied for foreach, only
iterables are supported.
🪪 foreach.nonIterable
@@ -55670,13 +53844,6 @@
https://phpstan.org/blog/solving-phpstan-no-value-type-specified-in-i
terable-type
at src/wp-includes/rest-api/class-wp-rest-request.php:801
- 937 Cannot call method get_error_messages() on bool|WP_Error.
- 🪪 method.nonObject
- at src/wp-includes/rest-api/class-wp-rest-request.php:937
- 938 Parameter #1 $error of function rest_convert_error_to_response
- expects WP_Error, bool|WP_Error given.
- 🪪 argument.type
- at src/wp-includes/rest-api/class-wp-rest-request.php:938
------ -----------------------------------------------------------------------
------ -----------------------------------------------------------------------
@@ -55821,10 +53988,6 @@
array, array|string given.
🪪 argument.type
at src/wp-includes/rest-api/class-wp-rest-server.php:375
- 443 Parameter #1 $error of method WP_REST_Server::error_to_response()
- expects WP_Error, WP_Error|WP_REST_Response given.
- 🪪 argument.type
- at src/wp-includes/rest-api/class-wp-rest-server.php:443
583 Method WP_REST_Server::response_to_data() return type has no value
type specified in iterable type array.
🪪 missingType.iterableValue
@@ -55853,12 +54016,6 @@
https://phpstan.org/blog/solving-phpstan-no-value-type-specified-in-i
terable-type
at src/wp-includes/rest-api/class-wp-rest-server.php:660
- 689 Cannot access offset 0 on array|WP_Error.
- 🪪 offsetAccess.nonOffsetAccessible
- at src/wp-includes/rest-api/class-wp-rest-server.php:689
- 690 Cannot access offset 1 on array|WP_Error.
- 🪪 offsetAccess.nonOffsetAccessible
- at src/wp-includes/rest-api/class-wp-rest-server.php:690
713 Method WP_REST_Server::get_compact_response_links() return type has
no value type specified in iterable type array.
🪪 missingType.iterableValue
@@ -55884,9 +54041,6 @@
https://phpstan.org/blog/solving-phpstan-no-value-type-specified-in-i
terable-type
at src/wp-includes/rest-api/class-wp-rest-server.php:769
- 810 Cannot access offset 1 on array|WP_Error.
- 🪪 offsetAccess.nonOffsetAccessible
- at src/wp-includes/rest-api/class-wp-rest-server.php:810
879 Method WP_REST_Server::envelope_response() should return
WP_REST_Response but returns WP_Error|WP_REST_Response.
🪪 return.type
@@ -55915,25 +54069,6 @@
https://phpstan.org/blog/solving-phpstan-no-value-type-specified-in-i
terable-type
at src/wp-includes/rest-api/class-wp-rest-server.php:1041
- 1082 Parameter #1 $error of method WP_REST_Server::error_to_response()
- expects WP_Error, WP_Error|WP_REST_Response given.
- 🪪 argument.type
- at src/wp-includes/rest-api/class-wp-rest-server.php:1082
- 1086 Method WP_REST_Server::dispatch() should return WP_REST_Response but
- returns WP_Error|WP_REST_Response.
- 🪪 return.type
- at src/wp-includes/rest-api/class-wp-rest-server.php:1086
- 1093 Parameter #1 $error of method WP_REST_Server::error_to_response()
- expects WP_Error, array|WP_Error given.
- 🪪 argument.type
- at src/wp-includes/rest-api/class-wp-rest-server.php:1093
- 1098 Cannot use array destructuring on array|WP_Error.
- 🪪 offsetAccess.nonArray
- at src/wp-includes/rest-api/class-wp-rest-server.php:1098
- 1120 Parameter #4 $response of method WP_REST_Server::respond_to_request()
- expects WP_Error|null, WP_Error|true|null given.
- 🪪 argument.type
- at src/wp-includes/rest-api/class-wp-rest-server.php:1120
1147 Method WP_REST_Server::match_request_to_handler() return type has no
value type specified in iterable type array.
🪪 missingType.iterableValue
@@ -56010,58 +54145,6 @@
https://phpstan.org/blog/solving-phpstan-no-value-type-specified-in-i
terable-type
at src/wp-includes/rest-api/class-wp-rest-server.php:1629
- 1779 Parameter #1 $request of method
- WP_REST_Server::match_request_to_handler() expects WP_REST_Request,
- WP_Error|WP_REST_Request given.
- 🪪 argument.type
- at src/wp-includes/rest-api/class-wp-rest-server.php:1779
- 1788 Cannot use array destructuring on array|WP_Error.
- 🪪 offsetAccess.nonArray
- at src/wp-includes/rest-api/class-wp-rest-server.php:1788
- 1807 Call to an undefined method
- WP_Error|WP_REST_Request::has_valid_params().
- 🪪 method.notFound
- at src/wp-includes/rest-api/class-wp-rest-server.php:1807
- 1814 Call to an undefined method
- WP_Error|WP_REST_Request::sanitize_params().
- 🪪 method.notFound
- at src/wp-includes/rest-api/class-wp-rest-server.php:1814
- 1833 Parameter #1 $error of method WP_REST_Server::error_to_response()
- expects WP_Error, array|WP_Error|WP_REST_Request|true given.
- 🪪 argument.type
- at src/wp-includes/rest-api/class-wp-rest-server.php:1833
- 1850 Parameter #1 $error of method WP_REST_Server::error_to_response()
- expects WP_Error, WP_Error|WP_REST_Request given.
- 🪪 argument.type
- at src/wp-includes/rest-api/class-wp-rest-server.php:1850
- 1856 Call to an undefined method
- WP_Error|WP_REST_Request::set_url_params().
- 🪪 method.notFound
- at src/wp-includes/rest-api/class-wp-rest-server.php:1856
- 1857 Call to an undefined method
- WP_Error|WP_REST_Request::set_attributes().
- 🪪 method.notFound
- at src/wp-includes/rest-api/class-wp-rest-server.php:1857
- 1858 Call to an undefined method
- WP_Error|WP_REST_Request::set_default_params().
- 🪪 method.notFound
- at src/wp-includes/rest-api/class-wp-rest-server.php:1858
- 1872 Parameter #1 $error of method WP_REST_Server::error_to_response()
- expects WP_Error, array|WP_Error given.
- 🪪 argument.type
- at src/wp-includes/rest-api/class-wp-rest-server.php:1872
- 1874 Cannot use array destructuring on array|WP_Error.
- 🪪 offsetAccess.nonArray
- at src/wp-includes/rest-api/class-wp-rest-server.php:1874
- 1884 Parameter #1 $request of method WP_REST_Server::respond_to_request()
- expects WP_REST_Request, WP_Error|WP_REST_Request given.
- 🪪 argument.type
- at src/wp-includes/rest-api/class-wp-rest-server.php:1884
- 1884 Parameter #4 $response of method WP_REST_Server::respond_to_request()
- expects WP_Error|null, array|WP_Error|WP_REST_Request|true|null
- given.
- 🪪 argument.type
- at src/wp-includes/rest-api/class-wp-rest-server.php:1884
1904 Method WP_REST_Server::set_status() has no return type specified.
🪪 missingType.return
at src/wp-includes/rest-api/class-wp-rest-server.php:1904
@@ -56187,29 +54270,6 @@
------ -----------------------------------------------------------------------
------ -----------------------------------------------------------------------
- Line wp-includes/rest-api/endpoints/class-wp-rest-abilities-v1-run-control
- ler.php
- ------ -----------------------------------------------------------------------
- 165 Cannot call method add_data() on WP_Error|true.
- 🪪 method.nonObject
- at
- src/wp-includes/rest-api/endpoints/class-wp-rest-abilities-v1-run-con
- troller.php:165
- 171 Cannot call method add_data() on bool|WP_Error.
- 🪪 method.nonObject
- at
- src/wp-includes/rest-api/endpoints/class-wp-rest-abilities-v1-run-con
- troller.php:171
- 172 Method
- WP_REST_Abilities_V1_Run_Controller::check_ability_permissions()
- should return WP_Error|true but returns bool|WP_Error.
- 🪪 return.type
- at
- src/wp-includes/rest-api/endpoints/class-wp-rest-abilities-v1-run-con
- troller.php:172
- ------ -----------------------------------------------------------------------
-
- ------ -----------------------------------------------------------------------
Line wp-includes/rest-api/endpoints/class-wp-rest-application-passwords-co
ntroller.php
------ -----------------------------------------------------------------------
@@ -56219,33 +54279,6 @@
at
src/wp-includes/rest-api/endpoints/class-wp-rest-application-password
s-controller.php:34
- 116 Method
- WP_REST_Application_Passwords_Controller::get_items_permissions_check
- () should return WP_Error|true but returns WP_Error|WP_User.
- 🪪 return.type
- at
- src/wp-includes/rest-api/endpoints/class-wp-rest-application-password
- s-controller.php:116
- 119 Access to an undefined property WP_Error|WP_User::$ID.
- 🪪 property.notFound
- 💡 Learn more: https://phpstan.org/blog/solving-phpstan-access-to-und
- efined-property
- at
- src/wp-includes/rest-api/endpoints/class-wp-rest-application-password
- s-controller.php:119
- 142 Method WP_REST_Application_Passwords_Controller::get_items() should
- return WP_Error|WP_REST_Response but returns WP_Error|WP_User.
- 🪪 return.type
- at
- src/wp-includes/rest-api/endpoints/class-wp-rest-application-password
- s-controller.php:142
- 145 Access to an undefined property WP_Error|WP_User::$ID.
- 🪪 property.notFound
- 💡 Learn more: https://phpstan.org/blog/solving-phpstan-access-to-und
- efined-property
- at
- src/wp-includes/rest-api/endpoints/class-wp-rest-application-password
- s-controller.php:145
150 Parameter #1 $response of method
WP_REST_Controller::prepare_response_for_collection() expects
WP_REST_Response, WP_Error|WP_REST_Response given.
@@ -56253,66 +54286,6 @@
at
src/wp-includes/rest-api/endpoints/class-wp-rest-application-password
s-controller.php:150
- 169 Method
- WP_REST_Application_Passwords_Controller::get_item_permissions_check(
- ) should return WP_Error|true but returns WP_Error|WP_User.
- 🪪 return.type
- at
- src/wp-includes/rest-api/endpoints/class-wp-rest-application-password
- s-controller.php:169
- 172 Access to an undefined property WP_Error|WP_User::$ID.
- 🪪 property.notFound
- 💡 Learn more: https://phpstan.org/blog/solving-phpstan-access-to-und
- efined-property
- at
- src/wp-includes/rest-api/endpoints/class-wp-rest-application-password
- s-controller.php:172
- 195 Method WP_REST_Application_Passwords_Controller::get_item() should
- return WP_Error|WP_REST_Response but returns array|WP_Error.
- 🪪 return.type
- at
- src/wp-includes/rest-api/endpoints/class-wp-rest-application-password
- s-controller.php:195
- 198 Parameter #1 $item of method
- WP_REST_Application_Passwords_Controller::prepare_item_for_response()
- expects array, array|WP_Error given.
- 🪪 argument.type
- at
- src/wp-includes/rest-api/endpoints/class-wp-rest-application-password
- s-controller.php:198
- 213 Method
- WP_REST_Application_Passwords_Controller::create_item_permissions_che
- ck() should return WP_Error|true but returns WP_Error|WP_User.
- 🪪 return.type
- at
- src/wp-includes/rest-api/endpoints/class-wp-rest-application-password
- s-controller.php:213
- 216 Access to an undefined property WP_Error|WP_User::$ID.
- 🪪 property.notFound
- 💡 Learn more: https://phpstan.org/blog/solving-phpstan-access-to-und
- efined-property
- at
- src/wp-includes/rest-api/endpoints/class-wp-rest-application-password
- s-controller.php:216
- 239 Method WP_REST_Application_Passwords_Controller::create_item() should
- return WP_Error|WP_REST_Response but returns WP_Error|WP_User.
- 🪪 return.type
- at
- src/wp-includes/rest-api/endpoints/class-wp-rest-application-password
- s-controller.php:239
- 245 Method WP_REST_Application_Passwords_Controller::create_item() should
- return WP_Error|WP_REST_Response but returns object.
- 🪪 return.type
- at
- src/wp-includes/rest-api/endpoints/class-wp-rest-application-password
- s-controller.php:245
- 248 Access to an undefined property WP_Error|WP_User::$ID.
- 🪪 property.notFound
- 💡 Learn more: https://phpstan.org/blog/solving-phpstan-access-to-und
- efined-property
- at
- src/wp-includes/rest-api/endpoints/class-wp-rest-application-password
- s-controller.php:248
248 Parameter #2 $args of static method
WP_Application_Passwords::create_new_application_password() expects
array, array|string given.
@@ -56320,29 +54293,6 @@
at
src/wp-includes/rest-api/endpoints/class-wp-rest-application-password
s-controller.php:248
- 251 Method WP_REST_Application_Passwords_Controller::create_item() should
- return WP_Error|WP_REST_Response but returns array|WP_Error.
- 🪪 return.type
- at
- src/wp-includes/rest-api/endpoints/class-wp-rest-application-password
- s-controller.php:251
- 254 Cannot access offset 0 on array|WP_Error.
- 🪪 offsetAccess.nonOffsetAccessible
- at
- src/wp-includes/rest-api/endpoints/class-wp-rest-application-password
- s-controller.php:254
- 255 Access to an undefined property WP_Error|WP_User::$ID.
- 🪪 property.notFound
- 💡 Learn more: https://phpstan.org/blog/solving-phpstan-access-to-und
- efined-property
- at
- src/wp-includes/rest-api/endpoints/class-wp-rest-application-password
- s-controller.php:255
- 255 Cannot access offset 1 on array|WP_Error.
- 🪪 offsetAccess.nonOffsetAccessible
- at
- src/wp-includes/rest-api/endpoints/class-wp-rest-application-password
- s-controller.php:255
258 Parameter #1 $data_object of method
WP_REST_Controller::update_additional_fields_for_object() expects
object, array given.
@@ -56350,12 +54300,6 @@
at
src/wp-includes/rest-api/endpoints/class-wp-rest-application-password
s-controller.php:258
- 261 Method WP_REST_Application_Passwords_Controller::create_item() should
- return WP_Error|WP_REST_Response but returns WP_Error|true.
- 🪪 return.type
- at
- src/wp-includes/rest-api/endpoints/class-wp-rest-application-password
- s-controller.php:261
278 Call to an undefined method WP_Error|WP_REST_Response::set_status().
🪪 method.notFound
at
@@ -56371,50 +54315,6 @@
at
src/wp-includes/rest-api/endpoints/class-wp-rest-application-password
s-controller.php:279
- 296 Method
- WP_REST_Application_Passwords_Controller::update_item_permissions_che
- ck() should return WP_Error|true but returns WP_Error|WP_User.
- 🪪 return.type
- at
- src/wp-includes/rest-api/endpoints/class-wp-rest-application-password
- s-controller.php:296
- 299 Access to an undefined property WP_Error|WP_User::$ID.
- 🪪 property.notFound
- 💡 Learn more: https://phpstan.org/blog/solving-phpstan-access-to-und
- efined-property
- at
- src/wp-includes/rest-api/endpoints/class-wp-rest-application-password
- s-controller.php:299
- 322 Method WP_REST_Application_Passwords_Controller::update_item() should
- return WP_Error|WP_REST_Response but returns WP_Error|WP_User.
- 🪪 return.type
- at
- src/wp-includes/rest-api/endpoints/class-wp-rest-application-password
- s-controller.php:322
- 328 Method WP_REST_Application_Passwords_Controller::update_item() should
- return WP_Error|WP_REST_Response but returns array|WP_Error.
- 🪪 return.type
- at
- src/wp-includes/rest-api/endpoints/class-wp-rest-application-password
- s-controller.php:328
- 334 Method WP_REST_Application_Passwords_Controller::update_item() should
- return WP_Error|WP_REST_Response but returns object.
- 🪪 return.type
- at
- src/wp-includes/rest-api/endpoints/class-wp-rest-application-password
- s-controller.php:334
- 337 Access to an undefined property WP_Error|WP_User::$ID.
- 🪪 property.notFound
- 💡 Learn more: https://phpstan.org/blog/solving-phpstan-access-to-und
- efined-property
- at
- src/wp-includes/rest-api/endpoints/class-wp-rest-application-password
- s-controller.php:337
- 337 Cannot access offset 'uuid' on array|WP_Error.
- 🪪 offsetAccess.nonOffsetAccessible
- at
- src/wp-includes/rest-api/endpoints/class-wp-rest-application-password
- s-controller.php:337
337 Parameter #3 $update of static method
WP_Application_Passwords::update_application_password() expects
array, array|string given.
@@ -56422,167 +54322,18 @@
at
src/wp-includes/rest-api/endpoints/class-wp-rest-application-password
s-controller.php:337
- 340 Method WP_REST_Application_Passwords_Controller::update_item() should
- return WP_Error|WP_REST_Response but returns WP_Error|true.
- 🪪 return.type
- at
- src/wp-includes/rest-api/endpoints/class-wp-rest-application-password
- s-controller.php:340
343 Parameter #1 $data_object of method
WP_REST_Controller::update_additional_fields_for_object() expects
- object, array|WP_Error given.
+ object, array given.
🪪 argument.type
at
src/wp-includes/rest-api/endpoints/class-wp-rest-application-password
s-controller.php:343
- 346 Method WP_REST_Application_Passwords_Controller::update_item() should
- return WP_Error|WP_REST_Response but returns WP_Error|true.
- 🪪 return.type
- at
- src/wp-includes/rest-api/endpoints/class-wp-rest-application-password
- s-controller.php:346
- 349 Access to an undefined property WP_Error|WP_User::$ID.
- 🪪 property.notFound
- 💡 Learn more: https://phpstan.org/blog/solving-phpstan-access-to-und
- efined-property
- at
- src/wp-includes/rest-api/endpoints/class-wp-rest-application-password
- s-controller.php:349
- 349 Cannot access offset 'uuid' on array|WP_Error.
- 🪪 offsetAccess.nonOffsetAccessible
- at
- src/wp-includes/rest-api/endpoints/class-wp-rest-application-password
- s-controller.php:349
- 370 Method
- WP_REST_Application_Passwords_Controller::delete_items_permissions_ch
- eck() should return WP_Error|true but returns WP_Error|WP_User.
- 🪪 return.type
- at
- src/wp-includes/rest-api/endpoints/class-wp-rest-application-password
- s-controller.php:370
- 373 Access to an undefined property WP_Error|WP_User::$ID.
- 🪪 property.notFound
- 💡 Learn more: https://phpstan.org/blog/solving-phpstan-access-to-und
- efined-property
- at
- src/wp-includes/rest-api/endpoints/class-wp-rest-application-password
- s-controller.php:373
- 396 Method WP_REST_Application_Passwords_Controller::delete_items()
- should return WP_Error|WP_REST_Response but returns WP_Error|WP_User.
- 🪪 return.type
- at
- src/wp-includes/rest-api/endpoints/class-wp-rest-application-password
- s-controller.php:396
- 399 Access to an undefined property WP_Error|WP_User::$ID.
- 🪪 property.notFound
- 💡 Learn more: https://phpstan.org/blog/solving-phpstan-access-to-und
- efined-property
- at
- src/wp-includes/rest-api/endpoints/class-wp-rest-application-password
- s-controller.php:399
- 402 Method WP_REST_Application_Passwords_Controller::delete_items()
- should return WP_Error|WP_REST_Response but returns int|WP_Error.
- 🪪 return.type
- at
- src/wp-includes/rest-api/endpoints/class-wp-rest-application-password
- s-controller.php:402
- 425 Method
- WP_REST_Application_Passwords_Controller::delete_item_permissions_che
- ck() should return WP_Error|true but returns WP_Error|WP_User.
- 🪪 return.type
- at
- src/wp-includes/rest-api/endpoints/class-wp-rest-application-password
- s-controller.php:425
- 428 Access to an undefined property WP_Error|WP_User::$ID.
- 🪪 property.notFound
- 💡 Learn more: https://phpstan.org/blog/solving-phpstan-access-to-und
- efined-property
- at
- src/wp-includes/rest-api/endpoints/class-wp-rest-application-password
- s-controller.php:428
- 451 Method WP_REST_Application_Passwords_Controller::delete_item() should
- return WP_Error|WP_REST_Response but returns WP_Error|WP_User.
- 🪪 return.type
- at
- src/wp-includes/rest-api/endpoints/class-wp-rest-application-password
- s-controller.php:451
- 457 Method WP_REST_Application_Passwords_Controller::delete_item() should
- return WP_Error|WP_REST_Response but returns array|WP_Error.
- 🪪 return.type
- at
- src/wp-includes/rest-api/endpoints/class-wp-rest-application-password
- s-controller.php:457
- 461 Parameter #1 $item of method
- WP_REST_Application_Passwords_Controller::prepare_item_for_response()
- expects array, array|WP_Error given.
- 🪪 argument.type
- at
- src/wp-includes/rest-api/endpoints/class-wp-rest-application-password
- s-controller.php:461
- 462 Access to an undefined property WP_Error|WP_User::$ID.
- 🪪 property.notFound
- 💡 Learn more: https://phpstan.org/blog/solving-phpstan-access-to-und
- efined-property
- at
- src/wp-includes/rest-api/endpoints/class-wp-rest-application-password
- s-controller.php:462
- 462 Cannot access offset 'uuid' on array|WP_Error.
- 🪪 offsetAccess.nonOffsetAccessible
- at
- src/wp-includes/rest-api/endpoints/class-wp-rest-application-password
- s-controller.php:462
- 465 Method WP_REST_Application_Passwords_Controller::delete_item() should
- return WP_Error|WP_REST_Response but returns WP_Error|true.
- 🪪 return.type
- at
- src/wp-includes/rest-api/endpoints/class-wp-rest-application-password
- s-controller.php:465
471 Call to an undefined method WP_Error|WP_REST_Response::get_data().
🪪 method.notFound
at
src/wp-includes/rest-api/endpoints/class-wp-rest-application-password
s-controller.php:471
- 488 Method
- WP_REST_Application_Passwords_Controller::get_current_item_permission
- s_check() should return WP_Error|true but returns WP_Error|WP_User.
- 🪪 return.type
- at
- src/wp-includes/rest-api/endpoints/class-wp-rest-application-password
- s-controller.php:488
- 491 Access to an undefined property WP_Error|WP_User::$ID.
- 🪪 property.notFound
- 💡 Learn more: https://phpstan.org/blog/solving-phpstan-access-to-und
- efined-property
- at
- src/wp-includes/rest-api/endpoints/class-wp-rest-application-password
- s-controller.php:491
- 514 Method WP_REST_Application_Passwords_Controller::get_current_item()
- should return WP_Error|WP_REST_Response but returns WP_Error|WP_User.
- 🪪 return.type
- at
- src/wp-includes/rest-api/endpoints/class-wp-rest-application-password
- s-controller.php:514
- 527 Access to an undefined property WP_Error|WP_User::$ID.
- 🪪 property.notFound
- 💡 Learn more: https://phpstan.org/blog/solving-phpstan-access-to-und
- efined-property
- at
- src/wp-includes/rest-api/endpoints/class-wp-rest-application-password
- s-controller.php:527
- 555 Method
- WP_REST_Application_Passwords_Controller::do_permissions_check()
- should return WP_Error|true but returns WP_Error|WP_User.
- 🪪 return.type
- at
- src/wp-includes/rest-api/endpoints/class-wp-rest-application-password
- s-controller.php:555
- 558 Access to an undefined property WP_Error|WP_User::$ID.
- 🪪 property.notFound
- 💡 Learn more: https://phpstan.org/blog/solving-phpstan-access-to-und
- efined-property
- at
- src/wp-includes/rest-api/endpoints/class-wp-rest-application-password
- s-controller.php:558
606 Method
WP_REST_Application_Passwords_Controller::prepare_item_for_response()
has parameter $item with no value type specified in iterable type
@@ -56594,20 +54345,6 @@
at
src/wp-includes/rest-api/endpoints/class-wp-rest-application-password
s-controller.php:606
- 610 Method
- WP_REST_Application_Passwords_Controller::prepare_item_for_response()
- should return WP_Error|WP_REST_Response but returns WP_Error|WP_User.
- 🪪 return.type
- at
- src/wp-includes/rest-api/endpoints/class-wp-rest-application-password
- s-controller.php:610
- 634 Parameter #1 $user of method
- WP_REST_Application_Passwords_Controller::prepare_links() expects
- WP_User, WP_Error|WP_User given.
- 🪪 argument.type
- at
- src/wp-includes/rest-api/endpoints/class-wp-rest-application-password
- s-controller.php:634
658 Method WP_REST_Application_Passwords_Controller::prepare_links() has
parameter $item with no value type specified in iterable type array.
🪪 missingType.iterableValue
@@ -56636,20 +54373,6 @@
at
src/wp-includes/rest-api/endpoints/class-wp-rest-application-password
s-controller.php:745
- 749 Method
- WP_REST_Application_Passwords_Controller::get_application_password()
- should return array|WP_Error but returns WP_Error|WP_User.
- 🪪 return.type
- at
- src/wp-includes/rest-api/endpoints/class-wp-rest-application-password
- s-controller.php:749
- 752 Access to an undefined property WP_Error|WP_User::$ID.
- 🪪 property.notFound
- 💡 Learn more: https://phpstan.org/blog/solving-phpstan-access-to-und
- efined-property
- at
- src/wp-includes/rest-api/endpoints/class-wp-rest-application-password
- s-controller.php:752
772 Method
WP_REST_Application_Passwords_Controller::get_collection_params()
return type has no value type specified in iterable type array.
@@ -56710,28 +54433,6 @@
at
src/wp-includes/rest-api/endpoints/class-wp-rest-attachments-controll
er.php:148
- 296 Method WP_REST_Attachments_Controller::create_item() should return
- WP_Error|WP_REST_Response but returns array|WP_Error.
- 🪪 return.type
- at
- src/wp-includes/rest-api/endpoints/class-wp-rest-attachments-controll
- er.php:296
- 302 Cannot access offset 'attachment_id' on array|WP_Error.
- 🪪 offsetAccess.nonOffsetAccessible
- at
- src/wp-includes/rest-api/endpoints/class-wp-rest-attachments-controll
- er.php:302
- 303 Cannot access offset 'file' on array|WP_Error.
- 🪪 offsetAccess.nonOffsetAccessible
- at
- src/wp-includes/rest-api/endpoints/class-wp-rest-attachments-controll
- er.php:303
- 314 Method WP_REST_Attachments_Controller::create_item() should return
- WP_Error|WP_REST_Response but returns bool|WP_Error.
- 🪪 return.type
- at
- src/wp-includes/rest-api/endpoints/class-wp-rest-attachments-controll
- er.php:314
328 Parameter #1 $data_object of method
WP_REST_Controller::update_additional_fields_for_object() expects
object, array|WP_Post|null given.
@@ -56739,12 +54440,6 @@
at
src/wp-includes/rest-api/endpoints/class-wp-rest-attachments-controll
er.php:328
- 332 Method WP_REST_Attachments_Controller::create_item() should return
- WP_Error|WP_REST_Response but returns WP_Error|true.
- 🪪 return.type
- at
- src/wp-includes/rest-api/endpoints/class-wp-rest-attachments-controll
- er.php:332
355 Parameter #1 $post of function wp_after_insert_post expects
int|WP_Post, array|WP_Post|null given.
🪪 argument.type
@@ -56799,32 +54494,12 @@
at
src/wp-includes/rest-api/endpoints/class-wp-rest-attachments-controll
er.php:417
- 431 Cannot access offset 'file' on array|WP_Error.
- 🪪 offsetAccess.nonOffsetAccessible
- at
- src/wp-includes/rest-api/endpoints/class-wp-rest-attachments-controll
- er.php:431
433 Offset 'extension' might not exist on array{dirname?: string,
basename: string, extension?: string, filename: string}.
🪪 offsetAccess.notFound
at
src/wp-includes/rest-api/endpoints/class-wp-rest-attachments-controll
er.php:433
- 435 Cannot access offset 'url' on array|WP_Error.
- 🪪 offsetAccess.nonOffsetAccessible
- at
- src/wp-includes/rest-api/endpoints/class-wp-rest-attachments-controll
- er.php:435
- 436 Cannot access offset 'type' on array|WP_Error.
- 🪪 offsetAccess.nonOffsetAccessible
- at
- src/wp-includes/rest-api/endpoints/class-wp-rest-attachments-controll
- er.php:436
- 437 Cannot access offset 'file' on array|WP_Error.
- 🪪 offsetAccess.nonOffsetAccessible
- at
- src/wp-includes/rest-api/endpoints/class-wp-rest-attachments-controll
- er.php:437
457 Access to an undefined property stdClass|WP_Error::$post_mime_type.
🪪 property.notFound
💡 Learn more: https://phpstan.org/blog/solving-phpstan-access-to-und
@@ -56859,33 +54534,6 @@
at
src/wp-includes/rest-api/endpoints/class-wp-rest-attachments-controll
er.php:472
- 479 Cannot call method get_error_code() on int|WP_Error.
- 🪪 method.nonObject
- at
- src/wp-includes/rest-api/endpoints/class-wp-rest-attachments-controll
- er.php:479
- 480 Cannot call method add_data() on int|WP_Error.
- 🪪 method.nonObject
- at
- src/wp-includes/rest-api/endpoints/class-wp-rest-attachments-controll
- er.php:480
- 482 Cannot call method add_data() on int|WP_Error.
- 🪪 method.nonObject
- at
- src/wp-includes/rest-api/endpoints/class-wp-rest-attachments-controll
- er.php:482
- 485 Method WP_REST_Attachments_Controller::insert_attachment() should
- return array|WP_Error but returns int|WP_Error.
- 🪪 return.type
- at
- src/wp-includes/rest-api/endpoints/class-wp-rest-attachments-controll
- er.php:485
- 488 Parameter #1 $post of function get_post expects int|WP_Post|null,
- int|WP_Error given.
- 🪪 argument.type
- at
- src/wp-includes/rest-api/endpoints/class-wp-rest-attachments-controll
- er.php:488
518 Parameter #1 $post_type of function post_type_supports expects
string, string|false given.
🪪 argument.type
@@ -56912,12 +54560,6 @@
at
src/wp-includes/rest-api/endpoints/class-wp-rest-attachments-controll
er.php:578
- 581 Method WP_REST_Attachments_Controller::update_item() should return
- WP_Error|WP_REST_Response but returns bool|WP_Error.
- 🪪 return.type
- at
- src/wp-includes/rest-api/endpoints/class-wp-rest-attachments-controll
- er.php:581
585 Parameter #1 $data_object of method
WP_REST_Controller::update_additional_fields_for_object() expects
object, array|WP_Post|null given.
@@ -56925,12 +54567,6 @@
at
src/wp-includes/rest-api/endpoints/class-wp-rest-attachments-controll
er.php:585
- 588 Method WP_REST_Attachments_Controller::update_item() should return
- WP_Error|WP_REST_Response but returns WP_Error|true.
- 🪪 return.type
- at
- src/wp-includes/rest-api/endpoints/class-wp-rest-attachments-controll
- er.php:588
596 Parameter #1 $post of function wp_after_insert_post expects
int|WP_Post, array|WP_Post|null given.
🪪 argument.type
@@ -56963,37 +54599,6 @@
at
src/wp-includes/rest-api/endpoints/class-wp-rest-attachments-controll
er.php:757
- 776 Call to an undefined method WP_Error|WP_Image_Editor::flip().
- 🪪 method.notFound
- at
- src/wp-includes/rest-api/endpoints/class-wp-rest-attachments-controll
- er.php:776
- 790 Call to an undefined method WP_Error|WP_Image_Editor::rotate().
- 🪪 method.notFound
- at
- src/wp-includes/rest-api/endpoints/class-wp-rest-attachments-controll
- er.php:790
- 804 Call to an undefined method WP_Error|WP_Image_Editor::get_size().
- 🪪 method.notFound
- at
- src/wp-includes/rest-api/endpoints/class-wp-rest-attachments-controll
- er.php:804
- 812 Call to an undefined method WP_Error|WP_Image_Editor::crop().
- 🪪 method.notFound
- at
- src/wp-includes/rest-api/endpoints/class-wp-rest-attachments-controll
- er.php:812
- 853 Call to an undefined method WP_Error|WP_Image_Editor::save().
- 🪪 method.notFound
- at
- src/wp-includes/rest-api/endpoints/class-wp-rest-attachments-controll
- er.php:853
- 856 Method WP_REST_Attachments_Controller::edit_media_item() should
- return WP_Error|WP_REST_Response but returns array|WP_Error.
- 🪪 return.type
- at
- src/wp-includes/rest-api/endpoints/class-wp-rest-attachments-controll
- er.php:856
864 Access to an undefined property stdClass|WP_Error::$post_mime_type.
🪪 property.notFound
💡 Learn more: https://phpstan.org/blog/solving-phpstan-access-to-und
@@ -57001,11 +54606,6 @@
at
src/wp-includes/rest-api/endpoints/class-wp-rest-attachments-controll
er.php:864
- 864 Cannot access offset 'mime-type' on array|WP_Error.
- 🪪 offsetAccess.nonOffsetAccessible
- at
- src/wp-includes/rest-api/endpoints/class-wp-rest-attachments-controll
- er.php:864
865 Access to an undefined property stdClass|WP_Error::$guid.
🪪 property.notFound
💡 Learn more: https://phpstan.org/blog/solving-phpstan-access-to-und
@@ -57041,61 +54641,6 @@
at
src/wp-includes/rest-api/endpoints/class-wp-rest-attachments-controll
er.php:880
- 883 Cannot access offset 'path' on array|WP_Error.
- 🪪 offsetAccess.nonOffsetAccessible
- at
- src/wp-includes/rest-api/endpoints/class-wp-rest-attachments-controll
- er.php:883
- 886 Cannot call method get_error_code() on int|WP_Error.
- 🪪 method.nonObject
- at
- src/wp-includes/rest-api/endpoints/class-wp-rest-attachments-controll
- er.php:886
- 887 Cannot call method add_data() on int|WP_Error.
- 🪪 method.nonObject
- at
- src/wp-includes/rest-api/endpoints/class-wp-rest-attachments-controll
- er.php:887
- 889 Cannot call method add_data() on int|WP_Error.
- 🪪 method.nonObject
- at
- src/wp-includes/rest-api/endpoints/class-wp-rest-attachments-controll
- er.php:889
- 892 Method WP_REST_Attachments_Controller::edit_media_item() should
- return WP_Error|WP_REST_Response but returns int|WP_Error.
- 🪪 return.type
- at
- src/wp-includes/rest-api/endpoints/class-wp-rest-attachments-controll
- er.php:892
- 900 Parameter #1 $post_id of function update_post_meta expects int,
- int|WP_Error given.
- 🪪 argument.type
- at
- src/wp-includes/rest-api/endpoints/class-wp-rest-attachments-controll
- er.php:900
- 908 Binary operation "." between 'X-WP-Upload…' and int|WP_Error results
- in an error.
- 🪪 binaryOp.invalid
- at
- src/wp-includes/rest-api/endpoints/class-wp-rest-attachments-controll
- er.php:908
- 912 Cannot access offset 'path' on array|WP_Error.
- 🪪 offsetAccess.nonOffsetAccessible
- at
- src/wp-includes/rest-api/endpoints/class-wp-rest-attachments-controll
- er.php:912
- 912 Parameter #1 $attachment_id of function
- wp_generate_attachment_metadata expects int, int|WP_Error given.
- 🪪 argument.type
- at
- src/wp-includes/rest-api/endpoints/class-wp-rest-attachments-controll
- er.php:912
- 947 Parameter #1 $attachment_id of function wp_update_attachment_metadata
- expects int, int|WP_Error given.
- 🪪 argument.type
- at
- src/wp-includes/rest-api/endpoints/class-wp-rest-attachments-controll
- er.php:947
949 Parameter #1 $item of method
WP_REST_Attachments_Controller::prepare_item_for_response() expects
WP_Post, array|WP_Post|null given.
@@ -57103,18 +54648,6 @@
at
src/wp-includes/rest-api/endpoints/class-wp-rest-attachments-controll
er.php:949
- 949 Parameter #1 $post of function get_post expects int|WP_Post|null,
- int|WP_Error given.
- 🪪 argument.type
- at
- src/wp-includes/rest-api/endpoints/class-wp-rest-attachments-controll
- er.php:949
- 951 Parameter #4 ...$values of function sprintf expects
- bool|float|int|string|null, int|WP_Error given.
- 🪪 argument.type
- at
- src/wp-includes/rest-api/endpoints/class-wp-rest-attachments-controll
- er.php:951
970 Access to an undefined property stdClass|WP_Error::$post_excerpt.
🪪 property.notFound
💡 Learn more: https://phpstan.org/blog/solving-phpstan-access-to-und
@@ -57208,12 +54741,6 @@
at
src/wp-includes/rest-api/endpoints/class-wp-rest-attachments-controll
er.php:1357
- 1438 Method WP_REST_Attachments_Controller::upload_from_data() should
- return array|WP_Error but returns WP_Error|true.
- 🪪 return.type
- at
- src/wp-includes/rest-api/endpoints/class-wp-rest-attachments-controll
- er.php:1438
1527 Method
WP_REST_Attachments_Controller::get_filename_from_disposition()
should return string|null but returns string|false|null.
@@ -57258,12 +54785,6 @@
at
src/wp-includes/rest-api/endpoints/class-wp-rest-attachments-controll
er.php:1577
- 1613 Method WP_REST_Attachments_Controller::upload_from_file() should
- return array|WP_Error but returns WP_Error|true.
- 🪪 return.type
- at
- src/wp-includes/rest-api/endpoints/class-wp-rest-attachments-controll
- er.php:1613
1641 Method WP_REST_Attachments_Controller::get_media_types() return type
has no value type specified in iterable type array.
🪪 missingType.iterableValue
@@ -57291,40 +54812,6 @@
at
src/wp-includes/rest-api/endpoints/class-wp-rest-attachments-controll
er.php:1720
- 1983 Method WP_REST_Attachments_Controller::sideload_item() should return
- WP_Error|WP_REST_Response but returns WP_Error|WP_Post.
- 🪪 return.type
- at
- src/wp-includes/rest-api/endpoints/class-wp-rest-attachments-controll
- er.php:1983
- 1987 Parameter #1 $post of function wp_attachment_is_image expects
- int|WP_Post|null, WP_Error|WP_Post given.
- 🪪 argument.type
- at
- src/wp-includes/rest-api/endpoints/class-wp-rest-attachments-controll
- er.php:1987
- 1988 Parameter #2 $post of function wp_attachment_is expects
- int|WP_Post|null, WP_Error|WP_Post given.
- 🪪 argument.type
- at
- src/wp-includes/rest-api/endpoints/class-wp-rest-attachments-controll
- er.php:1988
- 2040 Method WP_REST_Attachments_Controller::sideload_item() should return
- WP_Error|WP_REST_Response but returns array|WP_Error.
- 🪪 return.type
- at
- src/wp-includes/rest-api/endpoints/class-wp-rest-attachments-controll
- er.php:2040
- 2043 Cannot access offset 'type' on array|WP_Error.
- 🪪 offsetAccess.nonOffsetAccessible
- at
- src/wp-includes/rest-api/endpoints/class-wp-rest-attachments-controll
- er.php:2043
- 2044 Cannot access offset 'file' on array|WP_Error.
- 🪪 offsetAccess.nonOffsetAccessible
- at
- src/wp-includes/rest-api/endpoints/class-wp-rest-attachments-controll
- er.php:2044
2083 Parameter #1 $item of method
WP_REST_Attachments_Controller::prepare_item_for_response() expects
WP_Post, array|WP_Post|null given.
@@ -57361,32 +54848,6 @@
at
src/wp-includes/rest-api/endpoints/class-wp-rest-autosaves-controller
.php:87
- 164 Method WP_REST_Autosaves_Controller::get_items_permissions_check()
- should return WP_Error|true but returns WP_Error|WP_Post.
- 🪪 return.type
- at
- src/wp-includes/rest-api/endpoints/class-wp-rest-autosaves-controller
- .php:164
- 167 Access to an undefined property WP_Error|WP_Post::$ID.
- 🪪 property.notFound
- 💡 Learn more: https://phpstan.org/blog/solving-phpstan-access-to-und
- efined-property
- at
- src/wp-includes/rest-api/endpoints/class-wp-rest-autosaves-controller
- .php:167
- 220 Method WP_REST_Autosaves_Controller::create_item() should return
- WP_Error|WP_REST_Response but returns WP_Error|WP_Post.
- 🪪 return.type
- at
- src/wp-includes/rest-api/endpoints/class-wp-rest-autosaves-controller
- .php:220
- 224 Access to an undefined property WP_Error|WP_Post::$ID.
- 🪪 property.notFound
- 💡 Learn more: https://phpstan.org/blog/solving-phpstan-access-to-und
- efined-property
- at
- src/wp-includes/rest-api/endpoints/class-wp-rest-autosaves-controller
- .php:224
224 Access to an undefined property object::$ID.
🪪 property.notFound
💡 Learn more: https://phpstan.org/blog/solving-phpstan-access-to-und
@@ -57394,27 +54855,6 @@
at
src/wp-includes/rest-api/endpoints/class-wp-rest-autosaves-controller
.php:224
- 232 Access to an undefined property WP_Error|WP_Post::$ID.
- 🪪 property.notFound
- 💡 Learn more: https://phpstan.org/blog/solving-phpstan-access-to-und
- efined-property
- at
- src/wp-includes/rest-api/endpoints/class-wp-rest-autosaves-controller
- .php:232
- 233 Access to an undefined property WP_Error|WP_Post::$post_status.
- 🪪 property.notFound
- 💡 Learn more: https://phpstan.org/blog/solving-phpstan-access-to-und
- efined-property
- at
- src/wp-includes/rest-api/endpoints/class-wp-rest-autosaves-controller
- .php:233
- 259 Access to an undefined property WP_Error|WP_Post::$post_author.
- 🪪 property.notFound
- 💡 Learn more: https://phpstan.org/blog/solving-phpstan-access-to-und
- efined-property
- at
- src/wp-includes/rest-api/endpoints/class-wp-rest-autosaves-controller
- .php:259
264 Parameter #1 $postarr of function wp_update_post expects
array|object, array|string given.
🪪 argument.type
@@ -57434,19 +54874,6 @@
at
src/wp-includes/rest-api/endpoints/class-wp-rest-autosaves-controller
.php:313
- 329 Method WP_REST_Autosaves_Controller::get_items() should return
- WP_Error|WP_REST_Response but returns WP_Error|WP_Post.
- 🪪 return.type
- at
- src/wp-includes/rest-api/endpoints/class-wp-rest-autosaves-controller
- .php:329
- 337 Access to an undefined property WP_Error|WP_Post::$ID.
- 🪪 property.notFound
- 💡 Learn more: https://phpstan.org/blog/solving-phpstan-access-to-und
- efined-property
- at
- src/wp-includes/rest-api/endpoints/class-wp-rest-autosaves-controller
- .php:337
341 Cannot access property $post_name on int|WP_Post.
🪪 property.nonObject
at
@@ -57498,12 +54925,6 @@
at
src/wp-includes/rest-api/endpoints/class-wp-rest-autosaves-controller
.php:443
- 457 Parameter #2 $object_id of function update_metadata expects int, int<
- min, -1>|int<1, max>|WP_Error given.
- 🪪 argument.type
- at
- src/wp-includes/rest-api/endpoints/class-wp-rest-autosaves-controller
- .php:457
525 Method WP_REST_Autosaves_Controller::get_collection_params() return
type has no value type specified in iterable type array.
🪪 missingType.iterableValue
@@ -57525,17 +54946,6 @@
at
src/wp-includes/rest-api/endpoints/class-wp-rest-block-directory-cont
roller.php:30
- 88 Cannot call method add_data() on array|object.
- 🪪 method.nonObject
- at
- src/wp-includes/rest-api/endpoints/class-wp-rest-block-directory-cont
- roller.php:88
- 90 Method WP_REST_Block_Directory_Controller::get_items() should return
- WP_Error|WP_REST_Response but returns array|object.
- 🪪 return.type
- at
- src/wp-includes/rest-api/endpoints/class-wp-rest-block-directory-cont
- roller.php:90
95 Cannot access property $plugins on array|object.
🪪 property.nonObject
at
@@ -57756,30 +55166,11 @@
at
src/wp-includes/rest-api/endpoints/class-wp-rest-block-types-controll
er.php:56
- 180 Method WP_REST_Block_Types_Controller::get_item_permissions_check()
- should return WP_Error|true but returns WP_Block_Type|WP_Error.
- 🪪 return.type
- at
- src/wp-includes/rest-api/endpoints/class-wp-rest-block-types-controll
- er.php:180
198 Cannot access property $cap on string|WP_Post_Type.
🪪 property.nonObject
at
src/wp-includes/rest-api/endpoints/class-wp-rest-block-types-controll
er.php:198
- 235 Method WP_REST_Block_Types_Controller::get_item() should return
- WP_Error|WP_REST_Response but returns WP_Block_Type|WP_Error.
- 🪪 return.type
- at
- src/wp-includes/rest-api/endpoints/class-wp-rest-block-types-controll
- er.php:235
- 237 Parameter #1 $item of method
- WP_REST_Block_Types_Controller::prepare_item_for_response() expects
- WP_Block_Type, WP_Block_Type|WP_Error given.
- 🪪 argument.type
- at
- src/wp-includes/rest-api/endpoints/class-wp-rest-block-types-controll
- er.php:237
318 Access to private property WP_Block_Type::$uses_context.
🪪 property.private
at
@@ -57919,47 +55310,12 @@
at
src/wp-includes/rest-api/endpoints/class-wp-rest-comments-controller.
php:423
- 437 Method WP_REST_Comments_Controller::get_item_permissions_check()
- should return WP_Error|true but returns WP_Comment|WP_Error.
- 🪪 return.type
- at
- src/wp-includes/rest-api/endpoints/class-wp-rest-comments-controller.
- php:437
- 441 Access to an undefined property WP_Comment|WP_Error::$comment_ID.
- 🪪 property.notFound
- 💡 Learn more: https://phpstan.org/blog/solving-phpstan-access-to-und
- efined-property
- at
- src/wp-includes/rest-api/endpoints/class-wp-rest-comments-controller.
- php:441
- 441 Access to an undefined property WP_Comment|WP_Error::$comment_type.
- 🪪 property.notFound
- 💡 Learn more: https://phpstan.org/blog/solving-phpstan-access-to-und
- efined-property
- at
- src/wp-includes/rest-api/endpoints/class-wp-rest-comments-controller.
- php:441
- 450 Access to an undefined property
- WP_Comment|WP_Error::$comment_post_ID.
- 🪪 property.notFound
- 💡 Learn more: https://phpstan.org/blog/solving-phpstan-access-to-und
- efined-property
- at
- src/wp-includes/rest-api/endpoints/class-wp-rest-comments-controller.
- php:450
450 Parameter #1 $post of function get_post expects int|WP_Post|null,
string given.
🪪 argument.type
at
src/wp-includes/rest-api/endpoints/class-wp-rest-comments-controller.
php:450
- 452 Parameter #1 $comment of method
- WP_REST_Comments_Controller::check_read_permission() expects
- WP_Comment, WP_Comment|WP_Error given.
- 🪪 argument.type
- at
- src/wp-includes/rest-api/endpoints/class-wp-rest-comments-controller.
- php:452
460 Parameter #1 $post of method
WP_REST_Comments_Controller::check_read_post_permission() expects
WP_Post, array|WP_Post given.
@@ -57967,19 +55323,6 @@
at
src/wp-includes/rest-api/endpoints/class-wp-rest-comments-controller.
php:460
- 482 Method WP_REST_Comments_Controller::get_item() should return
- WP_Error|WP_REST_Response but returns WP_Comment|WP_Error.
- 🪪 return.type
- at
- src/wp-includes/rest-api/endpoints/class-wp-rest-comments-controller.
- php:482
- 485 Parameter #1 $item of method
- WP_REST_Comments_Controller::prepare_item_for_response() expects
- WP_Comment, WP_Comment|WP_Error given.
- 🪪 argument.type
- at
- src/wp-includes/rest-api/endpoints/class-wp-rest-comments-controller.
- php:485
591 Cannot access property $post_type on array|WP_Post.
🪪 property.nonObject
at
@@ -58007,58 +55350,6 @@
at
src/wp-includes/rest-api/endpoints/class-wp-rest-comments-controller.
php:623
- 662 Method WP_REST_Comments_Controller::create_item() should return
- WP_Error|WP_REST_Response but returns array|WP_Error.
- 🪪 return.type
- at
- src/wp-includes/rest-api/endpoints/class-wp-rest-comments-controller.
- php:662
- 665 Cannot access offset 'comment_type' on array|WP_Error.
- 🪪 offsetAccess.nonOffsetAccessible
- at
- src/wp-includes/rest-api/endpoints/class-wp-rest-comments-controller.
- php:665
- 676 Parameter #1 $prepared_comment of method
- WP_REST_Comments_Controller::check_is_comment_content_allowed()
- expects array, array|(ArrayAccess&WP_Error) given.
- 🪪 argument.type
- at
- src/wp-includes/rest-api/endpoints/class-wp-rest-comments-controller.
- php:676
- 727 Parameter #1 $comment_data of function
- wp_check_comment_data_max_lengths expects array,
- array|(ArrayAccess&WP_Error) given.
- 🪪 argument.type
- at
- src/wp-includes/rest-api/endpoints/class-wp-rest-comments-controller.
- php:727
- 730 Cannot call method get_error_code() on WP_Error|true.
- 🪪 method.nonObject
- at
- src/wp-includes/rest-api/endpoints/class-wp-rest-comments-controller.
- php:730
- 742 Parameter #1 $commentdata of function wp_allow_comment expects array,
- array|(ArrayAccess&WP_Error) given.
- 🪪 argument.type
- at
- src/wp-includes/rest-api/endpoints/class-wp-rest-comments-controller.
- php:742
- 745 Cannot call method get_error_code() on int|string|WP_Error.
- 🪪 method.nonObject
- at
- src/wp-includes/rest-api/endpoints/class-wp-rest-comments-controller.
- php:745
- 746 Cannot call method get_error_message() on int|string|WP_Error.
- 🪪 method.nonObject
- at
- src/wp-includes/rest-api/endpoints/class-wp-rest-comments-controller.
- php:746
- 764 Method WP_REST_Comments_Controller::create_item() should return
- WP_Error|WP_REST_Response but returns int|string|WP_Error.
- 🪪 return.type
- at
- src/wp-includes/rest-api/endpoints/class-wp-rest-comments-controller.
- php:764
785 Parameter #1 $commentdata of function wp_filter_comment expects
array, array|string given.
🪪 argument.type
@@ -58072,12 +55363,6 @@
at
src/wp-includes/rest-api/endpoints/class-wp-rest-comments-controller.
php:823
- 826 Method WP_REST_Comments_Controller::create_item() should return
- WP_Error|WP_REST_Response but returns WP_Error|true.
- 🪪 return.type
- at
- src/wp-includes/rest-api/endpoints/class-wp-rest-comments-controller.
- php:826
844 Parameter #1 $item of method
WP_REST_Comments_Controller::prepare_item_for_response() expects
WP_Comment, array|WP_Comment|null given.
@@ -58095,49 +55380,12 @@
at
src/wp-includes/rest-api/endpoints/class-wp-rest-comments-controller.
php:848
- 864 Method WP_REST_Comments_Controller::update_item_permissions_check()
- should return WP_Error|true but returns WP_Comment|WP_Error.
- 🪪 return.type
- at
- src/wp-includes/rest-api/endpoints/class-wp-rest-comments-controller.
- php:864
- 867 Parameter #1 $comment of method
- WP_REST_Comments_Controller::check_edit_permission() expects
- WP_Comment, WP_Comment|WP_Error given.
- 🪪 argument.type
- at
- src/wp-includes/rest-api/endpoints/class-wp-rest-comments-controller.
- php:867
- 889 Method WP_REST_Comments_Controller::update_item() should return
- WP_Error|WP_REST_Response but returns WP_Comment|WP_Error.
- 🪪 return.type
- at
- src/wp-includes/rest-api/endpoints/class-wp-rest-comments-controller.
- php:889
- 892 Access to an undefined property WP_Comment|WP_Error::$comment_ID.
- 🪪 property.notFound
- 💡 Learn more: https://phpstan.org/blog/solving-phpstan-access-to-und
- efined-property
- at
- src/wp-includes/rest-api/endpoints/class-wp-rest-comments-controller.
- php:892
894 Parameter #1 $comment_id of function get_comment_type expects
int|WP_Comment, string given.
🪪 argument.type
at
src/wp-includes/rest-api/endpoints/class-wp-rest-comments-controller.
php:894
- 905 Method WP_REST_Comments_Controller::update_item() should return
- WP_Error|WP_REST_Response but returns array|WP_Error.
- 🪪 return.type
- at
- src/wp-includes/rest-api/endpoints/class-wp-rest-comments-controller.
- php:905
- 908 Cannot access offset 'comment_post_ID' on array|WP_Error.
- 🪪 offsetAccess.nonOffsetAccessible
- at
- src/wp-includes/rest-api/endpoints/class-wp-rest-comments-controller.
- php:908
922 Parameter #2 $comment_id of method
WP_REST_Comments_Controller::handle_status_param() expects int,
string given.
@@ -58145,41 +55393,6 @@
at
src/wp-includes/rest-api/endpoints/class-wp-rest-comments-controller.
php:922
- 932 If condition is always false.
- 🪪 if.alwaysFalse
- at
- src/wp-includes/rest-api/endpoints/class-wp-rest-comments-controller.
- php:932
- 933 Method WP_REST_Comments_Controller::update_item() should return
- WP_Error|WP_REST_Response but returns array|WP_Error.
- 🪪 return.type
- at
- src/wp-includes/rest-api/endpoints/class-wp-rest-comments-controller.
- php:933
- 935 Parameter #1 $prepared_comment of method
- WP_REST_Comments_Controller::check_is_comment_content_allowed()
- expects array, array|WP_Error given.
- 🪪 argument.type
- at
- src/wp-includes/rest-api/endpoints/class-wp-rest-comments-controller.
- php:935
- 943 Cannot access offset 'comment_ID' on non-empty-array|WP_Error.
- 🪪 offsetAccess.nonOffsetAccessible
- at
- src/wp-includes/rest-api/endpoints/class-wp-rest-comments-controller.
- php:943
- 945 Parameter #1 $comment_data of function
- wp_check_comment_data_max_lengths expects array,
- array|(ArrayAccess&WP_Error) given.
- 🪪 argument.type
- at
- src/wp-includes/rest-api/endpoints/class-wp-rest-comments-controller.
- php:945
- 948 Cannot call method get_error_code() on WP_Error|true.
- 🪪 method.nonObject
- at
- src/wp-includes/rest-api/endpoints/class-wp-rest-comments-controller.
- php:948
956 Parameter #1 $commentarr of function wp_update_comment expects array,
array|string given.
🪪 argument.type
@@ -58206,12 +55419,6 @@
at
src/wp-includes/rest-api/endpoints/class-wp-rest-comments-controller.
php:986
- 989 Method WP_REST_Comments_Controller::update_item() should return
- WP_Error|WP_REST_Response but returns WP_Error|true.
- 🪪 return.type
- at
- src/wp-includes/rest-api/endpoints/class-wp-rest-comments-controller.
- php:989
997 Parameter #1 $item of method
WP_REST_Comments_Controller::prepare_item_for_response() expects
WP_Comment, array|WP_Comment|null given.
@@ -58219,73 +55426,18 @@
at
src/wp-includes/rest-api/endpoints/class-wp-rest-comments-controller.
php:997
- 1013 Method WP_REST_Comments_Controller::delete_item_permissions_check()
- should return WP_Error|true but returns WP_Comment|WP_Error.
- 🪪 return.type
- at
- src/wp-includes/rest-api/endpoints/class-wp-rest-comments-controller.
- php:1013
- 1016 Parameter #1 $comment of method
- WP_REST_Comments_Controller::check_edit_permission() expects
- WP_Comment, WP_Comment|WP_Error given.
- 🪪 argument.type
- at
- src/wp-includes/rest-api/endpoints/class-wp-rest-comments-controller.
- php:1016
- 1037 Method WP_REST_Comments_Controller::delete_item() should return
- WP_Error|WP_REST_Response but returns WP_Comment|WP_Error.
- 🪪 return.type
- at
- src/wp-includes/rest-api/endpoints/class-wp-rest-comments-controller.
- php:1037
- 1057 Parameter #1 $item of method
- WP_REST_Comments_Controller::prepare_item_for_response() expects
- WP_Comment, WP_Comment|WP_Error given.
- 🪪 argument.type
- at
- src/wp-includes/rest-api/endpoints/class-wp-rest-comments-controller.
- php:1057
- 1058 Access to an undefined property WP_Comment|WP_Error::$comment_ID.
- 🪪 property.notFound
- 💡 Learn more: https://phpstan.org/blog/solving-phpstan-access-to-und
- efined-property
- at
- src/wp-includes/rest-api/endpoints/class-wp-rest-comments-controller.
- php:1058
1058 Parameter #1 $comment_id of function wp_delete_comment expects
int|WP_Comment, string given.
🪪 argument.type
at
src/wp-includes/rest-api/endpoints/class-wp-rest-comments-controller.
php:1058
- 1077 Access to an undefined property
- WP_Comment|WP_Error::$comment_approved.
- 🪪 property.notFound
- 💡 Learn more: https://phpstan.org/blog/solving-phpstan-access-to-und
- efined-property
- at
- src/wp-includes/rest-api/endpoints/class-wp-rest-comments-controller.
- php:1077
- 1085 Access to an undefined property WP_Comment|WP_Error::$comment_ID.
- 🪪 property.notFound
- 💡 Learn more: https://phpstan.org/blog/solving-phpstan-access-to-und
- efined-property
- at
- src/wp-includes/rest-api/endpoints/class-wp-rest-comments-controller.
- php:1085
1085 Parameter #1 $comment_id of function wp_trash_comment expects
int|WP_Comment, string given.
🪪 argument.type
at
src/wp-includes/rest-api/endpoints/class-wp-rest-comments-controller.
php:1085
- 1086 Access to an undefined property WP_Comment|WP_Error::$comment_ID.
- 🪪 property.notFound
- 💡 Learn more: https://phpstan.org/blog/solving-phpstan-access-to-und
- efined-property
- at
- src/wp-includes/rest-api/endpoints/class-wp-rest-comments-controller.
- php:1086
1087 Parameter #1 $item of method
WP_REST_Comments_Controller::prepare_item_for_response() expects
WP_Comment, array|WP_Comment|null given.
@@ -58377,12 +55529,6 @@
at
src/wp-includes/rest-api/endpoints/class-wp-rest-comments-controller.
php:1917
- 1981 Method WP_REST_Comments_Controller::check_comment_author_email()
- should return string|WP_Error but returns WP_Error|true.
- 🪪 return.type
- at
- src/wp-includes/rest-api/endpoints/class-wp-rest-comments-controller.
- php:1981
1995 Method
WP_REST_Comments_Controller::check_is_comment_content_allowed() has
parameter $prepared_comment with no value type specified in iterable
@@ -58548,35 +55694,6 @@
at
src/wp-includes/rest-api/endpoints/class-wp-rest-edit-site-export-con
troller.php:34
- 80 Cannot call method add_data() on string|WP_Error.
- 🪪 method.nonObject
- at
- src/wp-includes/rest-api/endpoints/class-wp-rest-edit-site-export-con
- troller.php:80
- 82 Method WP_REST_Edit_Site_Export_Controller::export() should return
- void|WP_Error but returns string|WP_Error.
- 🪪 return.type
- at
- src/wp-includes/rest-api/endpoints/class-wp-rest-edit-site-export-con
- troller.php:82
- 88 Parameter #1 $filename of function filesize expects string,
- string|WP_Error given.
- 🪪 argument.type
- at
- src/wp-includes/rest-api/endpoints/class-wp-rest-edit-site-export-con
- troller.php:88
- 90 Parameter #1 $filename of function readfile expects string,
- string|WP_Error given.
- 🪪 argument.type
- at
- src/wp-includes/rest-api/endpoints/class-wp-rest-edit-site-export-con
- troller.php:90
- 91 Parameter #1 $filename of function unlink expects string,
- string|WP_Error given.
- 🪪 argument.type
- at
- src/wp-includes/rest-api/endpoints/class-wp-rest-edit-site-export-con
- troller.php:91
------ -----------------------------------------------------------------------
------ -----------------------------------------------------------------------
@@ -58589,13 +55706,6 @@
at
src/wp-includes/rest-api/endpoints/class-wp-rest-font-collections-con
troller.php:34
- 113 Parameter #1 $response of method
- WP_REST_Controller::prepare_response_for_collection() expects
- WP_REST_Response, WP_Error|WP_REST_Response given.
- 🪪 argument.type
- at
- src/wp-includes/rest-api/endpoints/class-wp-rest-font-collections-con
- troller.php:113
119 Call to an undefined method WP_Error|WP_REST_Response::header().
🪪 method.notFound
at
@@ -58616,24 +55726,6 @@
at
src/wp-includes/rest-api/endpoints/class-wp-rest-font-collections-con
troller.php:140
- 187 Cannot call method add_data() on array|WP_Error.
- 🪪 method.nonObject
- at
- src/wp-includes/rest-api/endpoints/class-wp-rest-font-collections-con
- troller.php:187
- 188 Method
- WP_REST_Font_Collections_Controller::prepare_item_for_response()
- should return WP_Error|WP_REST_Response but returns array|WP_Error.
- 🪪 return.type
- at
- src/wp-includes/rest-api/endpoints/class-wp-rest-font-collections-con
- troller.php:188
- 202 Cannot access offset
- 'categories'|'description'|'font_families'|'name' on array|WP_Error.
- 🪪 offsetAccess.nonOffsetAccessible
- at
- src/wp-includes/rest-api/endpoints/class-wp-rest-font-collections-con
- troller.php:202
220 Call to an undefined method WP_Error|WP_REST_Response::add_links().
🪪 method.notFound
at
@@ -58702,24 +55794,6 @@
at
src/wp-includes/rest-api/endpoints/class-wp-rest-font-faces-controlle
r.php:38
- 140 Method WP_REST_Font_Faces_Controller::get_item_permissions_check()
- should return WP_Error|true but returns WP_Error|WP_Post.
- 🪪 return.type
- at
- src/wp-includes/rest-api/endpoints/class-wp-rest-font-faces-controlle
- r.php:140
- 143 Access to an undefined property WP_Error|WP_Post::$ID.
- 🪪 property.notFound
- 💡 Learn more: https://phpstan.org/blog/solving-phpstan-access-to-und
- efined-property
- at
- src/wp-includes/rest-api/endpoints/class-wp-rest-font-faces-controlle
- r.php:143
- 188 Cannot call method add_data() on WP_Error|true.
- 🪪 method.nonObject
- at
- src/wp-includes/rest-api/endpoints/class-wp-rest-font-faces-controlle
- r.php:188
254 Method WP_REST_Font_Faces_Controller::sanitize_font_face_settings()
return type has no value type specified in iterable type array.
🪪 missingType.iterableValue
@@ -58729,107 +55803,6 @@
at
src/wp-includes/rest-api/endpoints/class-wp-rest-font-faces-controlle
r.php:254
- 279 Method WP_REST_Font_Faces_Controller::get_items() should return
- WP_Error|WP_REST_Response but returns WP_Error|WP_Post.
- 🪪 return.type
- at
- src/wp-includes/rest-api/endpoints/class-wp-rest-font-faces-controlle
- r.php:279
- 296 Method WP_REST_Font_Faces_Controller::get_item() should return
- WP_Error|WP_REST_Response but returns WP_Error|WP_Post.
- 🪪 return.type
- at
- src/wp-includes/rest-api/endpoints/class-wp-rest-font-faces-controlle
- r.php:296
- 302 Method WP_REST_Font_Faces_Controller::get_item() should return
- WP_Error|WP_REST_Response but returns WP_Error|WP_Post.
- 🪪 return.type
- at
- src/wp-includes/rest-api/endpoints/class-wp-rest-font-faces-controlle
- r.php:302
- 305 Access to an undefined property WP_Error|WP_Post::$ID.
- 🪪 property.notFound
- 💡 Learn more: https://phpstan.org/blog/solving-phpstan-access-to-und
- efined-property
- at
- src/wp-includes/rest-api/endpoints/class-wp-rest-font-faces-controlle
- r.php:305
- 305 Access to an undefined property WP_Error|WP_Post::$post_parent.
- 🪪 property.notFound
- 💡 Learn more: https://phpstan.org/blog/solving-phpstan-access-to-und
- efined-property
- at
- src/wp-includes/rest-api/endpoints/class-wp-rest-font-faces-controlle
- r.php:305
- 309 Access to an undefined property WP_Error|WP_Post::$ID.
- 🪪 property.notFound
- 💡 Learn more: https://phpstan.org/blog/solving-phpstan-access-to-und
- efined-property
- at
- src/wp-includes/rest-api/endpoints/class-wp-rest-font-faces-controlle
- r.php:309
- 328 Method WP_REST_Font_Faces_Controller::create_item() should return
- WP_Error|WP_REST_Response but returns WP_Error|WP_Post.
- 🪪 return.type
- at
- src/wp-includes/rest-api/endpoints/class-wp-rest-font-faces-controlle
- r.php:328
- 372 Method WP_REST_Font_Faces_Controller::create_item() should return
- WP_Error|WP_REST_Response but returns array|WP_Error.
- 🪪 return.type
- at
- src/wp-includes/rest-api/endpoints/class-wp-rest-font-faces-controlle
- r.php:372
- 375 Cannot access offset 'url' on array|WP_Error.
- 🪪 offsetAccess.nonOffsetAccessible
- at
- src/wp-includes/rest-api/endpoints/class-wp-rest-font-faces-controlle
- r.php:375
- 376 Cannot access offset 'file' on array|WP_Error.
- 🪪 offsetAccess.nonOffsetAccessible
- at
- src/wp-includes/rest-api/endpoints/class-wp-rest-font-faces-controlle
- r.php:376
- 391 Access to an undefined property WP_Error|WP_REST_Response::$data.
- 🪪 property.notFound
- 💡 Learn more: https://phpstan.org/blog/solving-phpstan-access-to-und
- efined-property
- at
- src/wp-includes/rest-api/endpoints/class-wp-rest-font-faces-controlle
- r.php:391
- 411 Method WP_REST_Font_Faces_Controller::delete_item() should return
- WP_Error|WP_REST_Response but returns WP_Error|WP_Post.
- 🪪 return.type
- at
- src/wp-includes/rest-api/endpoints/class-wp-rest-font-faces-controlle
- r.php:411
- 416 Method WP_REST_Font_Faces_Controller::delete_item() should return
- WP_Error|WP_REST_Response but returns WP_Error|WP_Post.
- 🪪 return.type
- at
- src/wp-includes/rest-api/endpoints/class-wp-rest-font-faces-controlle
- r.php:416
- 419 Access to an undefined property WP_Error|WP_Post::$ID.
- 🪪 property.notFound
- 💡 Learn more: https://phpstan.org/blog/solving-phpstan-access-to-und
- efined-property
- at
- src/wp-includes/rest-api/endpoints/class-wp-rest-font-faces-controlle
- r.php:419
- 419 Access to an undefined property WP_Error|WP_Post::$post_parent.
- 🪪 property.notFound
- 💡 Learn more: https://phpstan.org/blog/solving-phpstan-access-to-und
- efined-property
- at
- src/wp-includes/rest-api/endpoints/class-wp-rest-font-faces-controlle
- r.php:419
- 423 Access to an undefined property WP_Error|WP_Post::$ID.
- 🪪 property.notFound
- 💡 Learn more: https://phpstan.org/blog/solving-phpstan-access-to-und
- efined-property
- at
- src/wp-includes/rest-api/endpoints/class-wp-rest-font-faces-controlle
- r.php:423
479 Call to an undefined method WP_Error|WP_REST_Response::add_links().
🪪 method.notFound
at
@@ -58933,24 +55906,6 @@
at
src/wp-includes/rest-api/endpoints/class-wp-rest-font-families-contro
ller.php:31
- 66 Method WP_REST_Font_Families_Controller::get_item_permissions_check()
- should return WP_Error|true but returns WP_Error|WP_Post.
- 🪪 return.type
- at
- src/wp-includes/rest-api/endpoints/class-wp-rest-font-families-contro
- ller.php:66
- 69 Access to an undefined property WP_Error|WP_Post::$ID.
- 🪪 property.notFound
- 💡 Learn more: https://phpstan.org/blog/solving-phpstan-access-to-und
- efined-property
- at
- src/wp-includes/rest-api/endpoints/class-wp-rest-font-families-contro
- ller.php:69
- 132 Cannot call method add_data() on WP_Error|true.
- 🪪 method.nonObject
- at
- src/wp-includes/rest-api/endpoints/class-wp-rest-font-families-contro
- ller.php:132
159 Method
WP_REST_Font_Families_Controller::sanitize_font_family_settings()
return type has no value type specified in iterable type array.
@@ -59027,26 +55982,6 @@
at
src/wp-includes/rest-api/endpoints/class-wp-rest-font-families-contro
ller.php:502
- 531 Method WP_REST_Font_Families_Controller::prepare_item_for_database()
- should return stdClass|WP_Error but returns WP_Error|WP_Post.
- 🪪 return.type
- at
- src/wp-includes/rest-api/endpoints/class-wp-rest-font-families-contro
- ller.php:531
- 534 Access to an undefined property WP_Error|WP_Post::$ID.
- 🪪 property.notFound
- 💡 Learn more: https://phpstan.org/blog/solving-phpstan-access-to-und
- efined-property
- at
- src/wp-includes/rest-api/endpoints/class-wp-rest-font-families-contro
- ller.php:534
- 535 Parameter #1 $post of method
- WP_REST_Font_Families_Controller::get_settings_from_post() expects
- WP_Post, WP_Error|WP_Post given.
- 🪪 argument.type
- at
- src/wp-includes/rest-api/endpoints/class-wp-rest-font-families-contro
- ller.php:535
561 Method WP_REST_Font_Families_Controller::get_settings_from_post()
return type has no value type specified in iterable type array.
🪪 missingType.iterableValue
@@ -59087,51 +56022,11 @@
at
src/wp-includes/rest-api/endpoints/class-wp-rest-global-styles-contro
ller.php:38
- 169 Method WP_REST_Global_Styles_Controller::get_item_permissions_check()
- should return WP_Error|true but returns WP_Error|WP_Post.
- 🪪 return.type
- at
- src/wp-includes/rest-api/endpoints/class-wp-rest-global-styles-contro
- ller.php:169
- 172 Parameter #1 $post of method
- WP_REST_Posts_Controller::check_update_permission() expects WP_Post,
- WP_Error|WP_Post given.
- 🪪 argument.type
- at
- src/wp-includes/rest-api/endpoints/class-wp-rest-global-styles-contro
- ller.php:172
- 180 Parameter #1 $post of method
- WP_REST_Global_Styles_Controller::check_read_permission() expects
- WP_Post, WP_Error|WP_Post given.
- 🪪 argument.type
- at
- src/wp-includes/rest-api/endpoints/class-wp-rest-global-styles-contro
- ller.php:180
- 214 Method
- WP_REST_Global_Styles_Controller::update_item_permissions_check()
- should return WP_Error|true but returns WP_Error|WP_Post.
- 🪪 return.type
- at
- src/wp-includes/rest-api/endpoints/class-wp-rest-global-styles-contro
- ller.php:214
- 217 Parameter #1 $post of method
- WP_REST_Posts_Controller::check_update_permission() expects WP_Post,
- WP_Error|WP_Post given.
- 🪪 argument.type
- at
- src/wp-includes/rest-api/endpoints/class-wp-rest-global-styles-contro
- ller.php:217
245 Cannot access property $post_content on array|WP_Post.
🪪 property.nonObject
at
src/wp-includes/rest-api/endpoints/class-wp-rest-global-styles-contro
ller.php:245
- 259 Method WP_REST_Global_Styles_Controller::prepare_item_for_database()
- should return stdClass|WP_Error but returns WP_Error|true.
- 🪪 return.type
- at
- src/wp-includes/rest-api/endpoints/class-wp-rest-global-styles-contro
- ller.php:259
370 Call to an undefined method WP_Error|WP_REST_Response::add_links().
🪪 method.notFound
at
@@ -59165,11 +56060,6 @@
at
src/wp-includes/rest-api/endpoints/class-wp-rest-global-styles-contro
ller.php:392
- 406 Cannot access offset 'count' on array|WP_Error.
- 🪪 offsetAccess.nonOffsetAccessible
- at
- src/wp-includes/rest-api/endpoints/class-wp-rest-global-styles-contro
- ller.php:406
428 Method WP_REST_Global_Styles_Controller::get_available_actions()
return type has no value type specified in iterable type array.
🪪 missingType.iterableValue
@@ -59254,38 +56144,6 @@
at
src/wp-includes/rest-api/endpoints/class-wp-rest-global-styles-revisi
ons-controller.php:128
- 157 Method WP_REST_Global_Styles_Revisions_Controller::get_items() should
- return WP_Error|WP_REST_Response but returns WP_Error|WP_Post.
- 🪪 return.type
- at
- src/wp-includes/rest-api/endpoints/class-wp-rest-global-styles-revisi
- ons-controller.php:157
- 160 Access to an undefined property WP_Error|WP_Post::$post_content.
- 🪪 property.notFound
- 💡 Learn more: https://phpstan.org/blog/solving-phpstan-access-to-und
- efined-property
- at
- src/wp-includes/rest-api/endpoints/class-wp-rest-global-styles-revisi
- ons-controller.php:160
- 163 Method WP_REST_Global_Styles_Revisions_Controller::get_items() should
- return WP_Error|WP_REST_Response but returns array|WP_Error.
- 🪪 return.type
- at
- src/wp-includes/rest-api/endpoints/class-wp-rest-global-styles-revisi
- ons-controller.php:163
- 168 Parameter #1 $post of function wp_revisions_enabled expects WP_Post,
- WP_Error|WP_Post given.
- 🪪 argument.type
- at
- src/wp-includes/rest-api/endpoints/class-wp-rest-global-styles-revisi
- ons-controller.php:168
- 171 Access to an undefined property WP_Error|WP_Post::$ID.
- 🪪 property.notFound
- 💡 Learn more: https://phpstan.org/blog/solving-phpstan-access-to-und
- efined-property
- at
- src/wp-includes/rest-api/endpoints/class-wp-rest-global-styles-revisi
- ons-controller.php:171
251 Parameter #1 $post of method
WP_REST_Global_Styles_Revisions_Controller::prepare_item_for_response
() expects WP_Post, int|WP_Post given.
@@ -59320,30 +56178,6 @@
at
src/wp-includes/rest-api/endpoints/class-wp-rest-global-styles-revisi
ons-controller.php:281
- 307 Method
- WP_REST_Global_Styles_Revisions_Controller::prepare_item_for_response
- () should return WP_Error|WP_REST_Response but returns
- array|WP_Error.
- 🪪 return.type
- at
- src/wp-includes/rest-api/endpoints/class-wp-rest-global-styles-revisi
- ons-controller.php:307
- 314 Cannot access offset 'settings' on array|WP_Error.
- 🪪 offsetAccess.nonOffsetAccessible
- at
- src/wp-includes/rest-api/endpoints/class-wp-rest-global-styles-revisi
- ons-controller.php:314
- 314 Cannot access offset 'styles' on array|WP_Error.
- 🪪 offsetAccess.nonOffsetAccessible
- at
- src/wp-includes/rest-api/endpoints/class-wp-rest-global-styles-revisi
- ons-controller.php:314
- 324 Parameter #1 $theme_json of class WP_Theme_JSON constructor expects
- array, array|WP_Error given.
- 🪪 argument.type
- at
- src/wp-includes/rest-api/endpoints/class-wp-rest-global-styles-revisi
- ons-controller.php:324
359 Access to an undefined property WP_Error|WP_Post::$ID.
🪪 property.notFound
💡 Learn more: https://phpstan.org/blog/solving-phpstan-access-to-und
@@ -59398,19 +56232,6 @@
at
src/wp-includes/rest-api/endpoints/class-wp-rest-icons-controller.php
:126
- 140 Method WP_REST_Icons_Controller::get_item() should return
- WP_Error|WP_REST_Response but returns array|WP_Error.
- 🪪 return.type
- at
- src/wp-includes/rest-api/endpoints/class-wp-rest-icons-controller.php
- :140
- 143 Parameter #1 $item of method
- WP_REST_Icons_Controller::prepare_item_for_response() expects array,
- array|WP_Error given.
- 🪪 argument.type
- at
- src/wp-includes/rest-api/endpoints/class-wp-rest-icons-controller.php
- :143
153 Method WP_REST_Icons_Controller::get_icon() return type has no value
type specified in iterable type array.
🪪 missingType.iterableValue
@@ -59458,82 +56279,12 @@
at
src/wp-includes/rest-api/endpoints/class-wp-rest-menu-items-controlle
r.php:107
- 135 Method WP_REST_Menu_Items_Controller::create_item() should return
- WP_Error|WP_REST_Response but returns object.
- 🪪 return.type
- at
- src/wp-includes/rest-api/endpoints/class-wp-rest-menu-items-controlle
- r.php:135
139 Parameter #3 $menu_item_data of function wp_update_nav_menu_item
expects array, array|string given.
🪪 argument.type
at
src/wp-includes/rest-api/endpoints/class-wp-rest-menu-items-controlle
r.php:139
- 141 Cannot call method get_error_code() on int|WP_Error.
- 🪪 method.nonObject
- at
- src/wp-includes/rest-api/endpoints/class-wp-rest-menu-items-controlle
- r.php:141
- 142 Cannot call method add_data() on int|WP_Error.
- 🪪 method.nonObject
- at
- src/wp-includes/rest-api/endpoints/class-wp-rest-menu-items-controlle
- r.php:142
- 144 Cannot call method add_data() on int|WP_Error.
- 🪪 method.nonObject
- at
- src/wp-includes/rest-api/endpoints/class-wp-rest-menu-items-controlle
- r.php:144
- 147 Method WP_REST_Menu_Items_Controller::create_item() should return
- WP_Error|WP_REST_Response but returns int|WP_Error.
- 🪪 return.type
- at
- src/wp-includes/rest-api/endpoints/class-wp-rest-menu-items-controlle
- r.php:147
- 150 Parameter #1 $id of method
- WP_REST_Menu_Items_Controller::get_nav_menu_item() expects int,
- int|WP_Error given.
- 🪪 argument.type
- at
- src/wp-includes/rest-api/endpoints/class-wp-rest-menu-items-controlle
- r.php:150
- 152 Call to an undefined method object::add_data().
- 🪪 method.notFound
- at
- src/wp-includes/rest-api/endpoints/class-wp-rest-menu-items-controlle
- r.php:152
- 154 Method WP_REST_Menu_Items_Controller::create_item() should return
- WP_Error|WP_REST_Response but returns object.
- 🪪 return.type
- at
- src/wp-includes/rest-api/endpoints/class-wp-rest-menu-items-controlle
- r.php:154
- 171 Parameter #2 $object_id of method WP_REST_Meta_Fields::update_value()
- expects int, int|WP_Error given.
- 🪪 argument.type
- at
- src/wp-includes/rest-api/endpoints/class-wp-rest-menu-items-controlle
- r.php:171
- 178 Parameter #1 $id of method
- WP_REST_Menu_Items_Controller::get_nav_menu_item() expects int,
- int|WP_Error given.
- 🪪 argument.type
- at
- src/wp-includes/rest-api/endpoints/class-wp-rest-menu-items-controlle
- r.php:178
- 182 Method WP_REST_Menu_Items_Controller::create_item() should return
- WP_Error|WP_REST_Response but returns WP_Error|true.
- 🪪 return.type
- at
- src/wp-includes/rest-api/endpoints/class-wp-rest-menu-items-controlle
- r.php:182
- 198 Parameter #1 $post of function get_post expects int|WP_Post|null,
- int|WP_Error given.
- 🪪 argument.type
- at
- src/wp-includes/rest-api/endpoints/class-wp-rest-menu-items-controlle
- r.php:198
199 Parameter #1 $post of function wp_after_insert_post expects
int|WP_Post, array|WP_Post|null given.
🪪 argument.type
@@ -59557,69 +56308,12 @@
at
src/wp-includes/rest-api/endpoints/class-wp-rest-menu-items-controlle
r.php:205
- 205 Parameter #4 ...$values of function sprintf expects
- bool|float|int|string|null, int|WP_Error given.
- 🪪 argument.type
- at
- src/wp-includes/rest-api/endpoints/class-wp-rest-menu-items-controlle
- r.php:205
- 221 Method WP_REST_Menu_Items_Controller::update_item() should return
- WP_Error|WP_REST_Response but returns object.
- 🪪 return.type
- at
- src/wp-includes/rest-api/endpoints/class-wp-rest-menu-items-controlle
- r.php:221
- 227 Method WP_REST_Menu_Items_Controller::update_item() should return
- WP_Error|WP_REST_Response but returns object.
- 🪪 return.type
- at
- src/wp-includes/rest-api/endpoints/class-wp-rest-menu-items-controlle
- r.php:227
232 Parameter #3 $menu_item_data of function wp_update_nav_menu_item
expects array, array|string given.
🪪 argument.type
at
src/wp-includes/rest-api/endpoints/class-wp-rest-menu-items-controlle
r.php:232
- 235 Cannot call method get_error_code() on int|WP_Error.
- 🪪 method.nonObject
- at
- src/wp-includes/rest-api/endpoints/class-wp-rest-menu-items-controlle
- r.php:235
- 236 Cannot call method add_data() on int|WP_Error.
- 🪪 method.nonObject
- at
- src/wp-includes/rest-api/endpoints/class-wp-rest-menu-items-controlle
- r.php:236
- 238 Cannot call method add_data() on int|WP_Error.
- 🪪 method.nonObject
- at
- src/wp-includes/rest-api/endpoints/class-wp-rest-menu-items-controlle
- r.php:238
- 241 Method WP_REST_Menu_Items_Controller::update_item() should return
- WP_Error|WP_REST_Response but returns int|WP_Error.
- 🪪 return.type
- at
- src/wp-includes/rest-api/endpoints/class-wp-rest-menu-items-controlle
- r.php:241
- 244 Parameter #1 $id of method
- WP_REST_Menu_Items_Controller::get_nav_menu_item() expects int,
- int|WP_Error given.
- 🪪 argument.type
- at
- src/wp-includes/rest-api/endpoints/class-wp-rest-menu-items-controlle
- r.php:244
- 246 Call to an undefined method object::add_data().
- 🪪 method.notFound
- at
- src/wp-includes/rest-api/endpoints/class-wp-rest-menu-items-controlle
- r.php:246
- 248 Method WP_REST_Menu_Items_Controller::update_item() should return
- WP_Error|WP_REST_Response but returns object.
- 🪪 return.type
- at
- src/wp-includes/rest-api/endpoints/class-wp-rest-menu-items-controlle
- r.php:248
257 Access to an undefined property object::$ID.
🪪 property.notFound
💡 Learn more: https://phpstan.org/blog/solving-phpstan-access-to-und
@@ -59627,25 +56321,6 @@
at
src/wp-includes/rest-api/endpoints/class-wp-rest-menu-items-controlle
r.php:257
- 264 Parameter #1 $post of function get_post expects int|WP_Post|null,
- int|WP_Error given.
- 🪪 argument.type
- at
- src/wp-includes/rest-api/endpoints/class-wp-rest-menu-items-controlle
- r.php:264
- 265 Parameter #1 $id of method
- WP_REST_Menu_Items_Controller::get_nav_menu_item() expects int,
- int|WP_Error given.
- 🪪 argument.type
- at
- src/wp-includes/rest-api/endpoints/class-wp-rest-menu-items-controlle
- r.php:265
- 269 Method WP_REST_Menu_Items_Controller::update_item() should return
- WP_Error|WP_REST_Response but returns WP_Error|true.
- 🪪 return.type
- at
- src/wp-includes/rest-api/endpoints/class-wp-rest-menu-items-controlle
- r.php:269
277 Parameter #1 $post of function wp_after_insert_post expects
int|WP_Post, array|WP_Post|null given.
🪪 argument.type
@@ -59665,18 +56340,6 @@
at
src/wp-includes/rest-api/endpoints/class-wp-rest-menu-items-controlle
r.php:279
- 279 Parameter #1 $post of function get_post expects int|WP_Post|null,
- int|WP_Error given.
- 🪪 argument.type
- at
- src/wp-includes/rest-api/endpoints/class-wp-rest-menu-items-controlle
- r.php:279
- 295 Method WP_REST_Menu_Items_Controller::delete_item() should return
- WP_Error|WP_REST_Response but returns object.
- 🪪 return.type
- at
- src/wp-includes/rest-api/endpoints/class-wp-rest-menu-items-controlle
- r.php:295
304 Parameter #1 $item of method
WP_REST_Menu_Items_Controller::prepare_item_for_response() expects
WP_Post, array|WP_Post|null given.
@@ -59781,7 +56444,7 @@
src/wp-includes/rest-api/endpoints/class-wp-rest-menu-items-controlle
r.php:414
439 Parameter #2 $term of function get_term_field expects int|WP_Term,
- array|WP_Error|WP_Term given.
+ array|WP_Term given.
🪪 argument.type
at
src/wp-includes/rest-api/endpoints/class-wp-rest-menu-items-controlle
@@ -60004,12 +56667,6 @@
at
src/wp-includes/rest-api/endpoints/class-wp-rest-menu-items-controlle
r.php:999
- 1034 Parameter #1 $stack of function array_shift expects array,
- array|WP_Error given.
- 🪪 argument.type
- at
- src/wp-includes/rest-api/endpoints/class-wp-rest-menu-items-controlle
- r.php:1034
------ -----------------------------------------------------------------------
------ -----------------------------------------------------------------------
@@ -60059,12 +56716,6 @@
------ -----------------------------------------------------------------------
Line wp-includes/rest-api/endpoints/class-wp-rest-menus-controller.php
------ -----------------------------------------------------------------------
- 70 Parameter #1 $menu of function wp_get_nav_menu_object expects
- int|string|WP_Term, WP_Error|WP_Term given.
- 🪪 argument.type
- at
- src/wp-includes/rest-api/endpoints/class-wp-rest-menus-controller.php
- :70
71 Cannot access property $auto_add on WP_Term|false.
🪪 property.nonObject
at
@@ -60130,11 +56781,6 @@
at
src/wp-includes/rest-api/endpoints/class-wp-rest-menus-controller.php
:219
- 227 Cannot call method get_error_codes() on int|WP_Error.
- 🪪 method.nonObject
- at
- src/wp-includes/rest-api/endpoints/class-wp-rest-menus-controller.php
- :227
228 Access to an undefined property object::$menu-name.
🪪 property.notFound
💡 Learn more: https://phpstan.org/blog/solving-phpstan-access-to-und
@@ -60144,41 +56790,14 @@
:228
229 Cannot access property $term_id on array|WP_Term|false.
🪪 property.nonObject
- at
- src/wp-includes/rest-api/endpoints/class-wp-rest-menus-controller.php
- :229
- 229 Cannot call method add_data() on int|WP_Error.
- 🪪 method.nonObject
at
src/wp-includes/rest-api/endpoints/class-wp-rest-menus-controller.php
:229
- 230 Cannot call method add_data() on int|WP_Error.
- 🪪 method.nonObject
- at
- src/wp-includes/rest-api/endpoints/class-wp-rest-menus-controller.php
- :230
233 Cannot access property $term_id on array|WP_Term|false.
🪪 property.nonObject
at
src/wp-includes/rest-api/endpoints/class-wp-rest-menus-controller.php
:233
- 237 Cannot call method add_data() on int|WP_Error.
- 🪪 method.nonObject
- at
- src/wp-includes/rest-api/endpoints/class-wp-rest-menus-controller.php
- :237
- 240 Method WP_REST_Menus_Controller::create_item() should return
- WP_Error|WP_REST_Response but returns int|WP_Error.
- 🪪 return.type
- at
- src/wp-includes/rest-api/endpoints/class-wp-rest-menus-controller.php
- :240
- 243 Parameter #1 $id of method WP_REST_Menus_Controller::get_term()
- expects int, int|WP_Error given.
- 🪪 argument.type
- at
- src/wp-includes/rest-api/endpoints/class-wp-rest-menus-controller.php
- :243
250 Access to an undefined property WP_Error|WP_Term::$term_id.
🪪 property.notFound
💡 Learn more: https://phpstan.org/blog/solving-phpstan-access-to-und
@@ -60193,12 +56812,6 @@
at
src/wp-includes/rest-api/endpoints/class-wp-rest-menus-controller.php
:257
- 260 Method WP_REST_Menus_Controller::create_item() should return
- WP_Error|WP_REST_Response but returns WP_Error|true.
- 🪪 return.type
- at
- src/wp-includes/rest-api/endpoints/class-wp-rest-menus-controller.php
- :260
263 Access to an undefined property WP_Error|WP_Term::$term_id.
🪪 property.notFound
💡 Learn more: https://phpstan.org/blog/solving-phpstan-access-to-und
@@ -60206,12 +56819,6 @@
at
src/wp-includes/rest-api/endpoints/class-wp-rest-menus-controller.php
:263
- 268 Method WP_REST_Menus_Controller::create_item() should return
- WP_Error|WP_REST_Response but returns WP_Error|true.
- 🪪 return.type
- at
- src/wp-includes/rest-api/endpoints/class-wp-rest-menus-controller.php
- :268
276 Parameter #1 $term of method
WP_REST_Menus_Controller::prepare_item_for_response() expects
WP_Term, WP_Error|WP_Term given.
@@ -60236,19 +56843,6 @@
at
src/wp-includes/rest-api/endpoints/class-wp-rest-menus-controller.php
:280
- 296 Method WP_REST_Menus_Controller::update_item() should return
- WP_Error|WP_REST_Response but returns WP_Error|WP_Term.
- 🪪 return.type
- at
- src/wp-includes/rest-api/endpoints/class-wp-rest-menus-controller.php
- :296
- 317 Access to an undefined property WP_Error|WP_Term::$name.
- 🪪 property.notFound
- 💡 Learn more: https://phpstan.org/blog/solving-phpstan-access-to-und
- efined-property
- at
- src/wp-includes/rest-api/endpoints/class-wp-rest-menus-controller.php
- :317
317 Access to an undefined property object::$menu-name.
🪪 property.notFound
💡 Learn more: https://phpstan.org/blog/solving-phpstan-access-to-und
@@ -60256,32 +56850,12 @@
at
src/wp-includes/rest-api/endpoints/class-wp-rest-menus-controller.php
:317
- 320 Access to an undefined property WP_Error|WP_Term::$term_id.
- 🪪 property.notFound
- 💡 Learn more: https://phpstan.org/blog/solving-phpstan-access-to-und
- efined-property
- at
- src/wp-includes/rest-api/endpoints/class-wp-rest-menus-controller.php
- :320
320 Parameter #2 $menu_data of function wp_update_nav_menu_object expects
array, array|string given.
🪪 argument.type
at
src/wp-includes/rest-api/endpoints/class-wp-rest-menus-controller.php
:320
- 323 Method WP_REST_Menus_Controller::update_item() should return
- WP_Error|WP_REST_Response but returns int|WP_Error.
- 🪪 return.type
- at
- src/wp-includes/rest-api/endpoints/class-wp-rest-menus-controller.php
- :323
- 327 Access to an undefined property WP_Error|WP_Term::$term_id.
- 🪪 property.notFound
- 💡 Learn more: https://phpstan.org/blog/solving-phpstan-access-to-und
- efined-property
- at
- src/wp-includes/rest-api/endpoints/class-wp-rest-menus-controller.php
- :327
334 Cannot access property $term_id on array|WP_Error|WP_Term.
🪪 property.nonObject
at
@@ -60292,12 +56866,6 @@
at
src/wp-includes/rest-api/endpoints/class-wp-rest-menus-controller.php
:341
- 344 Method WP_REST_Menus_Controller::update_item() should return
- WP_Error|WP_REST_Response but returns WP_Error|true.
- 🪪 return.type
- at
- src/wp-includes/rest-api/endpoints/class-wp-rest-menus-controller.php
- :344
347 Cannot access property $term_id on array|WP_Error|WP_Term.
🪪 property.nonObject
at
@@ -60310,12 +56878,6 @@
at
src/wp-includes/rest-api/endpoints/class-wp-rest-menus-controller.php
:349
- 352 Method WP_REST_Menus_Controller::update_item() should return
- WP_Error|WP_REST_Response but returns WP_Error|true.
- 🪪 return.type
- at
- src/wp-includes/rest-api/endpoints/class-wp-rest-menus-controller.php
- :352
360 Parameter #1 $term of method
WP_REST_Menus_Controller::prepare_item_for_response() expects
WP_Term, array|WP_Error|WP_Term|null given.
@@ -60323,25 +56885,6 @@
at
src/wp-includes/rest-api/endpoints/class-wp-rest-menus-controller.php
:360
- 376 Method WP_REST_Menus_Controller::delete_item() should return
- WP_Error|WP_REST_Response but returns WP_Error|WP_Term.
- 🪪 return.type
- at
- src/wp-includes/rest-api/endpoints/class-wp-rest-menus-controller.php
- :376
- 387 Parameter #1 $term of method
- WP_REST_Menus_Controller::prepare_item_for_response() expects
- WP_Term, WP_Error|WP_Term given.
- 🪪 argument.type
- at
- src/wp-includes/rest-api/endpoints/class-wp-rest-menus-controller.php
- :387
- 389 Parameter #1 $menu of function wp_delete_nav_menu expects
- int|string|WP_Term, WP_Error|WP_Term given.
- 🪪 argument.type
- at
- src/wp-includes/rest-api/endpoints/class-wp-rest-menus-controller.php
- :389
450 Parameter #1 $input of function array_splice expects array,
non-empty-array given.
🪪 argument.type
@@ -60524,85 +57067,11 @@
at
src/wp-includes/rest-api/endpoints/class-wp-rest-plugins-controller.p
hp:148
- 194 Method WP_REST_Plugins_Controller::get_item() should return
- WP_Error|WP_REST_Response but returns array|WP_Error.
- 🪪 return.type
- at
- src/wp-includes/rest-api/endpoints/class-wp-rest-plugins-controller.p
- hp:194
- 197 Parameter #1 $item of method
- WP_REST_Plugins_Controller::prepare_item_for_response() expects
- array, array|WP_Error given.
- 🪪 argument.type
- at
- src/wp-includes/rest-api/endpoints/class-wp-rest-plugins-controller.p
- hp:197
- 286 Method WP_REST_Plugins_Controller::create_item() should return
- WP_Error|WP_REST_Response but returns WP_Error|true.
- 🪪 return.type
- at
- src/wp-includes/rest-api/endpoints/class-wp-rest-plugins-controller.p
- hp:286
- 301 Cannot call method get_error_message() on array|object.
- 🪪 method.nonObject
- at
- src/wp-includes/rest-api/endpoints/class-wp-rest-plugins-controller.p
- hp:301
- 302 Cannot call method add_data() on array|object.
- 🪪 method.nonObject
- at
- src/wp-includes/rest-api/endpoints/class-wp-rest-plugins-controller.p
- hp:302
- 304 Cannot call method add_data() on array|object.
- 🪪 method.nonObject
- at
- src/wp-includes/rest-api/endpoints/class-wp-rest-plugins-controller.p
- hp:304
- 307 Method WP_REST_Plugins_Controller::create_item() should return
- WP_Error|WP_REST_Response but returns array|object.
- 🪪 return.type
- at
- src/wp-includes/rest-api/endpoints/class-wp-rest-plugins-controller.p
- hp:307
313 Cannot access property $download_link on array|object.
🪪 property.nonObject
at
src/wp-includes/rest-api/endpoints/class-wp-rest-plugins-controller.p
hp:313
- 316 Cannot call method add_data() on bool|WP_Error.
- 🪪 method.nonObject
- at
- src/wp-includes/rest-api/endpoints/class-wp-rest-plugins-controller.p
- hp:316
- 318 Method WP_REST_Plugins_Controller::create_item() should return
- WP_Error|WP_REST_Response but returns bool|WP_Error.
- 🪪 return.type
- at
- src/wp-includes/rest-api/endpoints/class-wp-rest-plugins-controller.p
- hp:318
- 323 Cannot call method add_data() on bool|string|WP_Error.
- 🪪 method.nonObject
- at
- src/wp-includes/rest-api/endpoints/class-wp-rest-plugins-controller.p
- hp:323
- 325 Method WP_REST_Plugins_Controller::create_item() should return
- WP_Error|WP_REST_Response but returns bool|string|WP_Error.
- 🪪 return.type
- at
- src/wp-includes/rest-api/endpoints/class-wp-rest-plugins-controller.p
- hp:325
- 368 Method WP_REST_Plugins_Controller::create_item() should return
- WP_Error|WP_REST_Response but returns WP_Error|true.
- 🪪 return.type
- at
- src/wp-includes/rest-api/endpoints/class-wp-rest-plugins-controller.p
- hp:368
- 374 Method WP_REST_Plugins_Controller::create_item() should return
- WP_Error|WP_REST_Response but returns WP_Error|true.
- 🪪 return.type
- at
- src/wp-includes/rest-api/endpoints/class-wp-rest-plugins-controller.p
- hp:374
387 Cannot access property $language_packs on array|object.
🪪 property.nonObject
at
@@ -60618,62 +57087,13 @@
at
src/wp-includes/rest-api/endpoints/class-wp-rest-plugins-controller.p
hp:410
- 467 Method WP_REST_Plugins_Controller::update_item() should return
- WP_Error|WP_REST_Response but returns array|WP_Error.
- 🪪 return.type
- at
- src/wp-includes/rest-api/endpoints/class-wp-rest-plugins-controller.p
- hp:467
- 476 Method WP_REST_Plugins_Controller::update_item() should return
- WP_Error|WP_REST_Response but returns WP_Error|true.
- 🪪 return.type
- at
- src/wp-includes/rest-api/endpoints/class-wp-rest-plugins-controller.p
- hp:476
480 Parameter #1 $data_object of method
WP_REST_Controller::update_additional_fields_for_object() expects
- object, array|WP_Error given.
+ object, array given.
🪪 argument.type
at
src/wp-includes/rest-api/endpoints/class-wp-rest-plugins-controller.p
hp:480
- 484 Parameter #1 $item of method
- WP_REST_Plugins_Controller::prepare_item_for_response() expects
- array, array|WP_Error given.
- 🪪 argument.type
- at
- src/wp-includes/rest-api/endpoints/class-wp-rest-plugins-controller.p
- hp:484
- 536 Method WP_REST_Plugins_Controller::delete_item() should return
- WP_Error|WP_REST_Response but returns array|WP_Error.
- 🪪 return.type
- at
- src/wp-includes/rest-api/endpoints/class-wp-rest-plugins-controller.p
- hp:536
- 549 Method WP_REST_Plugins_Controller::delete_item() should return
- WP_Error|WP_REST_Response but returns WP_Error|true.
- 🪪 return.type
- at
- src/wp-includes/rest-api/endpoints/class-wp-rest-plugins-controller.p
- hp:549
- 552 Parameter #1 $item of method
- WP_REST_Plugins_Controller::prepare_item_for_response() expects
- array, array|WP_Error given.
- 🪪 argument.type
- at
- src/wp-includes/rest-api/endpoints/class-wp-rest-plugins-controller.p
- hp:552
- 556 Cannot call method add_data() on bool|WP_Error.
- 🪪 method.nonObject
- at
- src/wp-includes/rest-api/endpoints/class-wp-rest-plugins-controller.p
- hp:556
- 558 Method WP_REST_Plugins_Controller::delete_item() should return
- WP_Error|WP_REST_Response but returns bool|WP_Error|null.
- 🪪 return.type
- at
- src/wp-includes/rest-api/endpoints/class-wp-rest-plugins-controller.p
- hp:558
564 Call to an undefined method WP_Error|WP_REST_Response::get_data().
🪪 method.notFound
at
@@ -60999,176 +57419,23 @@
at
src/wp-includes/rest-api/endpoints/class-wp-rest-posts-controller.php
:539
- 583 Method WP_REST_Posts_Controller::get_item_permissions_check() should
- return bool|WP_Error but returns WP_Error|WP_Post.
- 🪪 return.type
- at
- src/wp-includes/rest-api/endpoints/class-wp-rest-posts-controller.php
- :583
- 586 Parameter #1 $post of method
- WP_REST_Posts_Controller::check_update_permission() expects WP_Post,
- WP_Error|WP_Post given.
- 🪪 argument.type
- at
- src/wp-includes/rest-api/endpoints/class-wp-rest-posts-controller.php
- :586
- 596 Access to an undefined property WP_Error|WP_Post::$post_password.
- 🪪 property.notFound
- 💡 Learn more: https://phpstan.org/blog/solving-phpstan-access-to-und
- efined-property
- at
- src/wp-includes/rest-api/endpoints/class-wp-rest-posts-controller.php
- :596
- 611 Parameter #1 $post of method
- WP_REST_Posts_Controller::check_read_permission() expects WP_Post,
- WP_Error|WP_Post given.
- 🪪 argument.type
- at
- src/wp-includes/rest-api/endpoints/class-wp-rest-posts-controller.php
- :611
- 666 Method WP_REST_Posts_Controller::get_item() should return
- WP_Error|WP_REST_Response but returns WP_Error|WP_Post.
- 🪪 return.type
- at
- src/wp-includes/rest-api/endpoints/class-wp-rest-posts-controller.php
- :666
- 669 Parameter #1 $item of method
- WP_REST_Posts_Controller::prepare_item_for_response() expects
- WP_Post, WP_Error|WP_Post given.
- 🪪 argument.type
- at
- src/wp-includes/rest-api/endpoints/class-wp-rest-posts-controller.php
- :669
- 672 Access to an undefined property WP_Error|WP_Post::$post_type.
- 🪪 property.notFound
- 💡 Learn more: https://phpstan.org/blog/solving-phpstan-access-to-und
- efined-property
- at
- src/wp-includes/rest-api/endpoints/class-wp-rest-posts-controller.php
- :672
- 673 Access to an undefined property WP_Error|WP_Post::$ID.
- 🪪 property.notFound
- 💡 Learn more: https://phpstan.org/blog/solving-phpstan-access-to-und
- efined-property
- at
- src/wp-includes/rest-api/endpoints/class-wp-rest-posts-controller.php
- :673
673 Call to an undefined method WP_Error|WP_REST_Response::link_header().
🪪 method.notFound
at
src/wp-includes/rest-api/endpoints/class-wp-rest-posts-controller.php
:673
- 753 Method WP_REST_Posts_Controller::create_item() should return
- WP_Error|WP_REST_Response but returns stdClass|WP_Error.
- 🪪 return.type
- at
- src/wp-includes/rest-api/endpoints/class-wp-rest-posts-controller.php
- :753
- 756 Access to an undefined property stdClass|WP_Error::$post_type.
- 🪪 property.notFound
- 💡 Learn more: https://phpstan.org/blog/solving-phpstan-access-to-und
- efined-property
- at
- src/wp-includes/rest-api/endpoints/class-wp-rest-posts-controller.php
- :756
- 769 Access to an undefined property stdClass|WP_Error::$id.
- 🪪 property.notFound
- 💡 Learn more: https://phpstan.org/blog/solving-phpstan-access-to-und
- efined-property
- at
- src/wp-includes/rest-api/endpoints/class-wp-rest-posts-controller.php
- :769
- 772 Access to an undefined property stdClass|WP_Error::$post_parent.
- 🪪 property.notFound
- 💡 Learn more: https://phpstan.org/blog/solving-phpstan-access-to-und
- efined-property
- at
- src/wp-includes/rest-api/endpoints/class-wp-rest-posts-controller.php
- :772
776 Parameter #1 $postarr of function wp_insert_post expects array,
array|string given.
🪪 argument.type
at
src/wp-includes/rest-api/endpoints/class-wp-rest-posts-controller.php
:776
- 780 Cannot call method get_error_code() on int|WP_Error.
- 🪪 method.nonObject
- at
- src/wp-includes/rest-api/endpoints/class-wp-rest-posts-controller.php
- :780
- 781 Cannot call method add_data() on int|WP_Error.
- 🪪 method.nonObject
- at
- src/wp-includes/rest-api/endpoints/class-wp-rest-posts-controller.php
- :781
- 783 Cannot call method add_data() on int|WP_Error.
- 🪪 method.nonObject
- at
- src/wp-includes/rest-api/endpoints/class-wp-rest-posts-controller.php
- :783
- 786 Method WP_REST_Posts_Controller::create_item() should return
- WP_Error|WP_REST_Response but returns int|WP_Error.
- 🪪 return.type
- at
- src/wp-includes/rest-api/endpoints/class-wp-rest-posts-controller.php
- :786
- 789 Parameter #1 $post of function get_post expects int|WP_Post|null,
- int|WP_Error given.
- 🪪 argument.type
- at
- src/wp-includes/rest-api/endpoints/class-wp-rest-posts-controller.php
- :789
- 814 Parameter #1 $post_id of function stick_post expects int,
- int|WP_Error given.
- 🪪 argument.type
- at
- src/wp-includes/rest-api/endpoints/class-wp-rest-posts-controller.php
- :814
- 816 Parameter #1 $post_id of function unstick_post expects int,
- int|WP_Error given.
- 🪪 argument.type
- at
- src/wp-includes/rest-api/endpoints/class-wp-rest-posts-controller.php
- :816
- 821 Parameter #2 $post_id of method
- WP_REST_Posts_Controller::handle_featured_media() expects int,
- int|WP_Error given.
- 🪪 argument.type
- at
- src/wp-includes/rest-api/endpoints/class-wp-rest-posts-controller.php
- :821
825 Parameter #1 $post of function set_post_format expects int|WP_Post,
array|WP_Post|null given.
🪪 argument.type
at
src/wp-includes/rest-api/endpoints/class-wp-rest-posts-controller.php
:825
- 829 Parameter #2 $post_id of method
- WP_REST_Posts_Controller::handle_template() expects int, int|WP_Error
- given.
- 🪪 argument.type
- at
- src/wp-includes/rest-api/endpoints/class-wp-rest-posts-controller.php
- :829
- 832 Parameter #1 $post_id of method
- WP_REST_Posts_Controller::handle_terms() expects int, int|WP_Error
- given.
- 🪪 argument.type
- at
- src/wp-includes/rest-api/endpoints/class-wp-rest-posts-controller.php
- :832
- 839 Parameter #2 $object_id of method WP_REST_Meta_Fields::update_value()
- expects int, int|WP_Error given.
- 🪪 argument.type
- at
- src/wp-includes/rest-api/endpoints/class-wp-rest-posts-controller.php
- :839
- 846 Parameter #1 $post of function get_post expects int|WP_Post|null,
- int|WP_Error given.
- 🪪 argument.type
- at
- src/wp-includes/rest-api/endpoints/class-wp-rest-posts-controller.php
- :846
847 Parameter #1 $data_object of method
WP_REST_Controller::update_additional_fields_for_object() expects
object, array|WP_Post|null given.
@@ -61176,12 +57443,6 @@
at
src/wp-includes/rest-api/endpoints/class-wp-rest-posts-controller.php
:847
- 850 Method WP_REST_Posts_Controller::create_item() should return
- WP_Error|WP_REST_Response but returns WP_Error|true.
- 🪪 return.type
- at
- src/wp-includes/rest-api/endpoints/class-wp-rest-posts-controller.php
- :850
874 Parameter #1 $post of function wp_after_insert_post expects
int|WP_Post, array|WP_Post|null given.
🪪 argument.type
@@ -61211,108 +57472,23 @@
at
src/wp-includes/rest-api/endpoints/class-wp-rest-posts-controller.php
:880
- 896 Method WP_REST_Posts_Controller::update_item_permissions_check()
- should return WP_Error|true but returns WP_Error|WP_Post.
- 🪪 return.type
- at
- src/wp-includes/rest-api/endpoints/class-wp-rest-posts-controller.php
- :896
- 901 Parameter #1 $post of method
- WP_REST_Posts_Controller::check_update_permission() expects WP_Post,
- WP_Error|WP_Post given.
- 🪪 argument.type
- at
- src/wp-includes/rest-api/endpoints/class-wp-rest-posts-controller.php
- :901
- 947 Method WP_REST_Posts_Controller::update_item() should return
- WP_Error|WP_REST_Response but returns WP_Error|WP_Post.
- 🪪 return.type
- at
- src/wp-includes/rest-api/endpoints/class-wp-rest-posts-controller.php
- :947
- 954 Method WP_REST_Posts_Controller::update_item() should return
- WP_Error|WP_REST_Response but returns stdClass|WP_Error.
- 🪪 return.type
- at
- src/wp-includes/rest-api/endpoints/class-wp-rest-posts-controller.php
- :954
960 Cannot access property $post_status on array|WP_Post.
🪪 property.nonObject
at
src/wp-includes/rest-api/endpoints/class-wp-rest-posts-controller.php
:960
- 972 Access to an undefined property stdClass|WP_Error::$ID.
- 🪪 property.notFound
- 💡 Learn more: https://phpstan.org/blog/solving-phpstan-access-to-und
- efined-property
- at
- src/wp-includes/rest-api/endpoints/class-wp-rest-posts-controller.php
- :972
- 974 Access to an undefined property stdClass|WP_Error::$post_type.
- 🪪 property.notFound
- 💡 Learn more: https://phpstan.org/blog/solving-phpstan-access-to-und
- efined-property
- at
- src/wp-includes/rest-api/endpoints/class-wp-rest-posts-controller.php
- :974
980 Parameter #1 $postarr of function wp_update_post expects
array|object, array|string given.
🪪 argument.type
at
src/wp-includes/rest-api/endpoints/class-wp-rest-posts-controller.php
:980
- 983 Cannot call method get_error_code() on int|WP_Error.
- 🪪 method.nonObject
- at
- src/wp-includes/rest-api/endpoints/class-wp-rest-posts-controller.php
- :983
- 984 Cannot call method add_data() on int|WP_Error.
- 🪪 method.nonObject
- at
- src/wp-includes/rest-api/endpoints/class-wp-rest-posts-controller.php
- :984
- 986 Cannot call method add_data() on int|WP_Error.
- 🪪 method.nonObject
- at
- src/wp-includes/rest-api/endpoints/class-wp-rest-posts-controller.php
- :986
- 988 Method WP_REST_Posts_Controller::update_item() should return
- WP_Error|WP_REST_Response but returns int|WP_Error.
- 🪪 return.type
- at
- src/wp-includes/rest-api/endpoints/class-wp-rest-posts-controller.php
- :988
- 991 Parameter #1 $post of function get_post expects int|WP_Post|null,
- int|WP_Error given.
- 🪪 argument.type
- at
- src/wp-includes/rest-api/endpoints/class-wp-rest-posts-controller.php
- :991
999 Parameter #1 $post of function set_post_format expects int|WP_Post,
array|WP_Post|null given.
🪪 argument.type
at
src/wp-includes/rest-api/endpoints/class-wp-rest-posts-controller.php
:999
- 1003 Parameter #2 $post_id of method
- WP_REST_Posts_Controller::handle_featured_media() expects int,
- int|WP_Error given.
- 🪪 argument.type
- at
- src/wp-includes/rest-api/endpoints/class-wp-rest-posts-controller.php
- :1003
- 1008 Parameter #1 $post_id of function stick_post expects int,
- int|WP_Error given.
- 🪪 argument.type
- at
- src/wp-includes/rest-api/endpoints/class-wp-rest-posts-controller.php
- :1008
- 1010 Parameter #1 $post_id of function unstick_post expects int,
- int|WP_Error given.
- 🪪 argument.type
- at
- src/wp-includes/rest-api/endpoints/class-wp-rest-posts-controller.php
- :1010
1015 Cannot access property $ID on array|WP_Post.
🪪 property.nonObject
at
@@ -61328,12 +57504,6 @@
at
src/wp-includes/rest-api/endpoints/class-wp-rest-posts-controller.php
:1025
- 1032 Parameter #1 $post of function get_post expects int|WP_Post|null,
- int|WP_Error given.
- 🪪 argument.type
- at
- src/wp-includes/rest-api/endpoints/class-wp-rest-posts-controller.php
- :1032
1033 Parameter #1 $data_object of method
WP_REST_Controller::update_additional_fields_for_object() expects
object, array|WP_Post|null given.
@@ -61341,12 +57511,6 @@
at
src/wp-includes/rest-api/endpoints/class-wp-rest-posts-controller.php
:1033
- 1036 Method WP_REST_Posts_Controller::update_item() should return
- WP_Error|WP_REST_Response but returns WP_Error|true.
- 🪪 return.type
- at
- src/wp-includes/rest-api/endpoints/class-wp-rest-posts-controller.php
- :1036
1043 Parameter #1 $item of method
WP_REST_Posts_Controller::prepare_item_for_response() expects
WP_Post, array|WP_Post|null given.
@@ -61373,60 +57537,6 @@
at
src/wp-includes/rest-api/endpoints/class-wp-rest-posts-controller.php
:1052
- 1068 Method WP_REST_Posts_Controller::delete_item_permissions_check()
- should return WP_Error|true but returns WP_Error|WP_Post.
- 🪪 return.type
- at
- src/wp-includes/rest-api/endpoints/class-wp-rest-posts-controller.php
- :1068
- 1071 Parameter #1 $post of method
- WP_REST_Posts_Controller::check_delete_permission() expects WP_Post,
- WP_Error|WP_Post given.
- 🪪 argument.type
- at
- src/wp-includes/rest-api/endpoints/class-wp-rest-posts-controller.php
- :1071
- 1093 Method WP_REST_Posts_Controller::delete_item() should return
- WP_Error|WP_REST_Response but returns WP_Error|WP_Post.
- 🪪 return.type
- at
- src/wp-includes/rest-api/endpoints/class-wp-rest-posts-controller.php
- :1093
- 1096 Access to an undefined property WP_Error|WP_Post::$ID.
- 🪪 property.notFound
- 💡 Learn more: https://phpstan.org/blog/solving-phpstan-access-to-und
- efined-property
- at
- src/wp-includes/rest-api/endpoints/class-wp-rest-posts-controller.php
- :1096
- 1101 Access to an undefined property WP_Error|WP_Post::$post_type.
- 🪪 property.notFound
- 💡 Learn more: https://phpstan.org/blog/solving-phpstan-access-to-und
- efined-property
- at
- src/wp-includes/rest-api/endpoints/class-wp-rest-posts-controller.php
- :1101
- 1125 Parameter #1 $post of method
- WP_REST_Posts_Controller::check_delete_permission() expects WP_Post,
- WP_Error|WP_Post given.
- 🪪 argument.type
- at
- src/wp-includes/rest-api/endpoints/class-wp-rest-posts-controller.php
- :1125
- 1137 Parameter #1 $item of method
- WP_REST_Posts_Controller::prepare_item_for_response() expects
- WP_Post, WP_Error|WP_Post given.
- 🪪 argument.type
- at
- src/wp-includes/rest-api/endpoints/class-wp-rest-posts-controller.php
- :1137
- 1158 Access to an undefined property WP_Error|WP_Post::$post_status.
- 🪪 property.notFound
- 💡 Learn more: https://phpstan.org/blog/solving-phpstan-access-to-und
- efined-property
- at
- src/wp-includes/rest-api/endpoints/class-wp-rest-posts-controller.php
- :1158
1172 Parameter #1 $item of method
WP_REST_Posts_Controller::prepare_item_for_response() expects
WP_Post, array|WP_Post|null given.
@@ -61452,38 +57562,12 @@
at
src/wp-includes/rest-api/endpoints/class-wp-rest-posts-controller.php
:1215
- 1296 Method WP_REST_Posts_Controller::prepare_item_for_database() should
- return stdClass|WP_Error but returns WP_Error|WP_Post.
- 🪪 return.type
- at
- src/wp-includes/rest-api/endpoints/class-wp-rest-posts-controller.php
- :1296
- 1299 Access to an undefined property WP_Error|WP_Post::$ID.
- 🪪 property.notFound
- 💡 Learn more: https://phpstan.org/blog/solving-phpstan-access-to-und
- efined-property
- at
- src/wp-includes/rest-api/endpoints/class-wp-rest-posts-controller.php
- :1299
- 1300 Access to an undefined property WP_Error|WP_Post::$post_status.
- 🪪 property.notFound
- 💡 Learn more: https://phpstan.org/blog/solving-phpstan-access-to-und
- efined-property
- at
- src/wp-includes/rest-api/endpoints/class-wp-rest-posts-controller.php
- :1300
1341 Parameter #1 $post_type of function get_post_type_object expects
string, string|false given.
🪪 argument.type
at
src/wp-includes/rest-api/endpoints/class-wp-rest-posts-controller.php
:1341
- 1352 Method WP_REST_Posts_Controller::prepare_item_for_database() should
- return stdClass|WP_Error but returns string|WP_Error.
- 🪪 return.type
- at
- src/wp-includes/rest-api/endpoints/class-wp-rest-posts-controller.php
- :1352
1360 Cannot access property $post_date on array|WP_Post.
🪪 property.nonObject
at
@@ -61499,13 +57583,6 @@
at
src/wp-includes/rest-api/endpoints/class-wp-rest-posts-controller.php
:1461
- 1550 Access to an undefined property WP_Error|WP_Post::$post_status.
- 🪪 property.notFound
- 💡 Learn more: https://phpstan.org/blog/solving-phpstan-access-to-und
- efined-property
- at
- src/wp-includes/rest-api/endpoints/class-wp-rest-posts-controller.php
- :1550
1661 Parameter #1 $post of method WP_Theme::get_page_templates() expects
WP_Post|null, array|WP_Post|null given.
🪪 argument.type
@@ -61524,12 +57601,6 @@
at
src/wp-includes/rest-api/endpoints/class-wp-rest-posts-controller.php
:1686
- 1715 Method WP_REST_Posts_Controller::handle_terms() should return
- WP_Error|null but returns array|WP_Error.
- 🪪 return.type
- at
- src/wp-includes/rest-api/endpoints/class-wp-rest-posts-controller.php
- :1715
1804 Parameter #1 $post of method
WP_REST_Posts_Controller::check_read_permission() expects WP_Post,
array|WP_Post given.
@@ -61575,11 +57646,6 @@
at
src/wp-includes/rest-api/endpoints/class-wp-rest-posts-controller.php
:2236
- 2270 Cannot access offset 'count' on array|WP_Error.
- 🪪 offsetAccess.nonOffsetAccessible
- at
- src/wp-includes/rest-api/endpoints/class-wp-rest-posts-controller.php
- :2270
2280 Cannot access offset 'latest_id' on array|WP_Error.
🪪 offsetAccess.nonOffsetAccessible
at
@@ -61651,12 +57717,6 @@
at
src/wp-includes/rest-api/endpoints/class-wp-rest-posts-controller.php
:3197
- 3214 Method WP_REST_Posts_Controller::sanitize_post_statuses() should
- return array|WP_Error but returns WP_Error|true.
- 🪪 return.type
- at
- src/wp-includes/rest-api/endpoints/class-wp-rest-posts-controller.php
- :3214
3237 Method WP_REST_Posts_Controller::prepare_tax_query() has parameter
$args with no value type specified in iterable type array.
🪪 missingType.iterableValue
@@ -61702,53 +57762,21 @@
69 Property WP_REST_Revisions_Controller::$parent_base (string) does not
accept string|true.
🪪 assign.propertyType
- at
- src/wp-includes/rest-api/endpoints/class-wp-rest-revisions-controller
- .php:69
- 70 Property WP_REST_Controller::$namespace (string) does not accept
- string|true.
- 🪪 assign.propertyType
- at
- src/wp-includes/rest-api/endpoints/class-wp-rest-revisions-controller
- .php:70
- 81 Method WP_REST_Revisions_Controller::register_routes() has no return
- type specified.
- 🪪 missingType.return
- at
- src/wp-includes/rest-api/endpoints/class-wp-rest-revisions-controller
- .php:81
- 183 Method WP_REST_Revisions_Controller::get_items_permissions_check()
- should return WP_Error|true but returns WP_Error|WP_Post.
- 🪪 return.type
- at
- src/wp-includes/rest-api/endpoints/class-wp-rest-revisions-controller
- .php:183
- 186 Access to an undefined property WP_Error|WP_Post::$ID.
- 🪪 property.notFound
- 💡 Learn more: https://phpstan.org/blog/solving-phpstan-access-to-und
- efined-property
at
src/wp-includes/rest-api/endpoints/class-wp-rest-revisions-controller
- .php:186
- 235 Method WP_REST_Revisions_Controller::get_items() should return
- WP_Error|WP_REST_Response but returns WP_Error|WP_Post.
- 🪪 return.type
+ .php:69
+ 70 Property WP_REST_Controller::$namespace (string) does not accept
+ string|true.
+ 🪪 assign.propertyType
at
src/wp-includes/rest-api/endpoints/class-wp-rest-revisions-controller
- .php:235
- 258 Parameter #1 $post of function wp_revisions_enabled expects WP_Post,
- WP_Error|WP_Post given.
- 🪪 argument.type
+ .php:70
+ 81 Method WP_REST_Revisions_Controller::register_routes() has no return
+ type specified.
+ 🪪 missingType.return
at
src/wp-includes/rest-api/endpoints/class-wp-rest-revisions-controller
- .php:258
- 261 Access to an undefined property WP_Error|WP_Post::$ID.
- 🪪 property.notFound
- 💡 Learn more: https://phpstan.org/blog/solving-phpstan-access-to-und
- efined-property
- at
- src/wp-includes/rest-api/endpoints/class-wp-rest-revisions-controller
- .php:261
+ .php:81
359 Parameter #1 $item of method
WP_REST_Revisions_Controller::prepare_item_for_response() expects
WP_Post, int|WP_Post given.
@@ -61776,85 +57804,6 @@
at
src/wp-includes/rest-api/endpoints/class-wp-rest-revisions-controller
.php:389
- 419 Method WP_REST_Revisions_Controller::get_item() should return
- WP_Error|WP_REST_Response but returns WP_Error|WP_Post.
- 🪪 return.type
- at
- src/wp-includes/rest-api/endpoints/class-wp-rest-revisions-controller
- .php:419
- 424 Method WP_REST_Revisions_Controller::get_item() should return
- WP_Error|WP_REST_Response but returns WP_Error|WP_Post.
- 🪪 return.type
- at
- src/wp-includes/rest-api/endpoints/class-wp-rest-revisions-controller
- .php:424
- 427 Access to an undefined property WP_Error|WP_Post::$ID.
- 🪪 property.notFound
- 💡 Learn more: https://phpstan.org/blog/solving-phpstan-access-to-und
- efined-property
- at
- src/wp-includes/rest-api/endpoints/class-wp-rest-revisions-controller
- .php:427
- 427 Access to an undefined property WP_Error|WP_Post::$post_parent.
- 🪪 property.notFound
- 💡 Learn more: https://phpstan.org/blog/solving-phpstan-access-to-und
- efined-property
- at
- src/wp-includes/rest-api/endpoints/class-wp-rest-revisions-controller
- .php:427
- 431 Access to an undefined property WP_Error|WP_Post::$ID.
- 🪪 property.notFound
- 💡 Learn more: https://phpstan.org/blog/solving-phpstan-access-to-und
- efined-property
- at
- src/wp-includes/rest-api/endpoints/class-wp-rest-revisions-controller
- .php:431
- 436 Parameter #1 $item of method
- WP_REST_Revisions_Controller::prepare_item_for_response() expects
- WP_Post, WP_Error|WP_Post given.
- 🪪 argument.type
- at
- src/wp-includes/rest-api/endpoints/class-wp-rest-revisions-controller
- .php:436
- 451 Method WP_REST_Revisions_Controller::delete_item_permissions_check()
- should return WP_Error|true but returns WP_Error|WP_Post.
- 🪪 return.type
- at
- src/wp-includes/rest-api/endpoints/class-wp-rest-revisions-controller
- .php:451
- 454 Access to an undefined property WP_Error|WP_Post::$ID.
- 🪪 property.notFound
- 💡 Learn more: https://phpstan.org/blog/solving-phpstan-access-to-und
- efined-property
- at
- src/wp-includes/rest-api/endpoints/class-wp-rest-revisions-controller
- .php:454
- 464 Method WP_REST_Revisions_Controller::delete_item_permissions_check()
- should return WP_Error|true but returns WP_Error|WP_Post.
- 🪪 return.type
- at
- src/wp-includes/rest-api/endpoints/class-wp-rest-revisions-controller
- .php:464
- 472 Access to an undefined property WP_Error|WP_Post::$ID.
- 🪪 property.notFound
- 💡 Learn more: https://phpstan.org/blog/solving-phpstan-access-to-und
- efined-property
- at
- src/wp-includes/rest-api/endpoints/class-wp-rest-revisions-controller
- .php:472
- 494 Method WP_REST_Revisions_Controller::delete_item() should return
- WP_Error|WP_REST_Response but returns WP_Error|WP_Post.
- 🪪 return.type
- at
- src/wp-includes/rest-api/endpoints/class-wp-rest-revisions-controller
- .php:494
- 509 Parameter #1 $item of method
- WP_REST_Revisions_Controller::prepare_item_for_response() expects
- WP_Post, WP_Error|WP_Post given.
- 🪪 argument.type
- at
- src/wp-includes/rest-api/endpoints/class-wp-rest-revisions-controller
- .php:509
553 Method WP_REST_Revisions_Controller::prepare_items_query() has
parameter $prepared_args with no value type specified in iterable
type array.
@@ -61917,19 +57866,6 @@
at
src/wp-includes/rest-api/endpoints/class-wp-rest-search-controller.ph
p:91
- 130 Method WP_REST_Search_Controller::get_items() should return
- WP_Error|WP_REST_Response but returns
- WP_Error|WP_REST_Search_Handler.
- 🪪 return.type
- at
- src/wp-includes/rest-api/endpoints/class-wp-rest-search-controller.ph
- p:130
- 133 Call to an undefined method
- WP_Error|WP_REST_Search_Handler::search_items().
- 🪪 method.notFound
- at
- src/wp-includes/rest-api/endpoints/class-wp-rest-search-controller.ph
- p:133
169 Call to an undefined method WP_Error|WP_REST_Response::header().
🪪 method.notFound
at
@@ -61950,18 +57886,6 @@
at
src/wp-includes/rest-api/endpoints/class-wp-rest-search-controller.ph
p:181
- 209 Call to an undefined method
- WP_Error|WP_REST_Search_Handler::prepare_item().
- 🪪 method.notFound
- at
- src/wp-includes/rest-api/endpoints/class-wp-rest-search-controller.ph
- p:209
- 218 Call to an undefined method
- WP_Error|WP_REST_Search_Handler::prepare_item_links().
- 🪪 method.notFound
- at
- src/wp-includes/rest-api/endpoints/class-wp-rest-search-controller.ph
- p:218
222 Call to an undefined method WP_Error|WP_REST_Response::add_links().
🪪 method.notFound
at
@@ -62000,18 +57924,6 @@
at
src/wp-includes/rest-api/endpoints/class-wp-rest-search-controller.ph
p:369
- 384 Method WP_REST_Search_Controller::sanitize_subtypes() should return
- array<string>|WP_Error but returns WP_Error|WP_REST_Search_Handler.
- 🪪 return.type
- at
- src/wp-includes/rest-api/endpoints/class-wp-rest-search-controller.ph
- p:384
- 387 Call to an undefined method
- WP_Error|WP_REST_Search_Handler::get_subtypes().
- 🪪 method.notFound
- at
- src/wp-includes/rest-api/endpoints/class-wp-rest-search-controller.ph
- p:387
------ -----------------------------------------------------------------------
------ -----------------------------------------------------------------------
@@ -62388,13 +58300,6 @@
at
src/wp-includes/rest-api/endpoints/class-wp-rest-template-autosaves-c
ontroller.php:197
- 218 Access to an undefined property WP_Error|WP_Post::$ID.
- 🪪 property.notFound
- 💡 Learn more: https://phpstan.org/blog/solving-phpstan-access-to-und
- efined-property
- at
- src/wp-includes/rest-api/endpoints/class-wp-rest-template-autosaves-c
- ontroller.php:218
229 Method WP_REST_Template_Autosaves_Controller::get_item() should
return WP_Error|WP_Post but returns WP_REST_Response.
🪪 return.type
@@ -62476,27 +58381,6 @@
at
src/wp-includes/rest-api/endpoints/class-wp-rest-template-revisions-c
ontroller.php:222
- 240 Method
- WP_REST_Template_Revisions_Controller::delete_item_permissions_check(
- ) should return WP_Error|true but returns WP_Error|WP_Post.
- 🪪 return.type
- at
- src/wp-includes/rest-api/endpoints/class-wp-rest-template-revisions-c
- ontroller.php:240
- 243 Access to an undefined property WP_Error|WP_Post::$ID.
- 🪪 property.notFound
- 💡 Learn more: https://phpstan.org/blog/solving-phpstan-access-to-und
- efined-property
- at
- src/wp-includes/rest-api/endpoints/class-wp-rest-template-revisions-c
- ontroller.php:243
- 253 Method
- WP_REST_Template_Revisions_Controller::delete_item_permissions_check(
- ) should return WP_Error|true but returns WP_Error|WP_Post.
- 🪪 return.type
- at
- src/wp-includes/rest-api/endpoints/class-wp-rest-template-revisions-c
- ontroller.php:253
275 Method WP_REST_Template_Revisions_Controller::prepare_links() return
type has no value type specified in iterable type array.
🪪 missingType.iterableValue
@@ -62554,12 +58438,6 @@
at
src/wp-includes/rest-api/endpoints/class-wp-rest-templates-controller
.php:311
- 388 Method WP_REST_Templates_Controller::update_item() should return
- WP_Error|WP_REST_Response but returns stdClass|WP_Error.
- 🪪 return.type
- at
- src/wp-includes/rest-api/endpoints/class-wp-rest-templates-controller
- .php:388
393 Parameter #1 $postarr of function wp_update_post expects
array|object, array|string given.
🪪 argument.type
@@ -62572,33 +58450,6 @@
at
src/wp-includes/rest-api/endpoints/class-wp-rest-templates-controller
.php:397
- 401 Cannot call method get_error_code() on int|WP_Error.
- 🪪 method.nonObject
- at
- src/wp-includes/rest-api/endpoints/class-wp-rest-templates-controller
- .php:401
- 402 Cannot call method add_data() on int|WP_Error.
- 🪪 method.nonObject
- at
- src/wp-includes/rest-api/endpoints/class-wp-rest-templates-controller
- .php:402
- 404 Cannot call method add_data() on int|WP_Error.
- 🪪 method.nonObject
- at
- src/wp-includes/rest-api/endpoints/class-wp-rest-templates-controller
- .php:404
- 406 Method WP_REST_Templates_Controller::update_item() should return
- WP_Error|WP_REST_Response but returns int|WP_Error.
- 🪪 return.type
- at
- src/wp-includes/rest-api/endpoints/class-wp-rest-templates-controller
- .php:406
- 412 Method WP_REST_Templates_Controller::update_item() should return
- WP_Error|WP_REST_Response but returns WP_Error|true.
- 🪪 return.type
- at
- src/wp-includes/rest-api/endpoints/class-wp-rest-templates-controller
- .php:412
421 Parameter #1 $post of function wp_after_insert_post expects
int|WP_Post, array|WP_Post|null given.
🪪 argument.type
@@ -62611,58 +58462,12 @@
at
src/wp-includes/rest-api/endpoints/class-wp-rest-templates-controller
.php:421
- 452 Method WP_REST_Templates_Controller::create_item() should return
- WP_Error|WP_REST_Response but returns stdClass|WP_Error.
- 🪪 return.type
- at
- src/wp-includes/rest-api/endpoints/class-wp-rest-templates-controller
- .php:452
- 455 Access to an undefined property stdClass|WP_Error::$post_name.
- 🪪 property.notFound
- 💡 Learn more: https://phpstan.org/blog/solving-phpstan-access-to-und
- efined-property
- at
- src/wp-includes/rest-api/endpoints/class-wp-rest-templates-controller
- .php:455
456 Parameter #1 $postarr of function wp_insert_post expects array,
array|string given.
🪪 argument.type
at
src/wp-includes/rest-api/endpoints/class-wp-rest-templates-controller
.php:456
- 458 Cannot call method get_error_code() on int|WP_Error.
- 🪪 method.nonObject
- at
- src/wp-includes/rest-api/endpoints/class-wp-rest-templates-controller
- .php:458
- 459 Cannot call method add_data() on int|WP_Error.
- 🪪 method.nonObject
- at
- src/wp-includes/rest-api/endpoints/class-wp-rest-templates-controller
- .php:459
- 461 Cannot call method add_data() on int|WP_Error.
- 🪪 method.nonObject
- at
- src/wp-includes/rest-api/endpoints/class-wp-rest-templates-controller
- .php:461
- 464 Method WP_REST_Templates_Controller::create_item() should return
- WP_Error|WP_REST_Response but returns int|WP_Error.
- 🪪 return.type
- at
- src/wp-includes/rest-api/endpoints/class-wp-rest-templates-controller
- .php:464
- 471 Parameter #1 $post of function get_post expects int|WP_Post|null,
- int|WP_Error given.
- 🪪 argument.type
- at
- src/wp-includes/rest-api/endpoints/class-wp-rest-templates-controller
- .php:471
- 475 Method WP_REST_Templates_Controller::create_item() should return
- WP_Error|WP_REST_Response but returns WP_Error|true.
- 🪪 return.type
- at
- src/wp-includes/rest-api/endpoints/class-wp-rest-templates-controller
- .php:475
481 Parameter #1 $post of function wp_after_insert_post expects
int|WP_Post, array|WP_Post|null given.
🪪 argument.type
@@ -62717,11 +58522,6 @@
at
src/wp-includes/rest-api/endpoints/class-wp-rest-templates-controller
.php:956
- 959 Cannot access offset 'count' on array|WP_Error.
- 🪪 offsetAccess.nonOffsetAccessible
- at
- src/wp-includes/rest-api/endpoints/class-wp-rest-templates-controller
- .php:959
969 Cannot access offset 'latest_id' on array|WP_Error.
🪪 offsetAccess.nonOffsetAccessible
at
@@ -62859,32 +58659,6 @@
at
src/wp-includes/rest-api/endpoints/class-wp-rest-terms-controller.php
:441
- 456 Method WP_REST_Terms_Controller::get_item_permissions_check() should
- return WP_Error|true but returns WP_Error|WP_Term.
- 🪪 return.type
- at
- src/wp-includes/rest-api/endpoints/class-wp-rest-terms-controller.php
- :456
- 459 Access to an undefined property WP_Error|WP_Term::$term_id.
- 🪪 property.notFound
- 💡 Learn more: https://phpstan.org/blog/solving-phpstan-access-to-und
- efined-property
- at
- src/wp-includes/rest-api/endpoints/class-wp-rest-terms-controller.php
- :459
- 481 Method WP_REST_Terms_Controller::get_item() should return
- WP_Error|WP_REST_Response but returns WP_Error|WP_Term.
- 🪪 return.type
- at
- src/wp-includes/rest-api/endpoints/class-wp-rest-terms-controller.php
- :481
- 484 Parameter #1 $item of method
- WP_REST_Terms_Controller::prepare_item_for_response() expects
- WP_Term, WP_Error|WP_Term given.
- 🪪 argument.type
- at
- src/wp-includes/rest-api/endpoints/class-wp-rest-terms-controller.php
- :484
506 Cannot access property $cap on WP_Taxonomy|false.
🪪 property.nonObject
at
@@ -62908,37 +58682,11 @@
at
src/wp-includes/rest-api/endpoints/class-wp-rest-terms-controller.php
:550
- 556 Cannot call method get_error_data() on array|WP_Error.
- 🪪 method.nonObject
- at
- src/wp-includes/rest-api/endpoints/class-wp-rest-terms-controller.php
- :556
559 Cannot access property $term_id on array|WP_Error|WP_Term.
🪪 property.nonObject
at
src/wp-includes/rest-api/endpoints/class-wp-rest-terms-controller.php
:559
- 559 Cannot call method add_data() on array|WP_Error.
- 🪪 method.nonObject
- at
- src/wp-includes/rest-api/endpoints/class-wp-rest-terms-controller.php
- :559
- 560 Cannot call method add_data() on array|WP_Error.
- 🪪 method.nonObject
- at
- src/wp-includes/rest-api/endpoints/class-wp-rest-terms-controller.php
- :560
- 568 Method WP_REST_Terms_Controller::create_item() should return
- WP_Error|WP_REST_Response but returns array|WP_Error.
- 🪪 return.type
- at
- src/wp-includes/rest-api/endpoints/class-wp-rest-terms-controller.php
- :568
- 571 Cannot access offset 'term_id' on array|WP_Error.
- 🪪 offsetAccess.nonOffsetAccessible
- at
- src/wp-includes/rest-api/endpoints/class-wp-rest-terms-controller.php
- :571
593 Cannot access property $term_id on array|WP_Error|WP_Term.
🪪 property.nonObject
at
@@ -62951,12 +58699,6 @@
at
src/wp-includes/rest-api/endpoints/class-wp-rest-terms-controller.php
:600
- 603 Method WP_REST_Terms_Controller::create_item() should return
- WP_Error|WP_REST_Response but returns WP_Error|true.
- 🪪 return.type
- at
- src/wp-includes/rest-api/endpoints/class-wp-rest-terms-controller.php
- :603
626 Parameter #1 $item of method
WP_REST_Terms_Controller::prepare_item_for_response() expects
WP_Term, array|WP_Error|WP_Term|null given.
@@ -62979,58 +58721,12 @@
at
src/wp-includes/rest-api/endpoints/class-wp-rest-terms-controller.php
:630
- 647 Method WP_REST_Terms_Controller::update_item_permissions_check()
- should return WP_Error|true but returns WP_Error|WP_Term.
- 🪪 return.type
- at
- src/wp-includes/rest-api/endpoints/class-wp-rest-terms-controller.php
- :647
- 650 Access to an undefined property WP_Error|WP_Term::$term_id.
- 🪪 property.notFound
- 💡 Learn more: https://phpstan.org/blog/solving-phpstan-access-to-und
- efined-property
- at
- src/wp-includes/rest-api/endpoints/class-wp-rest-terms-controller.php
- :650
- 672 Method WP_REST_Terms_Controller::update_item() should return
- WP_Error|WP_REST_Response but returns WP_Error|WP_Term.
- 🪪 return.type
- at
- src/wp-includes/rest-api/endpoints/class-wp-rest-terms-controller.php
- :672
- 699 Access to an undefined property WP_Error|WP_Term::$taxonomy.
- 🪪 property.notFound
- 💡 Learn more: https://phpstan.org/blog/solving-phpstan-access-to-und
- efined-property
- at
- src/wp-includes/rest-api/endpoints/class-wp-rest-terms-controller.php
- :699
- 699 Access to an undefined property WP_Error|WP_Term::$term_id.
- 🪪 property.notFound
- 💡 Learn more: https://phpstan.org/blog/solving-phpstan-access-to-und
- efined-property
- at
- src/wp-includes/rest-api/endpoints/class-wp-rest-terms-controller.php
- :699
699 Parameter #3 $args of function wp_update_term expects array,
array|string given.
🪪 argument.type
at
src/wp-includes/rest-api/endpoints/class-wp-rest-terms-controller.php
:699
- 702 Method WP_REST_Terms_Controller::update_item() should return
- WP_Error|WP_REST_Response but returns array|WP_Error.
- 🪪 return.type
- at
- src/wp-includes/rest-api/endpoints/class-wp-rest-terms-controller.php
- :702
- 706 Access to an undefined property WP_Error|WP_Term::$term_id.
- 🪪 property.notFound
- 💡 Learn more: https://phpstan.org/blog/solving-phpstan-access-to-und
- efined-property
- at
- src/wp-includes/rest-api/endpoints/class-wp-rest-terms-controller.php
- :706
713 Cannot access property $term_id on array|WP_Error|WP_Term.
🪪 property.nonObject
at
@@ -63043,12 +58739,6 @@
at
src/wp-includes/rest-api/endpoints/class-wp-rest-terms-controller.php
:720
- 723 Method WP_REST_Terms_Controller::update_item() should return
- WP_Error|WP_REST_Response but returns WP_Error|true.
- 🪪 return.type
- at
- src/wp-includes/rest-api/endpoints/class-wp-rest-terms-controller.php
- :723
731 Parameter #1 $item of method
WP_REST_Terms_Controller::prepare_item_for_response() expects
WP_Term, array|WP_Error|WP_Term|null given.
@@ -63056,46 +58746,6 @@
at
src/wp-includes/rest-api/endpoints/class-wp-rest-terms-controller.php
:731
- 748 Method WP_REST_Terms_Controller::delete_item_permissions_check()
- should return WP_Error|true but returns WP_Error|WP_Term.
- 🪪 return.type
- at
- src/wp-includes/rest-api/endpoints/class-wp-rest-terms-controller.php
- :748
- 751 Access to an undefined property WP_Error|WP_Term::$term_id.
- 🪪 property.notFound
- 💡 Learn more: https://phpstan.org/blog/solving-phpstan-access-to-und
- efined-property
- at
- src/wp-includes/rest-api/endpoints/class-wp-rest-terms-controller.php
- :751
- 773 Method WP_REST_Terms_Controller::delete_item() should return
- WP_Error|WP_REST_Response but returns WP_Error|WP_Term.
- 🪪 return.type
- at
- src/wp-includes/rest-api/endpoints/class-wp-rest-terms-controller.php
- :773
- 790 Parameter #1 $item of method
- WP_REST_Terms_Controller::prepare_item_for_response() expects
- WP_Term, WP_Error|WP_Term given.
- 🪪 argument.type
- at
- src/wp-includes/rest-api/endpoints/class-wp-rest-terms-controller.php
- :790
- 792 Access to an undefined property WP_Error|WP_Term::$taxonomy.
- 🪪 property.notFound
- 💡 Learn more: https://phpstan.org/blog/solving-phpstan-access-to-und
- efined-property
- at
- src/wp-includes/rest-api/endpoints/class-wp-rest-terms-controller.php
- :792
- 792 Access to an undefined property WP_Error|WP_Term::$term_id.
- 🪪 property.notFound
- 💡 Learn more: https://phpstan.org/blog/solving-phpstan-access-to-und
- efined-property
- at
- src/wp-includes/rest-api/endpoints/class-wp-rest-terms-controller.php
- :792
955 Call to an undefined method WP_Error|WP_REST_Response::add_links().
🪪 method.notFound
at
@@ -63257,12 +58907,6 @@
at
src/wp-includes/rest-api/endpoints/class-wp-rest-themes-controller.ph
p:747
- 756 Method WP_REST_Themes_Controller::sanitize_theme_status() should
- return array|WP_Error but returns WP_Error|true.
- 🪪 return.type
- at
- src/wp-includes/rest-api/endpoints/class-wp-rest-themes-controller.ph
- p:756
------ -----------------------------------------------------------------------
------ -----------------------------------------------------------------------
@@ -63290,13 +58934,6 @@
at
src/wp-includes/rest-api/endpoints/class-wp-rest-url-details-controll
er.php:154
- 158 Parameter #2 $data of method
- WP_REST_URL_Details_Controller::set_cache() expects string,
- string|WP_Error given.
- 🪪 argument.type
- at
- src/wp-includes/rest-api/endpoints/class-wp-rest-url-details-controll
- er.php:158
203 Cannot access property $cap on string|WP_Post_Type.
🪪 property.nonObject
at
@@ -63400,59 +59037,6 @@
at
src/wp-includes/rest-api/endpoints/class-wp-rest-users-controller.php
:430
- 478 Method WP_REST_Users_Controller::get_item_permissions_check() should
- return WP_Error|true but returns WP_Error|WP_User.
- 🪪 return.type
- at
- src/wp-includes/rest-api/endpoints/class-wp-rest-users-controller.php
- :478
- 483 Access to an undefined property WP_Error|WP_User::$ID.
- 🪪 property.notFound
- 💡 Learn more: https://phpstan.org/blog/solving-phpstan-access-to-und
- efined-property
- at
- src/wp-includes/rest-api/endpoints/class-wp-rest-users-controller.php
- :483
- 487 Access to an undefined property WP_Error|WP_User::$ID.
- 🪪 property.notFound
- 💡 Learn more: https://phpstan.org/blog/solving-phpstan-access-to-und
- efined-property
- at
- src/wp-includes/rest-api/endpoints/class-wp-rest-users-controller.php
- :487
- 495 Access to an undefined property WP_Error|WP_User::$ID.
- 🪪 property.notFound
- 💡 Learn more: https://phpstan.org/blog/solving-phpstan-access-to-und
- efined-property
- at
- src/wp-includes/rest-api/endpoints/class-wp-rest-users-controller.php
- :495
- 495 Access to an undefined property WP_Error|WP_User::$ID.
- 🪪 property.notFound
- 💡 Learn more: https://phpstan.org/blog/solving-phpstan-access-to-und
- efined-property
- at
- src/wp-includes/rest-api/endpoints/class-wp-rest-users-controller.php
- :495
- 517 Method WP_REST_Users_Controller::get_item() should return
- WP_Error|WP_REST_Response but returns WP_Error|WP_User.
- 🪪 return.type
- at
- src/wp-includes/rest-api/endpoints/class-wp-rest-users-controller.php
- :517
- 520 Parameter #1 $item of method
- WP_REST_Users_Controller::prepare_item_for_response() expects
- WP_User, WP_Error|WP_User given.
- 🪪 argument.type
- at
- src/wp-includes/rest-api/endpoints/class-wp-rest-users-controller.php
- :520
- 596 Method WP_REST_Users_Controller::create_item() should return
- WP_Error|WP_REST_Response but returns WP_Error|true.
- 🪪 return.type
- at
- src/wp-includes/rest-api/endpoints/class-wp-rest-users-controller.php
- :596
603 Access to an undefined property object::$user_email.
🪪 property.notFound
💡 Learn more: https://phpstan.org/blog/solving-phpstan-access-to-und
@@ -63501,42 +59085,12 @@
at
src/wp-includes/rest-api/endpoints/class-wp-rest-users-controller.php
:639
- 642 Method WP_REST_Users_Controller::create_item() should return
- WP_Error|WP_REST_Response but returns int|WP_Error.
- 🪪 return.type
- at
- src/wp-includes/rest-api/endpoints/class-wp-rest-users-controller.php
- :642
- 645 Parameter #2 $user_id of function add_user_to_blog expects int,
- int|WP_Error given.
- 🪪 argument.type
- at
- src/wp-includes/rest-api/endpoints/class-wp-rest-users-controller.php
- :645
- 647 Method WP_REST_Users_Controller::create_item() should return
- WP_Error|WP_REST_Response but returns WP_Error|true.
- 🪪 return.type
- at
- src/wp-includes/rest-api/endpoints/class-wp-rest-users-controller.php
- :647
650 Parameter #1 $userdata of function wp_insert_user expects
array|object, array|string given.
🪪 argument.type
at
src/wp-includes/rest-api/endpoints/class-wp-rest-users-controller.php
:650
- 653 Method WP_REST_Users_Controller::create_item() should return
- WP_Error|WP_REST_Response but returns int|WP_Error.
- 🪪 return.type
- at
- src/wp-includes/rest-api/endpoints/class-wp-rest-users-controller.php
- :653
- 657 Parameter #2 $value of function get_user_by expects int|string,
- int|WP_Error given.
- 🪪 argument.type
- at
- src/wp-includes/rest-api/endpoints/class-wp-rest-users-controller.php
- :657
671 Parameter #1 $callback of function array_map expects
(callable(mixed): mixed)|null, array{WP_User|false, 'add_role'}
given.
@@ -63544,18 +59098,6 @@
at
src/wp-includes/rest-api/endpoints/class-wp-rest-users-controller.php
:671
- 675 Parameter #2 $object_id of method WP_REST_Meta_Fields::update_value()
- expects int, int|WP_Error given.
- 🪪 argument.type
- at
- src/wp-includes/rest-api/endpoints/class-wp-rest-users-controller.php
- :675
- 682 Parameter #2 $value of function get_user_by expects int|string,
- int|WP_Error given.
- 🪪 argument.type
- at
- src/wp-includes/rest-api/endpoints/class-wp-rest-users-controller.php
- :682
683 Parameter #1 $data_object of method
WP_REST_Controller::update_additional_fields_for_object() expects
object, WP_User|false given.
@@ -63563,12 +59105,6 @@
at
src/wp-includes/rest-api/endpoints/class-wp-rest-users-controller.php
:683
- 686 Method WP_REST_Users_Controller::create_item() should return
- WP_Error|WP_REST_Response but returns WP_Error|true.
- 🪪 return.type
- at
- src/wp-includes/rest-api/endpoints/class-wp-rest-users-controller.php
- :686
702 Parameter #1 $item of method
WP_REST_Users_Controller::prepare_item_for_response() expects
WP_User, WP_User|false given.
@@ -63586,65 +59122,6 @@
at
src/wp-includes/rest-api/endpoints/class-wp-rest-users-controller.php
:706
- 706 Parameter #4 ...$values of function sprintf expects
- bool|float|int|string|null, int|WP_Error given.
- 🪪 argument.type
- at
- src/wp-includes/rest-api/endpoints/class-wp-rest-users-controller.php
- :706
- 722 Method WP_REST_Users_Controller::update_item_permissions_check()
- should return WP_Error|true but returns WP_Error|WP_User.
- 🪪 return.type
- at
- src/wp-includes/rest-api/endpoints/class-wp-rest-users-controller.php
- :722
- 726 Access to an undefined property WP_Error|WP_User::$ID.
- 🪪 property.notFound
- 💡 Learn more: https://phpstan.org/blog/solving-phpstan-access-to-und
- efined-property
- at
- src/wp-includes/rest-api/endpoints/class-wp-rest-users-controller.php
- :726
- 745 Access to an undefined property WP_Error|WP_User::$ID.
- 🪪 property.notFound
- 💡 Learn more: https://phpstan.org/blog/solving-phpstan-access-to-und
- efined-property
- at
- src/wp-includes/rest-api/endpoints/class-wp-rest-users-controller.php
- :745
- 767 Method WP_REST_Users_Controller::update_item() should return
- WP_Error|WP_REST_Response but returns WP_Error|WP_User.
- 🪪 return.type
- at
- src/wp-includes/rest-api/endpoints/class-wp-rest-users-controller.php
- :767
- 770 Access to an undefined property WP_Error|WP_User::$ID.
- 🪪 property.notFound
- 💡 Learn more: https://phpstan.org/blog/solving-phpstan-access-to-und
- efined-property
- at
- src/wp-includes/rest-api/endpoints/class-wp-rest-users-controller.php
- :770
- 785 Access to an undefined property WP_Error|WP_User::$user_login.
- 🪪 property.notFound
- 💡 Learn more: https://phpstan.org/blog/solving-phpstan-access-to-und
- efined-property
- at
- src/wp-includes/rest-api/endpoints/class-wp-rest-users-controller.php
- :785
- 793 Access to an undefined property WP_Error|WP_User::$user_nicename.
- 🪪 property.notFound
- 💡 Learn more: https://phpstan.org/blog/solving-phpstan-access-to-und
- efined-property
- at
- src/wp-includes/rest-api/endpoints/class-wp-rest-users-controller.php
- :793
- 805 Method WP_REST_Users_Controller::update_item() should return
- WP_Error|WP_REST_Response but returns WP_Error|true.
- 🪪 return.type
- at
- src/wp-includes/rest-api/endpoints/class-wp-rest-users-controller.php
- :805
812 Access to an undefined property object::$ID.
🪪 property.notFound
💡 Learn more: https://phpstan.org/blog/solving-phpstan-access-to-und
@@ -63658,18 +59135,6 @@
at
src/wp-includes/rest-api/endpoints/class-wp-rest-users-controller.php
:814
- 817 Method WP_REST_Users_Controller::update_item() should return
- WP_Error|WP_REST_Response but returns int|WP_Error.
- 🪪 return.type
- at
- src/wp-includes/rest-api/endpoints/class-wp-rest-users-controller.php
- :817
- 820 Parameter #2 $value of function get_user_by expects int|string,
- int|WP_Error given.
- 🪪 argument.type
- at
- src/wp-includes/rest-api/endpoints/class-wp-rest-users-controller.php
- :820
826 Parameter #1 $callback of function array_map expects
(callable(mixed): mixed)|null, array{WP_User|false, 'add_role'}
given.
@@ -63677,12 +59142,6 @@
at
src/wp-includes/rest-api/endpoints/class-wp-rest-users-controller.php
:826
- 839 Parameter #2 $value of function get_user_by expects int|string,
- int|WP_Error given.
- 🪪 argument.type
- at
- src/wp-includes/rest-api/endpoints/class-wp-rest-users-controller.php
- :839
840 Parameter #1 $data_object of method
WP_REST_Controller::update_additional_fields_for_object() expects
object, WP_User|false given.
@@ -63690,12 +59149,6 @@
at
src/wp-includes/rest-api/endpoints/class-wp-rest-users-controller.php
:840
- 843 Method WP_REST_Users_Controller::update_item() should return
- WP_Error|WP_REST_Response but returns WP_Error|true.
- 🪪 return.type
- at
- src/wp-includes/rest-api/endpoints/class-wp-rest-users-controller.php
- :843
851 Parameter #1 $item of method
WP_REST_Users_Controller::prepare_item_for_response() expects
WP_User, WP_User|false given.
@@ -63703,39 +59156,6 @@
at
src/wp-includes/rest-api/endpoints/class-wp-rest-users-controller.php
:851
- 896 Method WP_REST_Users_Controller::delete_item_permissions_check()
- should return WP_Error|true but returns WP_Error|WP_User.
- 🪪 return.type
- at
- src/wp-includes/rest-api/endpoints/class-wp-rest-users-controller.php
- :896
- 899 Access to an undefined property WP_Error|WP_User::$ID.
- 🪪 property.notFound
- 💡 Learn more: https://phpstan.org/blog/solving-phpstan-access-to-und
- efined-property
- at
- src/wp-includes/rest-api/endpoints/class-wp-rest-users-controller.php
- :899
- 931 Method WP_REST_Users_Controller::delete_item() should return
- WP_Error|WP_REST_Response but returns WP_Error|WP_User.
- 🪪 return.type
- at
- src/wp-includes/rest-api/endpoints/class-wp-rest-users-controller.php
- :931
- 934 Access to an undefined property WP_Error|WP_User::$ID.
- 🪪 property.notFound
- 💡 Learn more: https://phpstan.org/blog/solving-phpstan-access-to-und
- efined-property
- at
- src/wp-includes/rest-api/endpoints/class-wp-rest-users-controller.php
- :934
- 960 Parameter #1 $item of method
- WP_REST_Users_Controller::prepare_item_for_response() expects
- WP_User, WP_Error|WP_User given.
- 🪪 argument.type
- at
- src/wp-includes/rest-api/endpoints/class-wp-rest-users-controller.php
- :960
1102 Parameter #2 $timestamp of function gmdate expects int, int|false
given.
🪪 argument.type
@@ -63795,12 +59215,6 @@
at
src/wp-includes/rest-api/endpoints/class-wp-rest-widget-types-control
ler.php:36
- 178 Method WP_REST_Widget_Types_Controller::get_item_permissions_check()
- should return WP_Error|true but returns array|WP_Error.
- 🪪 return.type
- at
- src/wp-includes/rest-api/endpoints/class-wp-rest-widget-types-control
- ler.php:178
213 Method WP_REST_Widget_Types_Controller::get_widget() return type has
no value type specified in iterable type array.
🪪 missingType.iterableValue
@@ -63819,19 +59233,6 @@
at
src/wp-includes/rest-api/endpoints/class-wp-rest-widget-types-control
ler.php:233
- 285 Method WP_REST_Widget_Types_Controller::get_item() should return
- WP_Error|WP_REST_Response but returns array|WP_Error.
- 🪪 return.type
- at
- src/wp-includes/rest-api/endpoints/class-wp-rest-widget-types-control
- ler.php:285
- 287 Parameter #1 $item of method
- WP_REST_Widget_Types_Controller::prepare_item_for_response() expects
- array, array|WP_Error given.
- 🪪 argument.type
- at
- src/wp-includes/rest-api/endpoints/class-wp-rest-widget-types-control
- ler.php:287
302 Method WP_REST_Widget_Types_Controller::prepare_item_for_response()
has parameter $item with no value type specified in iterable type
array.
@@ -63962,36 +59363,6 @@
at
src/wp-includes/rest-api/endpoints/class-wp-rest-widgets-controller.p
hp:50
- 162 Parameter #1 $response of method
- WP_REST_Controller::prepare_response_for_collection() expects
- WP_REST_Response, WP_Error|WP_REST_Response given.
- 🪪 argument.type
- at
- src/wp-includes/rest-api/endpoints/class-wp-rest-widgets-controller.p
- hp:162
- 256 Method WP_REST_Widgets_Controller::create_item() should return
- WP_Error|WP_REST_Response but returns string|WP_Error.
- 🪪 return.type
- at
- src/wp-includes/rest-api/endpoints/class-wp-rest-widgets-controller.p
- hp:256
- 259 Parameter #1 $widget_id of function wp_assign_widget_to_sidebar
- expects string, string|WP_Error given.
- 🪪 argument.type
- at
- src/wp-includes/rest-api/endpoints/class-wp-rest-widgets-controller.p
- hp:259
- 269 Call to an undefined method WP_Error|WP_REST_Response::set_status().
- 🪪 method.notFound
- at
- src/wp-includes/rest-api/endpoints/class-wp-rest-widgets-controller.p
- hp:269
- 332 Method WP_REST_Widgets_Controller::update_item() should return
- WP_Error|WP_REST_Response but returns string|WP_Error.
- 🪪 return.type
- at
- src/wp-includes/rest-api/endpoints/class-wp-rest-widgets-controller.p
- hp:332
445 Call to an undefined method WP_Error|WP_REST_Response::set_data().
🪪 method.notFound
at
@@ -64088,21 +59459,6 @@
https://phpstan.org/blog/solving-phpstan-no-value-type-specified-in-i
terable-type
at src/wp-includes/rest-api/fields/class-wp-rest-meta-fields.php:142
- 179 Parameter #1 $error of method WP_Error::merge_from() expects
- WP_Error, WP_Error|true given.
- 🪪 argument.type
- at src/wp-includes/rest-api/fields/class-wp-rest-meta-fields.php:179
- 196 Cannot call method add_data() on WP_Error|true.
- 🪪 method.nonObject
- at src/wp-includes/rest-api/fields/class-wp-rest-meta-fields.php:196
- 197 Parameter #1 $error of method WP_Error::merge_from() expects
- WP_Error, WP_Error|true given.
- 🪪 argument.type
- at src/wp-includes/rest-api/fields/class-wp-rest-meta-fields.php:197
- 210 Parameter #1 $error of method WP_Error::merge_from() expects
- WP_Error, WP_Error|true given.
- 🪪 argument.type
- at src/wp-includes/rest-api/fields/class-wp-rest-meta-fields.php:210
247 Parameter #3 $meta_key of function get_metadata_raw expects string,
array|string given.
🪪 argument.type
@@ -64569,20 +59925,12 @@
🪪 argument.type
at src/wp-includes/revision.php:486
489 Function wp_restore_post_revision() should return int|false|null but
- returns int|WP_Error.
+ returns 0|WP_Error.
🪪 return.type
at src/wp-includes/revision.php:489
- 493 Parameter #1 $post_id of function update_post_meta expects int, int<m
- in, -1>|int<1, max>|WP_Error given.
- 🪪 argument.type
- at src/wp-includes/revision.php:493
503 Cannot access offset 'ID' on non-empty-array|WP_Post.
🪪 offsetAccess.nonOffsetAccessible
at src/wp-includes/revision.php:503
- 505 Function wp_restore_post_revision() should return int|false|null but
- returns int<min, -1>|int<1, max>|WP_Error.
- 🪪 return.type
- at src/wp-includes/revision.php:505
516 Function wp_restore_post_revision_meta() has no return type
specified.
🪪 missingType.return
@@ -64632,9 +59980,6 @@
714 Cannot access property $ID on array|WP_Post.
🪪 property.nonObject
at src/wp-includes/revision.php:714
- 766 Cannot access offset 'count' on array|WP_Error.
- 🪪 offsetAccess.nonOffsetAccessible
- at src/wp-includes/revision.php:766
855 Function _set_preview() never returns false so it can be removed from
the return type.
🪪 return.unusedType
@@ -65629,9 +60974,6 @@
non-empty-array|non-falsy-string.
🪪 offsetAccess.notFound
at src/wp-includes/taxonomy.php:550
- 556 Cannot access offset 'term_id' on array|WP_Error.
- 🪪 offsetAccess.nonOffsetAccessible
- at src/wp-includes/taxonomy.php:556
615 Cannot access property $_builtin on WP_Taxonomy|false.
🪪 property.nonObject
at src/wp-includes/taxonomy.php:615
@@ -65686,15 +61028,6 @@
💡 Learn more: https://phpstan.org/blog/solving-phpstan-access-to-und
efined-property
at src/wp-includes/taxonomy.php:993
- 1000 Function get_term() should return array|WP_Error|WP_Term|null but
- returns WP_Error|WP_Term|false.
- 🪪 return.type
- at src/wp-includes/taxonomy.php:1000
- 1006 Access to an undefined property WP_Error|WP_Term::$taxonomy.
- 🪪 property.notFound
- 💡 Learn more: https://phpstan.org/blog/solving-phpstan-access-to-und
- efined-property
- at src/wp-includes/taxonomy.php:1006
1099 Function get_term_by() return type has no value type specified in
iterable type array.
🪪 missingType.iterableValue
@@ -65702,12 +61035,8 @@
https://phpstan.org/blog/solving-phpstan-no-value-type-specified-in-i
terable-type
at src/wp-includes/taxonomy.php:1099
- 1120 Function get_term_by() should return array|WP_Term|false but returns
- array|WP_Error|WP_Term|false.
- 🪪 return.type
- at src/wp-includes/taxonomy.php:1120
1152 Parameter #1 $stack of function array_shift expects array, array<int|
- string|WP_Term>|string|WP_Error given.
+ string|WP_Term>|string given.
🪪 argument.type
at src/wp-includes/taxonomy.php:1152
1159 Function get_term_by() should return array|WP_Term|false but returns
@@ -65725,28 +61054,14 @@
array|WP_Error given.
🪪 argument.type
at src/wp-includes/taxonomy.php:1197
- 1224 Function get_term_field() should return int|string|WP_Error|null but
- returns array|WP_Error|WP_Term|null.
- 🪪 return.type
- at src/wp-includes/taxonomy.php:1224
- 1235 Access to an undefined property WP_Error|WP_Term::$taxonomy.
- 🪪 property.notFound
- 💡 Learn more: https://phpstan.org/blog/solving-phpstan-access-to-und
- efined-property
- at src/wp-includes/taxonomy.php:1235
- 1235 Access to an undefined property WP_Error|WP_Term::$term_id.
- 🪪 property.notFound
- 💡 Learn more: https://phpstan.org/blog/solving-phpstan-access-to-und
- efined-property
- at src/wp-includes/taxonomy.php:1235
1250 Function get_term_to_edit() never returns int so it can be removed
from the return type.
🪪 return.unusedType
at src/wp-includes/taxonomy.php:1250
- 1254 Function get_term_to_edit() should return int|string|WP_Error|null
- but returns array|WP_Error|WP_Term|null.
- 🪪 return.type
- at src/wp-includes/taxonomy.php:1254
+ 1250 Function get_term_to_edit() never returns null so it can be removed
+ from the return type.
+ 🪪 return.unusedType
+ at src/wp-includes/taxonomy.php:1250
1261 Function get_term_to_edit() should return int|string|WP_Error|null
but returns array|object.
🪪 return.type
@@ -65808,7 +61123,7 @@
🪪 argument.type
at src/wp-includes/taxonomy.php:1644
1661 Parameter #1 $stack of function array_shift expects array, array<int|
- string|WP_Term>|string|WP_Error given.
+ string|WP_Term>|string given.
🪪 argument.type
at src/wp-includes/taxonomy.php:1661
1700 Parameter #2 $term2 of function term_is_ancestor_of expects
@@ -65883,17 +61198,13 @@
https://phpstan.org/blog/solving-phpstan-no-value-type-specified-in-i
terable-type
at src/wp-includes/taxonomy.php:2038
- 2098 Function wp_delete_term() should return bool|int|WP_Error but returns
- array|WP_Error|WP_Term|null.
- 🪪 return.type
- at src/wp-includes/taxonomy.php:2098
- 2100 Cannot access property $parent on array|WP_Error|WP_Term.
+ 2100 Cannot access property $parent on array|WP_Term.
🪪 property.nonObject
at src/wp-includes/taxonomy.php:2100
- 2102 Cannot access property $term_id on array|WP_Error|WP_Term.
+ 2102 Cannot access property $term_id on array|WP_Term.
🪪 property.nonObject
at src/wp-includes/taxonomy.php:2102
- 2114 Cannot access property $term_id on array|WP_Error|WP_Term.
+ 2114 Cannot access property $term_id on array|WP_Term.
🪪 property.nonObject
at src/wp-includes/taxonomy.php:2114
2150 Parameter #1 $var of function count expects array|Countable, array<in
@@ -66016,10 +61327,6 @@
ring|WP_Term>|string|WP_Error given.
🪪 argument.type
at src/wp-includes/taxonomy.php:2919
- 2928 Function wp_set_object_terms() should return array|WP_Error but
- returns bool|WP_Error.
- 🪪 return.type
- at src/wp-includes/taxonomy.php:2928
2949 Parameter #2 $haystack of function in_array expects array, array<int|
string|WP_Term>|string|WP_Error given.
🪪 argument.type
@@ -66074,7 +61381,7 @@
💡 Learn more: https://phpstan.org/blog/solving-phpstan-access-to-und
efined-property
at src/wp-includes/taxonomy.php:3124
- 3128 Cannot access property $slug on array|WP_Error|WP_Term.
+ 3128 Cannot access property $slug on array|WP_Term.
🪪 property.nonObject
at src/wp-includes/taxonomy.php:3128
3220 Function wp_update_term() has parameter $args with no value type
@@ -66091,11 +61398,7 @@
https://phpstan.org/blog/solving-phpstan-no-value-type-specified-in-i
terable-type
at src/wp-includes/taxonomy.php:3220
- 3233 Function wp_update_term() should return array|WP_Error but returns
- array|WP_Error|WP_Term|null.
- 🪪 return.type
- at src/wp-includes/taxonomy.php:3233
- 3240 Cannot access property $data on array|WP_Error|WP_Term.
+ 3240 Cannot access property $data on array|WP_Term.
🪪 property.nonObject
at src/wp-includes/taxonomy.php:3240
3246 Parameter #1 $arr1 of function array_merge expects array,
@@ -66136,7 +61439,7 @@
🪪 argument.type
at src/wp-includes/taxonomy.php:3375
3375 Parameter #2 $fallback_title of function sanitize_title expects
- string, int|WP_Error given.
+ string, int given.
🪪 argument.type
at src/wp-includes/taxonomy.php:3375
3522 Parameter #1 $terms of function wp_update_term_count expects
@@ -66203,12 +61506,8 @@
3733 Function clean_taxonomy_cache() has no return type specified.
🪪 missingType.return
at src/wp-includes/taxonomy.php:3733
- 3796 Function get_object_term_cache() should return array<WP_Term>|bool|WP
- _Error but returns array|WP_Error|WP_Term|null.
- 🪪 return.type
- at src/wp-includes/taxonomy.php:3796
3802 Function get_object_term_cache() should return array<WP_Term>|bool|WP
- _Error but returns list<array|WP_Error|WP_Term|null>.
+ _Error but returns list<array|WP_Term|null>.
🪪 return.type
at src/wp-includes/taxonomy.php:3802
3837 Part $taxonomy (string|WP_Taxonomy) of encapsed string cannot be cast
@@ -66263,17 +61562,13 @@
https://phpstan.org/blog/solving-phpstan-no-value-type-specified-in-i
terable-type
at src/wp-includes/taxonomy.php:3972
- 3996 Function _get_term_children() should return array|WP_Error but
- returns array|WP_Error|WP_Term|null.
- 🪪 return.type
- at src/wp-includes/taxonomy.php:3996
4002 Cannot access property $term_id on array|object.
🪪 property.nonObject
at src/wp-includes/taxonomy.php:4002
4006 Cannot access property $parent on array|object.
🪪 property.nonObject
at src/wp-includes/taxonomy.php:4006
- 4008 Cannot access property $term_id on array|WP_Error|WP_Term.
+ 4008 Cannot access property $term_id on array|WP_Term.
🪪 property.nonObject
at src/wp-includes/taxonomy.php:4008
4013 Cannot access property $term_id on array|object.
@@ -66392,49 +61687,15 @@
https://phpstan.org/blog/solving-phpstan-no-value-type-specified-in-i
terable-type
at src/wp-includes/taxonomy.php:4600
- 4686 Function get_term_link() should return string|WP_Error but returns
- WP_Error|WP_Term.
- 🪪 return.type
- at src/wp-includes/taxonomy.php:4686
- 4689 Access to an undefined property WP_Error|WP_Term::$taxonomy.
- 🪪 property.notFound
- 💡 Learn more: https://phpstan.org/blog/solving-phpstan-access-to-und
- efined-property
- at src/wp-includes/taxonomy.php:4689
- 4703 Access to an undefined property WP_Error|WP_Term::$slug.
- 🪪 property.notFound
- 💡 Learn more: https://phpstan.org/blog/solving-phpstan-access-to-und
- efined-property
- at src/wp-includes/taxonomy.php:4703
- 4708 Access to an undefined property WP_Error|WP_Term::$term_id.
- 🪪 property.notFound
- 💡 Learn more: https://phpstan.org/blog/solving-phpstan-access-to-und
- efined-property
- at src/wp-includes/taxonomy.php:4708
4709 Cannot access property $query_var on WP_Taxonomy|false.
🪪 property.nonObject
at src/wp-includes/taxonomy.php:4709
4710 Cannot access property $query_var on WP_Taxonomy|false.
🪪 property.nonObject
at src/wp-includes/taxonomy.php:4710
- 4718 Access to an undefined property WP_Error|WP_Term::$term_id.
- 🪪 property.notFound
- 💡 Learn more: https://phpstan.org/blog/solving-phpstan-access-to-und
- efined-property
- at src/wp-includes/taxonomy.php:4718
4721 Cannot access property $slug on array|WP_Error|WP_Term.
🪪 property.nonObject
at src/wp-includes/taxonomy.php:4721
- 4745 Access to an undefined property WP_Error|WP_Term::$term_id.
- 🪪 property.notFound
- 💡 Learn more: https://phpstan.org/blog/solving-phpstan-access-to-und
- efined-property
- at src/wp-includes/taxonomy.php:4745
- 4758 Access to an undefined property WP_Error|WP_Term::$term_id.
- 🪪 property.notFound
- 💡 Learn more: https://phpstan.org/blog/solving-phpstan-access-to-und
- efined-property
- at src/wp-includes/taxonomy.php:4758
4792 Function the_taxonomies() has no return type specified.
🪪 missingType.return
at src/wp-includes/taxonomy.php:4792
@@ -66502,20 +61763,12 @@
s array<string|WP_Taxonomy>.
🪪 return.type
at src/wp-includes/taxonomy.php:4884
- 4912 Function is_object_in_term() should return bool|WP_Error but returns
- array<int|string|WP_Term>|string|WP_Error.
- 🪪 return.type
- at src/wp-includes/taxonomy.php:4912
4915 Parameter #1 $input_list of function wp_list_pluck expects array,
- array<int|string|WP_Term>|string|WP_Error given.
+ array<int|string|WP_Term>|string given.
🪪 argument.type
at src/wp-includes/taxonomy.php:4915
- 4919 Function is_object_in_term() should return bool|WP_Error but returns
- array<int|string|WP_Term>|string|WP_Error|true.
- 🪪 return.type
- at src/wp-includes/taxonomy.php:4919
- 4939 Argument of an invalid type array<int|string|WP_Term>|string|WP_Error
- |true supplied for foreach, only iterables are supported.
+ 4939 Argument of an invalid type array<int|string|WP_Term>|string|true sup
+ plied for foreach, only iterables are supported.
🪪 foreach.nonIterable
at src/wp-includes/taxonomy.php:4939
4941 Cannot access property $term_id on int|string|WP_Term.
@@ -66530,7 +61783,7 @@
4955 Cannot access property $slug on int|string|WP_Term.
🪪 property.nonObject
at src/wp-includes/taxonomy.php:4955
- 5051 Cannot access property $parent on array|WP_Error|WP_Term.
+ 5051 Cannot access property $parent on array|WP_Term.
🪪 property.nonObject
at src/wp-includes/taxonomy.php:5051
5133 Cannot access property $taxonomy on array|WP_Error|WP_Term.
@@ -66752,9 +62005,6 @@
19 Cannot access property $post_name on array|WP_Post.
🪪 property.nonObject
at src/wp-includes/theme-templates.php:19
- 66 Cannot access offset 0 on non-empty-array<WP_Term>|WP_Error.
- 🪪 offsetAccess.nonOffsetAccessible
- at src/wp-includes/theme-templates.php:66
90 Parameter #1 $string of function strlen expects string, int<2, max>
given.
🪪 argument.type
@@ -66801,10 +62051,6 @@
757 Function switch_theme() has no return type specified.
🪪 missingType.return
at src/wp-includes/theme.php:757
- 762 Parameter #1 $message of function wp_die expects string|WP_Error,
- WP_Error|true given.
- 🪪 argument.type
- at src/wp-includes/theme.php:762
979 Parameter #2 ...$values of function sprintf expects
bool|float|int|string|null, array|string|false given.
🪪 argument.type
@@ -66973,30 +62219,10 @@
array|string given.
🪪 argument.type
at src/wp-includes/theme.php:2141
- 2149 Parameter #1 $post of function
- wp_get_latest_revision_id_and_total_count expects int|WP_Post,
- int|WP_Error given.
- 🪪 argument.type
- at src/wp-includes/theme.php:2149
- 2150 Cannot access offset 'count' on array|WP_Error.
- 🪪 offsetAccess.nonOffsetAccessible
- at src/wp-includes/theme.php:2150
- 2151 Parameter #1 $post_id of function wp_save_post_revision expects int,
- int|WP_Error given.
- 🪪 argument.type
- at src/wp-includes/theme.php:2151
- 2157 Function wp_update_custom_css_post() should return WP_Error|WP_Post
- but returns int|WP_Error.
- 🪪 return.type
- at src/wp-includes/theme.php:2157
2159 Function wp_update_custom_css_post() should return WP_Error|WP_Post
but returns array|WP_Post|null.
🪪 return.type
at src/wp-includes/theme.php:2159
- 2159 Parameter #1 $post of function get_post expects int|WP_Post|null,
- int|WP_Error given.
- 🪪 argument.type
- at src/wp-includes/theme.php:2159
2184 Function add_editor_style() has no return type specified.
🪪 missingType.return
at src/wp-includes/theme.php:2184
@@ -67266,21 +62492,6 @@
https://phpstan.org/blog/solving-phpstan-no-value-type-specified-in-i
terable-type
at src/wp-includes/user.php:41
- 115 Access to an undefined property WP_Error|WP_User::$ID.
- 🪪 property.notFound
- 💡 Learn more: https://phpstan.org/blog/solving-phpstan-access-to-und
- efined-property
- at src/wp-includes/user.php:115
- 124 Access to an undefined property WP_Error|WP_User::$ID.
- 🪪 property.notFound
- 💡 Learn more: https://phpstan.org/blog/solving-phpstan-access-to-und
- efined-property
- at src/wp-includes/user.php:124
- 138 Access to an undefined property WP_Error|WP_User::$user_login.
- 🪪 property.notFound
- 💡 Learn more: https://phpstan.org/blog/solving-phpstan-access-to-und
- efined-property
- at src/wp-includes/user.php:138
387 Right side of && is always true.
🪪 booleanAnd.rightAlwaysTrue
at src/wp-includes/user.php:387
@@ -67541,10 +62752,6 @@
array|object given.
🪪 argument.type
at src/wp-includes/user.php:2784
- 2795 Parameter #1 $user_id of function switch_to_user_locale expects int,
- int|WP_Error given.
- 🪪 argument.type
- at src/wp-includes/user.php:2795
2853 Parameter #3 $message of function wp_mail expects string, array<strin
g>|string given.
🪪 argument.type
@@ -67553,37 +62760,13 @@
g>|string given.
🪪 argument.type
at src/wp-includes/user.php:2913
- 3111 Function get_password_reset_key() should return string|WP_Error but
- returns WP_Error|true.
- 🪪 return.type
- at src/wp-includes/user.php:3111
- 3137 Function get_password_reset_key() should return string|WP_Error but
- returns int|WP_Error.
- 🪪 return.type
- at src/wp-includes/user.php:3137
3252 Parameter #1 $str of function trim expects string, array|string
given.
🪪 argument.type
at src/wp-includes/user.php:3252
- 3343 Function retrieve_password() should return WP_Error|true but returns
- string|WP_Error.
- 🪪 return.type
- at src/wp-includes/user.php:3343
- 3376 Part $key (string|WP_Error) of encapsed string cannot be cast to
- string.
- 🪪 encapsedStringPart.nonString
- at src/wp-includes/user.php:3376
3492 Function reset_password() has no return type specified.
🪪 missingType.return
at src/wp-includes/user.php:3492
- 3625 Parameter #1 $user_id of function update_user_meta expects int, int<m
- in, -1>|int<1, max>|WP_Error given.
- 🪪 argument.type
- at src/wp-includes/user.php:3625
- 3630 Parameter #1 $user_id of function update_user_meta expects int, int<m
- in, -1>|int<1, max>|WP_Error given.
- 🪪 argument.type
- at src/wp-includes/user.php:3630
3660 Function wp_send_new_user_notifications() has no return type
specified.
🪪 missingType.return
@@ -67970,9 +63153,6 @@
https://phpstan.org/blog/solving-phpstan-no-value-type-specified-in-i
terable-type
at src/wp-includes/widgets.php:1599
- 1611 Call to an undefined method object::get_error_message().
- 🪪 method.notFound
- at src/wp-includes/widgets.php:1611
1632 Call to an undefined method object::get_item_quantity().
🪪 method.notFound
at src/wp-includes/widgets.php:1632
@@ -68038,18 +63218,6 @@
https://phpstan.org/blog/solving-phpstan-no-value-type-specified-in-i
terable-type
at src/wp-includes/widgets.php:1795
- 1812 Call to an undefined method
- SimplePie\SimplePie|WP_Error::get_error_message().
- 🪪 method.notFound
- at src/wp-includes/widgets.php:1812
- 1814 Call to an undefined method
- SimplePie\SimplePie|WP_Error::get_permalink().
- 🪪 method.notFound
- at src/wp-includes/widgets.php:1814
- 1819 Call to an undefined method
- SimplePie\SimplePie|WP_Error::__destruct().
- 🪪 method.notFound
- at src/wp-includes/widgets.php:1819
1834 Function wp_widgets_init() has no return type specified.
🪪 missingType.return
at src/wp-includes/widgets.php:1834
@@ -69088,26 +64256,10 @@
https://phpstan.org/blog/solving-phpstan-no-value-type-specified-in-i
terable-type
at src/wp-includes/widgets/class-wp-widget-rss.php:47
- 72 Call to an undefined method
- SimplePie\SimplePie|WP_Error::get_description().
- 🪪 method.notFound
- at src/wp-includes/widgets/class-wp-widget-rss.php:72
- 74 Call to an undefined method
- SimplePie\SimplePie|WP_Error::get_title().
- 🪪 method.notFound
- at src/wp-includes/widgets/class-wp-widget-rss.php:74
- 76 Call to an undefined method
- SimplePie\SimplePie|WP_Error::get_permalink().
- 🪪 method.notFound
- at src/wp-includes/widgets/class-wp-widget-rss.php:76
128 Parameter #1 $str of function strip_tags expects string,
array|float|int|string|false|null given.
🪪 argument.type
at src/wp-includes/widgets/class-wp-widget-rss.php:128
- 142 Call to an undefined method
- SimplePie\SimplePie|WP_Error::__destruct().
- 🪪 method.notFound
- at src/wp-includes/widgets/class-wp-widget-rss.php:142
157 Method WP_Widget_RSS::update() has parameter $new_instance with no
value type specified in iterable type array.
🪪 missingType.iterableValue
@@ -69413,16 +64565,6 @@
470 Function wp_login_viewport_meta() has no return type specified.
🪪 missingType.return
at src/wp-login.php:470
- 850 Cannot call method add() on WP_Error|true.
- 🪪 method.nonObject
- at src/wp-login.php:850
- 852 Cannot call method add() on WP_Error|true.
- 🪪 method.nonObject
- at src/wp-login.php:852
- 886 Parameter #3 $wp_error of function login_header expects
- WP_Error|null, WP_Error|true given.
- 🪪 argument.type
- at src/wp-login.php:886
900 Parameter #1 $text of function esc_attr expects string, array|string
given.
🪪 argument.type
@@ -69443,13 +64585,6 @@
given.
🪪 argument.type
at src/wp-login.php:952
- 966 Call to an undefined method WP_Error|WP_User::get_error_code().
- 🪪 method.notFound
- at src/wp-login.php:966
- 1002 Parameter #1 $user of function reset_password expects WP_User,
- WP_Error|WP_User given.
- 🪪 argument.type
- at src/wp-login.php:1002
1034 Variable $rp_login might not be defined.
🪪 variable.undefined
at src/wp-login.php:1034
@@ -69464,10 +64599,6 @@
string, array|string given.
🪪 argument.type
at src/wp-login.php:1131
- 1163 Parameter #3 $wp_error of function login_header expects
- WP_Error|null, int|WP_Error given.
- 🪪 argument.type
- at src/wp-login.php:1163
1170 Parameter #1 $text of function esc_attr expects string, array|string
given.
🪪 argument.type
@@ -69480,10 +64611,6 @@
array|string given.
🪪 argument.type
at src/wp-login.php:1256
- 1260 Parameter #1 $message of function wp_die expects string|WP_Error,
- WP_Error|true given.
- 🪪 argument.type
- at src/wp-login.php:1260
1295 Parameter #1 $username of function sanitize_user expects string,
array|string given.
🪪 argument.type
@@ -69493,30 +64620,6 @@
given.
🪪 argument.type
at src/wp-login.php:1379
- 1413 Access to an undefined property WP_Error|WP_User::$ID.
- 🪪 property.notFound
- 💡 Learn more: https://phpstan.org/blog/solving-phpstan-access-to-und
- efined-property
- at src/wp-login.php:1413
- 1413 Access to an undefined property WP_Error|WP_User::$ID.
- 🪪 property.notFound
- 💡 Learn more: https://phpstan.org/blog/solving-phpstan-access-to-und
- efined-property
- at src/wp-login.php:1413
- 1415 Call to an undefined method WP_Error|WP_User::has_cap().
- 🪪 method.notFound
- at src/wp-login.php:1415
- 1416 Access to an undefined property WP_Error|WP_User::$ID.
- 🪪 property.notFound
- 💡 Learn more: https://phpstan.org/blog/solving-phpstan-access-to-und
- efined-property
- at src/wp-login.php:1416
- 1417 Call to an undefined method WP_Error|WP_User::has_cap().
- 🪪 method.notFound
- at src/wp-login.php:1417
- 1418 Call to an undefined method WP_Error|WP_User::has_cap().
- 🪪 method.notFound
- at src/wp-login.php:1418
1421 Parameter #1 $location of function wp_redirect expects string,
array|float|int|string|false|null given.
🪪 argument.type
@@ -69595,9 +64698,6 @@
array|string given.
🪪 argument.type
at src/wp-mail.php:237
- 239 Cannot call method get_error_message() on int|WP_Error.
- 🪪 method.nonObject
- at src/wp-mail.php:239
256 Parameter #1 $text of function esc_html expects string, int given.
🪪 argument.type
at src/wp-mail.php:256
@@ -69629,12 +64729,6 @@
120 Function show_blog_form() has no return type specified.
🪪 missingType.return
at src/wp-signup.php:120
- 133 Cannot call method get_error_message() on string|WP_Error.
- 🪪 method.nonObject
- at src/wp-signup.php:133
- 166 Cannot call method get_error_message() on string|WP_Error.
- 🪪 method.nonObject
- at src/wp-signup.php:166
257 Function validate_blog_form() return type has no value type specified
in iterable type array.
🪪 missingType.iterableValue
@@ -69645,15 +64739,6 @@
275 Function show_user_form() has no return type specified.
🪪 missingType.return
at src/wp-signup.php:275
- 282 Cannot call method get_error_message() on string|WP_Error.
- 🪪 method.nonObject
- at src/wp-signup.php:282
- 295 Cannot call method get_error_message() on string|WP_Error.
- 🪪 method.nonObject
- at src/wp-signup.php:295
- 307 Cannot call method get_error_message() on string|WP_Error.
- 🪪 method.nonObject
- at src/wp-signup.php:307
329 Function validate_user_form() return type has no value type specified
in iterable type array.
🪪 missingType.iterableValue
@@ -69673,10 +64758,6 @@
be removed from the return type.
🪪 return.unusedType
at src/wp-signup.php:441
- 515 Parameter #7 $blog_id of function confirm_another_blog_signup expects
- int, int|WP_Error given.
- 🪪 argument.type
- at src/wp-signup.php:515
533 Function confirm_another_blog_signup() has no return type specified.
🪪 missingType.return
at src/wp-signup.php:533
@@ -69762,9 +64843,6 @@
138 Variable $wpdb might not be defined.
🪪 variable.undefined
at src/wp-trackback.php:138
- 163 Cannot call method get_error_message() on int|WP_Error|false.
- 🪪 method.nonObject
- at src/wp-trackback.php:163
166 Variable $wpdb might not be defined.
🪪 variable.undefined
at src/wp-trackback.php:166
@@ -69784,5 +64862,5 @@
at src/xmlrpc.php:101
------ ------------------------------------------------------
- [ERROR] Found 14271 errors
+ [ERROR] Found 13233 errors
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment