Commit 274e5488bd for woocommerce
commit 274e5488bdc1838e39ae918e0000e13197f63a71
Author: Nikhil <Nikschavan@users.noreply.github.com>
Date: Mon Dec 8 14:25:26 2025 +0530
Improve DI container type inference for PHPStan (#62301)
* Improve DI container type inference for PHPStan
Add proper @template annotations to Container::get(),
RuntimeContainer::get(), and LegacyProxy::get_instance_of()
so PHPStan can infer return types from class-string parameters.
* Update PHPStan baseline after DI container type improvements
Regenerate baseline to account for improved type inference
from Container::get() and LegacyProxy::get_instance_of().
* Add changelog for DI container type inference improvements
* Use @psalm-param for class-string<T> to satisfy both PHPCS and PHPStan
PHPCS doesn't recognize @psalm-param as a param tag, so it won't
complain about type mismatch, while PHPStan still understands it
for generic type inference.
* Use @phpstan-param for class-string<T> type hints
diff --git a/plugins/woocommerce/changelog/WOOA7S-804 b/plugins/woocommerce/changelog/WOOA7S-804
new file mode 100644
index 0000000000..13bec6eac3
--- /dev/null
+++ b/plugins/woocommerce/changelog/WOOA7S-804
@@ -0,0 +1,4 @@
+Significance: patch
+Type: dev
+
+Add @template annotations to DI container for better PHPStan type inference.
diff --git a/plugins/woocommerce/phpstan-baseline.neon b/plugins/woocommerce/phpstan-baseline.neon
index a689e15296..a8e4010e42 100644
--- a/plugins/woocommerce/phpstan-baseline.neon
+++ b/plugins/woocommerce/phpstan-baseline.neon
@@ -630,30 +630,6 @@ parameters:
count: 1
path: includes/abstracts/abstract-wc-order.php
- -
- message: '#^Cannot call method call_function\(\) on mixed\.$#'
- identifier: method.nonObject
- count: 1
- path: includes/abstracts/abstract-wc-order.php
-
- -
- message: '#^Cannot call method feature_is_enabled\(\) on mixed\.$#'
- identifier: method.nonObject
- count: 1
- path: includes/abstracts/abstract-wc-order.php
-
- -
- message: '#^Cannot call method find_user_ids_by_billing_email_for_coupons_usage_lookup\(\) on mixed\.$#'
- identifier: method.nonObject
- count: 1
- path: includes/abstracts/abstract-wc-order.php
-
- -
- message: '#^Cannot call method get_instance_of\(\) on mixed\.$#'
- identifier: method.nonObject
- count: 1
- path: includes/abstracts/abstract-wc-order.php
-
-
message: '#^Cannot call method get_quantity\(\) on class\-string\|object\.$#'
identifier: method.nonObject
@@ -1248,12 +1224,6 @@ parameters:
count: 1
path: includes/abstracts/abstract-wc-payment-gateway.php
- -
- message: '#^Cannot call method sanitize\(\) on mixed\.$#'
- identifier: method.nonObject
- count: 1
- path: includes/abstracts/abstract-wc-payment-gateway.php
-
-
message: '#^Expected 3 @param tags, found 2\.$#'
identifier: paramTag.count
@@ -1482,30 +1452,6 @@ parameters:
count: 1
path: includes/abstracts/abstract-wc-product.php
- -
- message: '#^Cannot call method call_function\(\) on mixed\.$#'
- identifier: method.nonObject
- count: 1
- path: includes/abstracts/abstract-wc-product.php
-
- -
- message: '#^Cannot call method feature_is_enabled\(\) on mixed\.$#'
- identifier: method.nonObject
- count: 1
- path: includes/abstracts/abstract-wc-product.php
-
- -
- message: '#^Cannot call method on_product_changed\(\) on mixed\.$#'
- identifier: method.nonObject
- count: 1
- path: includes/abstracts/abstract-wc-product.php
-
- -
- message: '#^Cannot call method on_product_deleted\(\) on mixed\.$#'
- identifier: method.nonObject
- count: 1
- path: includes/abstracts/abstract-wc-product.php
-
-
message: '#^Cannot cast mixed to float\.$#'
identifier: cast.double
@@ -2286,12 +2232,6 @@ parameters:
count: 1
path: includes/abstracts/abstract-wc-session.php
- -
- message: '#^Cannot call method sanitize\(\) on mixed\.$#'
- identifier: method.nonObject
- count: 1
- path: includes/abstracts/abstract-wc-settings-api.php
-
-
message: '#^Method WC_Settings_API\:\:add_error\(\) has no return type specified\.$#'
identifier: missingType.return
@@ -2730,18 +2670,6 @@ parameters:
count: 1
path: includes/admin/class-wc-admin-api-keys.php
- -
- message: '#^Cannot call method feature_is_enabled\(\) on mixed\.$#'
- identifier: method.nonObject
- count: 1
- path: includes/admin/class-wc-admin-assets.php
-
- -
- message: '#^Cannot call method get_general_cost_edit_field_tooltip\(\) on mixed\.$#'
- identifier: method.nonObject
- count: 2
- path: includes/admin/class-wc-admin-assets.php
-
-
message: '#^Constant WC_ADMIN_ABSPATH not found\.$#'
identifier: constant.notFound
@@ -3738,12 +3666,6 @@ parameters:
count: 1
path: includes/admin/class-wc-admin-help.php
- -
- message: '#^Cannot call method register\(\) on mixed\.$#'
- identifier: method.nonObject
- count: 1
- path: includes/admin/class-wc-admin-importers.php
-
-
message: '#^Constant WC_ABSPATH not found\.$#'
identifier: constant.notFound
@@ -4020,18 +3942,6 @@ parameters:
count: 1
path: includes/admin/class-wc-admin-menus.php
- -
- message: '#^Cannot call method custom_orders_table_usage_is_enabled\(\) on mixed\.$#'
- identifier: method.nonObject
- count: 1
- path: includes/admin/class-wc-admin-menus.php
-
- -
- message: '#^Cannot call method setup\(\) on mixed\.$#'
- identifier: method.nonObject
- count: 2
- path: includes/admin/class-wc-admin-menus.php
-
-
message: '#^Method WC_Admin_Menus\:\:add_nav_menu_meta_boxes\(\) has no return type specified\.$#'
identifier: missingType.return
@@ -4308,12 +4218,6 @@ parameters:
count: 1
path: includes/admin/class-wc-admin-notices.php
- -
- message: '#^Cannot call method get_legacy_webhooks_count\(\) on mixed\.$#'
- identifier: method.nonObject
- count: 2
- path: includes/admin/class-wc-admin-notices.php
-
-
message: '#^Constant WC_ABSPATH not found\.$#'
identifier: constant.notFound
@@ -4710,12 +4614,6 @@ parameters:
count: 1
path: includes/admin/class-wc-admin-post-types.php
- -
- message: '#^Cannot call method feature_is_enabled\(\) on mixed\.$#'
- identifier: method.nonObject
- count: 2
- path: includes/admin/class-wc-admin-post-types.php
-
-
message: '#^Cannot call method get_catalog_visibility\(\) on WC_Product\|false\|null\.$#'
identifier: method.nonObject
@@ -5598,12 +5496,6 @@ parameters:
count: 1
path: includes/admin/class-wc-admin-status.php
- -
- message: '#^Cannot call method render\(\) on mixed\.$#'
- identifier: method.nonObject
- count: 1
- path: includes/admin/class-wc-admin-status.php
-
-
message: '#^Method WC_Admin_Status\:\:flush_db_logs\(\) has no return type specified\.$#'
identifier: missingType.return
@@ -5760,12 +5652,6 @@ parameters:
count: 2
path: includes/admin/class-wc-admin-taxonomies.php
- -
- message: '#^Cannot call method schedule_action\(\) on mixed\.$#'
- identifier: method.nonObject
- count: 1
- path: includes/admin/class-wc-admin-taxonomies.php
-
-
message: '#^Constant WC_VERSION not found\.$#'
identifier: constant.notFound
@@ -5928,12 +5814,6 @@ parameters:
count: 1
path: includes/admin/class-wc-admin-webhooks-table-list.php
- -
- message: '#^Cannot call method get_legacy_webhooks_count\(\) on mixed\.$#'
- identifier: method.nonObject
- count: 1
- path: includes/admin/class-wc-admin-webhooks-table-list.php
-
-
message: '#^Method WC_Admin_Webhooks_Table_List\:\:display_tablenav\(\) has no return type specified\.$#'
identifier: missingType.return
@@ -6090,24 +5970,6 @@ parameters:
count: 1
path: includes/admin/class-wc-admin.php
- -
- message: '#^Cannot call method ensure_links_open_in_new_tab\(\) on mixed\.$#'
- identifier: method.nonObject
- count: 2
- path: includes/admin/class-wc-admin.php
-
- -
- message: '#^Cannot call method render\(\) on mixed\.$#'
- identifier: method.nonObject
- count: 2
- path: includes/admin/class-wc-admin.php
-
- -
- message: '#^Cannot call method set_email_type\(\) on mixed\.$#'
- identifier: method.nonObject
- count: 1
- path: includes/admin/class-wc-admin.php
-
-
message: '#^Constant WC_VERSION not found\.$#'
identifier: constant.notFound
@@ -7530,18 +7392,6 @@ parameters:
count: 1
path: includes/admin/importers/class-wc-product-csv-importer-controller.php
- -
- message: '#^Cannot call method feature_is_enabled\(\) on mixed\.$#'
- identifier: method.nonObject
- count: 2
- path: includes/admin/importers/class-wc-product-csv-importer-controller.php
-
- -
- message: '#^Cannot call method handle_csv_upload\(\) on mixed\.$#'
- identifier: method.nonObject
- count: 1
- path: includes/admin/importers/class-wc-product-csv-importer-controller.php
-
-
message: '#^Constant WC_ABSPATH not found\.$#'
identifier: constant.notFound
@@ -7842,12 +7692,6 @@ parameters:
count: 1
path: includes/admin/importers/class-wc-tax-rate-importer.php
- -
- message: '#^Cannot call method feature_is_enabled\(\) on mixed\.$#'
- identifier: method.nonObject
- count: 1
- path: includes/admin/importers/mappings/default.php
-
-
message: '#^Parameter \#2 \.\.\.\$values of function sprintf expects bool\|float\|int\|string\|null, mixed given\.$#'
identifier: argument.type
@@ -8400,12 +8244,6 @@ parameters:
count: 1
path: includes/admin/list-tables/class-wc-admin-list-table-orders.php
- -
- message: '#^Property WC_Admin_List_Table_Orders\:\:\$orders_list_table \(Automattic\\WooCommerce\\Internal\\Admin\\Orders\\ListTable\) does not accept mixed\.$#'
- identifier: assign.propertyType
- count: 1
- path: includes/admin/list-tables/class-wc-admin-list-table-orders.php
-
-
message: '#^Return type \(string\) of method WC_Admin_List_Table_Orders\:\:get_primary_column\(\) should be compatible with return type \(array\) of method WC_Admin_List_Table\:\:get_primary_column\(\)$#'
identifier: method.childReturnType
@@ -8448,12 +8286,6 @@ parameters:
count: 1
path: includes/admin/list-tables/class-wc-admin-list-table-products.php
- -
- message: '#^Cannot call method feature_is_enabled\(\) on mixed\.$#'
- identifier: method.nonObject
- count: 1
- path: includes/admin/list-tables/class-wc-admin-list-table-products.php
-
-
message: '#^Cannot call method get_backorders\(\) on object\|null\.$#'
identifier: method.nonObject
@@ -8640,12 +8472,6 @@ parameters:
count: 1
path: includes/admin/list-tables/class-wc-admin-list-table-products.php
- -
- message: '#^Cannot call method product_meta_lookup_table_cogs_value_columns_exist\(\) on mixed\.$#'
- identifier: method.nonObject
- count: 1
- path: includes/admin/list-tables/class-wc-admin-list-table-products.php
-
-
message: '#^Cannot cast numeric\-string\|WP_Error to int\.$#'
identifier: cast.int
@@ -9012,12 +8838,6 @@ parameters:
count: 1
path: includes/admin/meta-boxes/class-wc-meta-box-order-actions.php
- -
- message: '#^Cannot call method get_base_page_url\(\) on mixed\.$#'
- identifier: method.nonObject
- count: 1
- path: includes/admin/meta-boxes/class-wc-meta-box-order-actions.php
-
-
message: '#^Cannot call method get_id\(\) on bool\|WC_Order\|WC_Order_Refund\.$#'
identifier: method.nonObject
@@ -9384,12 +9204,6 @@ parameters:
count: 1
path: includes/admin/meta-boxes/class-wc-meta-box-product-data.php
- -
- message: '#^Cannot call method feature_is_enabled\(\) on mixed\.$#'
- identifier: method.nonObject
- count: 2
- path: includes/admin/meta-boxes/class-wc-meta-box-product-data.php
-
-
message: '#^Cannot call method get_attributes\(\) on WC_Product\|false\|null\.$#'
identifier: method.nonObject
@@ -9816,12 +9630,6 @@ parameters:
count: 4
path: includes/admin/meta-boxes/views/html-order-item.php
- -
- message: '#^Cannot call method feature_is_enabled\(\) on mixed\.$#'
- identifier: method.nonObject
- count: 1
- path: includes/admin/meta-boxes/views/html-order-item.php
-
-
message: '#^Parameter \#1 \$price of function wc_price expects float, string given\.$#'
identifier: argument.type
@@ -9882,12 +9690,6 @@ parameters:
count: 1
path: includes/admin/meta-boxes/views/html-order-items.php
- -
- message: '#^Cannot call method feature_is_enabled\(\) on mixed\.$#'
- identifier: method.nonObject
- count: 1
- path: includes/admin/meta-boxes/views/html-order-items.php
-
-
message: '#^Cannot call method get_title\(\) on WC_Payment_Gateway\|true\.$#'
identifier: method.nonObject
@@ -10068,24 +9870,12 @@ parameters:
count: 1
path: includes/admin/meta-boxes/views/html-product-data-attributes.php
- -
- message: '#^Cannot call method feature_is_enabled\(\) on mixed\.$#'
- identifier: method.nonObject
- count: 1
- path: includes/admin/meta-boxes/views/html-product-data-general.php
-
-
message: '#^Cannot call method get_button_text\(\) on class\-string\|object\.$#'
identifier: method.nonObject
count: 1
path: includes/admin/meta-boxes/views/html-product-data-general.php
- -
- message: '#^Cannot call method get_general_cost_edit_field_tooltip\(\) on mixed\.$#'
- identifier: method.nonObject
- count: 1
- path: includes/admin/meta-boxes/views/html-product-data-general.php
-
-
message: '#^Cannot call method get_product_url\(\) on class\-string\|object\.$#'
identifier: method.nonObject
@@ -10218,12 +10008,6 @@ parameters:
count: 5
path: includes/admin/meta-boxes/views/html-product-data-shipping.php
- -
- message: '#^Cannot call method feature_is_enabled\(\) on mixed\.$#'
- identifier: method.nonObject
- count: 1
- path: includes/admin/meta-boxes/views/html-product-data-variations.php
-
-
message: '#^Cannot call method get_name\(\) on mixed\.$#'
identifier: method.nonObject
@@ -11934,12 +11718,6 @@ parameters:
count: 1
path: includes/admin/settings/class-wc-settings-accounts.php
- -
- message: '#^Cannot call method feature_is_enabled\(\) on mixed\.$#'
- identifier: method.nonObject
- count: 1
- path: includes/admin/settings/class-wc-settings-advanced.php
-
-
message: '#^Method WC_Settings_Advanced\:\:notices\(\) has no return type specified\.$#'
identifier: missingType.return
@@ -11982,12 +11760,6 @@ parameters:
count: 1
path: includes/admin/settings/class-wc-settings-emails.php
- -
- message: '#^Cannot call method change_feature_enable\(\) on mixed\.$#'
- identifier: method.nonObject
- count: 1
- path: includes/admin/settings/class-wc-settings-emails.php
-
-
message: '#^If condition is always false\.$#'
identifier: if.alwaysFalse
@@ -12096,12 +11868,6 @@ parameters:
count: 1
path: includes/admin/settings/class-wc-settings-emails.php
- -
- message: '#^Cannot call method get_providers\(\) on mixed\.$#'
- identifier: method.nonObject
- count: 1
- path: includes/admin/settings/class-wc-settings-general.php
-
-
message: '#^Constant WC_VERSION not found\.$#'
identifier: constant.notFound
@@ -12714,6 +12480,42 @@ parameters:
count: 1
path: includes/admin/views/html-admin-page-status-report.php
+ -
+ message: '#^Cannot access offset ''active_plugins'' on array\|WP_Error\.$#'
+ identifier: offsetAccess.nonOffsetAccessible
+ count: 1
+ path: includes/admin/views/html-admin-page-status-report.php
+
+ -
+ message: '#^Cannot access offset ''database'' on array\|WP_Error\.$#'
+ identifier: offsetAccess.nonOffsetAccessible
+ count: 1
+ path: includes/admin/views/html-admin-page-status-report.php
+
+ -
+ message: '#^Cannot access offset ''dropins_mu_plugins'' on array\|WP_Error\.$#'
+ identifier: offsetAccess.nonOffsetAccessible
+ count: 1
+ path: includes/admin/views/html-admin-page-status-report.php
+
+ -
+ message: '#^Cannot access offset ''environment'' on array\|WP_Error\.$#'
+ identifier: offsetAccess.nonOffsetAccessible
+ count: 1
+ path: includes/admin/views/html-admin-page-status-report.php
+
+ -
+ message: '#^Cannot access offset ''inactive_plugins'' on array\|WP_Error\.$#'
+ identifier: offsetAccess.nonOffsetAccessible
+ count: 1
+ path: includes/admin/views/html-admin-page-status-report.php
+
+ -
+ message: '#^Cannot access offset ''logging'' on array\|WP_Error\.$#'
+ identifier: offsetAccess.nonOffsetAccessible
+ count: 1
+ path: includes/admin/views/html-admin-page-status-report.php
+
-
message: '#^Cannot access offset ''offers'' on mixed\.$#'
identifier: offsetAccess.nonOffsetAccessible
@@ -12721,29 +12523,47 @@ parameters:
path: includes/admin/views/html-admin-page-status-report.php
-
- message: '#^Cannot access offset ''version'' on mixed\.$#'
+ message: '#^Cannot access offset ''pages'' on array\|WP_Error\.$#'
identifier: offsetAccess.nonOffsetAccessible
count: 1
path: includes/admin/views/html-admin-page-status-report.php
-
- message: '#^Cannot access offset 0 on mixed\.$#'
+ message: '#^Cannot access offset ''post_type_counts'' on array\|WP_Error\.$#'
identifier: offsetAccess.nonOffsetAccessible
- count: 2
+ count: 1
path: includes/admin/views/html-admin-page-status-report.php
-
- message: '#^Cannot call method get_endpoint_data\(\) on mixed\.$#'
- identifier: method.nonObject
+ message: '#^Cannot access offset ''security'' on array\|WP_Error\.$#'
+ identifier: offsetAccess.nonOffsetAccessible
count: 1
path: includes/admin/views/html-admin-page-status-report.php
-
- message: '#^Cannot call method get_wp_plugin_id\(\) on mixed\.$#'
- identifier: method.nonObject
+ message: '#^Cannot access offset ''settings'' on array\|WP_Error\.$#'
+ identifier: offsetAccess.nonOffsetAccessible
+ count: 1
+ path: includes/admin/views/html-admin-page-status-report.php
+
+ -
+ message: '#^Cannot access offset ''theme'' on array\|WP_Error\.$#'
+ identifier: offsetAccess.nonOffsetAccessible
+ count: 1
+ path: includes/admin/views/html-admin-page-status-report.php
+
+ -
+ message: '#^Cannot access offset ''version'' on mixed\.$#'
+ identifier: offsetAccess.nonOffsetAccessible
count: 1
path: includes/admin/views/html-admin-page-status-report.php
+ -
+ message: '#^Cannot access offset 0 on mixed\.$#'
+ identifier: offsetAccess.nonOffsetAccessible
+ count: 2
+ path: includes/admin/views/html-admin-page-status-report.php
+
-
message: '#^Expression "\$dropins_count" on a separate line does not do anything\.$#'
identifier: expr.resultUnused
@@ -12810,12 +12630,6 @@ parameters:
count: 1
path: includes/admin/views/html-admin-settings.php
- -
- message: '#^Cannot call method feature_is_enabled\(\) on mixed\.$#'
- identifier: method.nonObject
- count: 1
- path: includes/admin/views/html-bulk-edit-product.php
-
-
message: '#^Parameter \#1 \$dimensions_unit of static method Automattic\\WooCommerce\\Utilities\\I18nUtil\:\:get_dimensions_unit_label\(\) expects string, mixed given\.$#'
identifier: argument.type
@@ -12888,12 +12702,6 @@ parameters:
count: 1
path: includes/admin/views/html-notice-wp-php-minimum-requirements.php
- -
- message: '#^Cannot call method feature_is_enabled\(\) on mixed\.$#'
- identifier: method.nonObject
- count: 1
- path: includes/admin/views/html-quick-edit-product.php
-
-
message: '#^Parameter \#1 \$value of function wc_format_localized_decimal expects string, int given\.$#'
identifier: argument.type
@@ -13416,24 +13224,12 @@ parameters:
count: 1
path: includes/class-wc-ajax.php
- -
- message: '#^Cannot call method add_coupon_discount_via_ajax\(\) on mixed\.$#'
- identifier: method.nonObject
- count: 1
- path: includes/class-wc-ajax.php
-
-
message: '#^Cannot call method add_item\(\) on WC_Order\|WC_Order_Refund\|true\.$#'
identifier: method.nonObject
count: 1
path: includes/class-wc-ajax.php
- -
- message: '#^Cannot call method add_meta_ajax\(\) on mixed\.$#'
- identifier: method.nonObject
- count: 1
- path: includes/class-wc-ajax.php
-
-
message: '#^Cannot call method add_order_note\(\) on WC_Order\|WC_Order_Refund\|true\.$#'
identifier: method.nonObject
@@ -13452,12 +13248,6 @@ parameters:
count: 1
path: includes/class-wc-ajax.php
- -
- message: '#^Cannot call method calc_line_taxes_via_ajax\(\) on mixed\.$#'
- identifier: method.nonObject
- count: 1
- path: includes/class-wc-ajax.php
-
-
message: '#^Cannot call method calculate_taxes\(\) on WC_Order\|WC_Order_Refund\|true\.$#'
identifier: method.nonObject
@@ -13482,18 +13272,6 @@ parameters:
count: 2
path: includes/class-wc-ajax.php
- -
- message: '#^Cannot call method call_function\(\) on mixed\.$#'
- identifier: method.nonObject
- count: 3
- path: includes/class-wc-ajax.php
-
- -
- message: '#^Cannot call method check_locked_orders_ajax\(\) on mixed\.$#'
- identifier: method.nonObject
- count: 1
- path: includes/class-wc-ajax.php
-
-
message: '#^Cannot call method create_all_product_variations\(\) on class\-string\|object\.$#'
identifier: method.nonObject
@@ -13512,18 +13290,6 @@ parameters:
count: 1
path: includes/class-wc-ajax.php
- -
- message: '#^Cannot call method delete_meta_ajax\(\) on mixed\.$#'
- identifier: method.nonObject
- count: 1
- path: includes/class-wc-ajax.php
-
- -
- message: '#^Cannot call method feature_is_enabled\(\) on mixed\.$#'
- identifier: method.nonObject
- count: 2
- path: includes/class-wc-ajax.php
-
-
message: '#^Cannot call method get_attributes\(\) on mixed\.$#'
identifier: method.nonObject
@@ -13692,12 +13458,6 @@ parameters:
count: 1
path: includes/class-wc-ajax.php
- -
- message: '#^Cannot call method refresh_lock_ajax\(\) on mixed\.$#'
- identifier: method.nonObject
- count: 1
- path: includes/class-wc-ajax.php
-
-
message: '#^Cannot call method remove_coupon\(\) on WC_Order\|WC_Order_Refund\|true\.$#'
identifier: method.nonObject
@@ -13716,12 +13476,6 @@ parameters:
count: 8
path: includes/class-wc-ajax.php
- -
- message: '#^Cannot call method search_metakeys_ajax\(\) on mixed\.$#'
- identifier: method.nonObject
- count: 1
- path: includes/class-wc-ajax.php
-
-
message: '#^Cannot call method set_cogs_value\(\) on WC_Product\|false\|null\.$#'
identifier: method.nonObject
@@ -14547,7 +14301,7 @@ parameters:
-
message: '#^Parameter \#1 \$maybeint of function absint expects array\|bool\|float\|int\|resource\|string\|null, mixed given\.$#'
identifier: argument.type
- count: 27
+ count: 28
path: includes/class-wc-ajax.php
-
@@ -16938,18 +16692,6 @@ parameters:
count: 3
path: includes/class-wc-checkout.php
- -
- message: '#^Cannot call method call_function\(\) on mixed\.$#'
- identifier: method.nonObject
- count: 1
- path: includes/class-wc-checkout.php
-
- -
- message: '#^Cannot call method feature_is_enabled\(\) on mixed\.$#'
- identifier: method.nonObject
- count: 1
- path: includes/class-wc-checkout.php
-
-
message: '#^Cannot call method get_checkout_order_received_url\(\) on bool\|WC_Order\|WC_Order_Refund\.$#'
identifier: method.nonObject
@@ -17334,12 +17076,6 @@ parameters:
count: 10
path: includes/class-wc-cli.php
- -
- message: '#^Cannot call method register\(\) on mixed\.$#'
- identifier: method.nonObject
- count: 1
- path: includes/class-wc-cli.php
-
-
message: '#^Method WC_CLI\:\:add_blueprint_cli_hook\(\) has no return type specified\.$#'
identifier: missingType.return
@@ -20136,18 +19872,6 @@ parameters:
count: 2
path: includes/class-wc-frontend-scripts.php
- -
- message: '#^Cannot call method get_providers\(\) on class\-string\|object\.$#'
- identifier: method.nonObject
- count: 1
- path: includes/class-wc-frontend-scripts.php
-
- -
- message: '#^Cannot call method get_providers\(\) on mixed\.$#'
- identifier: method.nonObject
- count: 1
- path: includes/class-wc-frontend-scripts.php
-
-
message: '#^Constant WC_VERSION not found\.$#'
identifier: constant.notFound
@@ -20244,12 +19968,6 @@ parameters:
count: 1
path: includes/class-wc-frontend-scripts.php
- -
- message: '#^Parameter \#1 \$object of function method_exists expects object\|string, mixed given\.$#'
- identifier: argument.type
- count: 1
- path: includes/class-wc-frontend-scripts.php
-
-
message: '#^Parameter \#1 \$string of function wc_string_to_bool expects bool\|string, mixed given\.$#'
identifier: argument.type
@@ -20274,6 +19992,12 @@ parameters:
count: 1
path: includes/class-wc-frontend-scripts.php
+ -
+ message: '#^Property WC_Address_Provider\:\:\$branding_html \(string\) on left side of \?\? is not nullable\.$#'
+ identifier: nullCoalesce.property
+ count: 1
+ path: includes/class-wc-frontend-scripts.php
+
-
message: '#^Cannot access offset ''country'' on mixed\.$#'
identifier: offsetAccess.nonOffsetAccessible
@@ -20454,72 +20178,6 @@ parameters:
count: 2
path: includes/class-wc-install.php
- -
- message: '#^Cannot call method change_feature_enable\(\) on mixed\.$#'
- identifier: method.nonObject
- count: 3
- path: includes/class-wc-install.php
-
- -
- message: '#^Cannot call method feature_is_enabled\(\) on mixed\.$#'
- identifier: method.nonObject
- count: 2
- path: includes/class-wc-install.php
-
- -
- message: '#^Cannot call method get_all_active_valid_plugins\(\) on mixed\.$#'
- identifier: method.nonObject
- count: 1
- path: includes/class-wc-install.php
-
- -
- message: '#^Cannot call method get_compatible_plugins_for_feature\(\) on mixed\.$#'
- identifier: method.nonObject
- count: 1
- path: includes/class-wc-install.php
-
- -
- message: '#^Cannot call method get_database_schema\(\) on mixed\.$#'
- identifier: method.nonObject
- count: 3
- path: includes/class-wc-install.php
-
- -
- message: '#^Cannot call method get_legacy_webhooks_count\(\) on mixed\.$#'
- identifier: method.nonObject
- count: 1
- path: includes/class-wc-install.php
-
- -
- message: '#^Cannot call method get_max_index_length\(\) on mixed\.$#'
- identifier: method.nonObject
- count: 1
- path: includes/class-wc-install.php
-
- -
- message: '#^Cannot call method get_missing_tables\(\) on mixed\.$#'
- identifier: method.nonObject
- count: 1
- path: includes/class-wc-install.php
-
- -
- message: '#^Cannot call method get_table_creation_sql\(\) on mixed\.$#'
- identifier: method.nonObject
- count: 1
- path: includes/class-wc-install.php
-
- -
- message: '#^Cannot call method init_feature\(\) on mixed\.$#'
- identifier: method.nonObject
- count: 1
- path: includes/class-wc-install.php
-
- -
- message: '#^Cannot call method install_plugin\(\) on mixed\.$#'
- identifier: method.nonObject
- count: 1
- path: includes/class-wc-install.php
-
-
message: '#^Cannot cast mixed to int\.$#'
identifier: cast.int
@@ -21025,15 +20683,15 @@ parameters:
path: includes/class-wc-order-factory.php
-
- message: '#^Cannot call method get\(\) on mixed\.$#'
+ message: '#^Cannot call method get_id\(\) on array\|object\.$#'
identifier: method.nonObject
- count: 2
+ count: 1
path: includes/class-wc-order-factory.php
-
- message: '#^Cannot call method set\(\) on mixed\.$#'
- identifier: method.nonObject
- count: 2
+ message: '#^Method WC_Order_Factory\:\:get_order\(\) should return bool\|WC_Order but returns array\|object\|false\.$#'
+ identifier: return.type
+ count: 1
path: includes/class-wc-order-factory.php
-
@@ -21066,6 +20724,12 @@ parameters:
count: 1
path: includes/class-wc-order-factory.php
+ -
+ message: '#^Parameter \#1 \$id of method Automattic\\WooCommerce\\Caching\\ObjectCache\:\:get\(\) expects int\|string, int\<min, \-1\>\|int\<1, max\>\|true given\.$#'
+ identifier: argument.type
+ count: 1
+ path: includes/class-wc-order-factory.php
+
-
message: '#^Parameter \#1 \$input of function array_flip expects array\<int\|string\>, array\<int\<min, \-1\>\|int\<1, max\>\|true\> given\.$#'
identifier: argument.type
@@ -21078,6 +20742,12 @@ parameters:
count: 1
path: includes/class-wc-order-factory.php
+ -
+ message: '#^Parameter \#2 \$id of method Automattic\\WooCommerce\\Caching\\ObjectCache\:\:set\(\) expects int\|string\|null, int\<min, \-1\>\|int\<1, max\>\|true given\.$#'
+ identifier: argument.type
+ count: 1
+ path: includes/class-wc-order-factory.php
+
-
message: '#^Method WC_Order_Item_Coupon\:\:get_code\(\) should return string but returns mixed\.$#'
identifier: return.type
@@ -21852,18 +21522,6 @@ parameters:
count: 1
path: includes/class-wc-order-item.php
- -
- message: '#^Cannot call method call_function\(\) on mixed\.$#'
- identifier: method.nonObject
- count: 1
- path: includes/class-wc-order-item.php
-
- -
- message: '#^Cannot call method feature_is_enabled\(\) on mixed\.$#'
- identifier: method.nonObject
- count: 1
- path: includes/class-wc-order-item.php
-
-
message: '#^Cannot cast mixed to float\.$#'
identifier: cast.double
@@ -22801,7 +22459,7 @@ parameters:
path: includes/class-wc-payment-gateways.php
-
- message: '#^Cannot call method call_function\(\) on mixed\.$#'
+ message: '#^Cannot call method info\(\) on mixed\.$#'
identifier: method.nonObject
count: 1
path: includes/class-wc-payment-gateways.php
@@ -23040,30 +22698,12 @@ parameters:
count: 1
path: includes/class-wc-post-data.php
- -
- message: '#^Cannot call method call_function\(\) on mixed\.$#'
- identifier: method.nonObject
- count: 2
- path: includes/class-wc-post-data.php
-
-
message: '#^Cannot call method get_type\(\) on bool\|WC_Order\|WC_Order_Refund\.$#'
identifier: method.nonObject
count: 1
path: includes/class-wc-post-data.php
- -
- message: '#^Cannot call method on_product_changed\(\) on mixed\.$#'
- identifier: method.nonObject
- count: 2
- path: includes/class-wc-post-data.php
-
- -
- message: '#^Cannot call method on_product_deleted\(\) on mixed\.$#'
- identifier: method.nonObject
- count: 4
- path: includes/class-wc-post-data.php
-
-
message: '#^Expected 4 @param tags, found 3\.$#'
identifier: paramTag.count
@@ -23154,6 +22794,12 @@ parameters:
count: 1
path: includes/class-wc-post-data.php
+ -
+ message: '#^Method WC_Post_Data\:\:get_post_type\(\) should return string but returns mixed\.$#'
+ identifier: return.type
+ count: 1
+ path: includes/class-wc-post-data.php
+
-
message: '#^Method WC_Post_Data\:\:handle_attribute_term_deleted\(\) has no return type specified\.$#'
identifier: missingType.return
@@ -23304,6 +22950,18 @@ parameters:
count: 1
path: includes/class-wc-post-data.php
+ -
+ message: '#^Parameter \#1 \$product of method Automattic\\WooCommerce\\Internal\\ProductAttributesLookup\\LookupDataStore\:\:on_product_changed\(\) expects int\|WC_Product, mixed given\.$#'
+ identifier: argument.type
+ count: 2
+ path: includes/class-wc-post-data.php
+
+ -
+ message: '#^Parameter \#1 \$product of method Automattic\\WooCommerce\\Internal\\ProductAttributesLookup\\LookupDataStore\:\:on_product_deleted\(\) expects int\|WC_Product, mixed given\.$#'
+ identifier: argument.type
+ count: 4
+ path: includes/class-wc-post-data.php
+
-
message: '#^Parameter \#1 \$product_id of function wc_product_force_unique_sku expects int, mixed given\.$#'
identifier: argument.type
@@ -23670,24 +23328,6 @@ parameters:
count: 1
path: includes/class-wc-product-attribute.php
- -
- message: '#^Cannot call method add_approved_directory\(\) on mixed\.$#'
- identifier: method.nonObject
- count: 1
- path: includes/class-wc-product-download.php
-
- -
- message: '#^Cannot call method get_mode\(\) on mixed\.$#'
- identifier: method.nonObject
- count: 1
- path: includes/class-wc-product-download.php
-
- -
- message: '#^Cannot call method is_valid_path\(\) on mixed\.$#'
- identifier: method.nonObject
- count: 2
- path: includes/class-wc-product-download.php
-
-
message: '#^Class WC_Product_Download implements generic interface ArrayAccess but does not specify its types\: TKey, TValue$#'
identifier: missingType.generics
@@ -23766,6 +23406,12 @@ parameters:
count: 1
path: includes/class-wc-product-download.php
+ -
+ message: '#^Parameter \#1 \$url of method Automattic\\WooCommerce\\Internal\\ProductDownloads\\ApprovedDirectories\\Register\:\:add_approved_directory\(\) expects string, string\|false given\.$#'
+ identifier: argument.type
+ count: 1
+ path: includes/class-wc-product-download.php
+
-
message: '#^Method WC_Product_External\:\:get_button_text\(\) should return string but returns mixed\.$#'
identifier: return.type
@@ -24468,12 +24114,6 @@ parameters:
count: 1
path: includes/class-wc-query.php
- -
- message: '#^Property WC_Query\:\:\$filterer \(Automattic\\WooCommerce\\Internal\\ProductAttributesLookup\\Filterer\) does not accept mixed\.$#'
- identifier: assign.propertyType
- count: 1
- path: includes/class-wc-query.php
-
-
message: '#^Static property WC_Query\:\:\$chosen_attributes \(array\) does not accept null\.$#'
identifier: assign.propertyType
@@ -25032,12 +24672,6 @@ parameters:
count: 1
path: includes/class-wc-session-handler.php
- -
- message: '#^Cannot call method feature_is_enabled\(\) on mixed\.$#'
- identifier: method.nonObject
- count: 1
- path: includes/class-wc-session-handler.php
-
-
message: '#^Cannot call method get_var\(\) on mixed\.$#'
identifier: method.nonObject
@@ -26545,74 +26179,74 @@ parameters:
path: includes/class-wc-tracker.php
-
- message: '#^Call to function is_callable\(\) with ''WC_Helper_Options\:…'' will always evaluate to true\.$#'
- identifier: function.alreadyNarrowedType
+ message: '#^Argument of an invalid type mixed supplied for foreach, only iterables are supported\.$#'
+ identifier: foreach.nonIterable
count: 1
path: includes/class-wc-tracker.php
-
- message: '#^Call to function is_callable\(\) with array\{Automattic\\Jetpack\\Status, ''in_safe_mode''\} will always evaluate to true\.$#'
+ message: '#^Call to function is_callable\(\) with ''WC_Helper_Options\:…'' will always evaluate to true\.$#'
identifier: function.alreadyNarrowedType
count: 1
path: includes/class-wc-tracker.php
-
- message: '#^Cannot access offset 1 on list\<string\>\|false\.$#'
- identifier: offsetAccess.nonOffsetAccessible
+ message: '#^Call to function is_callable\(\) with array\{Automattic\\Jetpack\\Status, ''in_safe_mode''\} will always evaluate to true\.$#'
+ identifier: function.alreadyNarrowedType
count: 1
path: includes/class-wc-tracker.php
-
- message: '#^Cannot access offset int\<0, max\> on list\<string\>\|false\.$#'
+ message: '#^Cannot access offset ''Author'' on mixed\.$#'
identifier: offsetAccess.nonOffsetAccessible
- count: 4
+ count: 1
path: includes/class-wc-tracker.php
-
- message: '#^Cannot access offset mixed on mixed\.$#'
+ message: '#^Cannot access offset ''Name'' on mixed\.$#'
identifier: offsetAccess.nonOffsetAccessible
count: 1
path: includes/class-wc-tracker.php
-
- message: '#^Cannot access offset non\-falsy\-string on mixed\.$#'
+ message: '#^Cannot access offset ''Network'' on mixed\.$#'
identifier: offsetAccess.nonOffsetAccessible
count: 1
path: includes/class-wc-tracker.php
-
- message: '#^Cannot call method call_function\(\) on mixed\.$#'
- identifier: method.nonObject
+ message: '#^Cannot access offset ''PluginURI'' on mixed\.$#'
+ identifier: offsetAccess.nonOffsetAccessible
count: 1
path: includes/class-wc-tracker.php
-
- message: '#^Cannot call method get_data\(\) on mixed\.$#'
- identifier: method.nonObject
+ message: '#^Cannot access offset ''Version'' on mixed\.$#'
+ identifier: offsetAccess.nonOffsetAccessible
count: 1
path: includes/class-wc-tracker.php
-
- message: '#^Cannot call method get_preferred_provider\(\) on mixed\.$#'
- identifier: method.nonObject
+ message: '#^Cannot access offset 1 on list\<string\>\|false\.$#'
+ identifier: offsetAccess.nonOffsetAccessible
count: 1
path: includes/class-wc-tracker.php
-
- message: '#^Cannot call method get_providers\(\) on mixed\.$#'
- identifier: method.nonObject
- count: 1
+ message: '#^Cannot access offset int\<0, max\> on list\<string\>\|false\.$#'
+ identifier: offsetAccess.nonOffsetAccessible
+ count: 4
path: includes/class-wc-tracker.php
-
- message: '#^Cannot call method init\(\) on mixed\.$#'
- identifier: method.nonObject
- count: 1
+ message: '#^Cannot access offset mixed on mixed\.$#'
+ identifier: offsetAccess.nonOffsetAccessible
+ count: 3
path: includes/class-wc-tracker.php
-
- message: '#^Cannot call method is_woocommerce_aware_plugin\(\) on mixed\.$#'
- identifier: method.nonObject
+ message: '#^Cannot access offset non\-falsy\-string on mixed\.$#'
+ identifier: offsetAccess.nonOffsetAccessible
count: 1
path: includes/class-wc-tracker.php
@@ -26700,6 +26334,18 @@ parameters:
count: 1
path: includes/class-wc-tracker.php
+ -
+ message: '#^Parameter \#1 \$plugin_file_or_data of method Automattic\\WooCommerce\\Utilities\\PluginUtil\:\:is_woocommerce_aware_plugin\(\) expects array\|string, mixed given\.$#'
+ identifier: argument.type
+ count: 1
+ path: includes/class-wc-tracker.php
+
+ -
+ message: '#^Parameter \#1 \$plugin_name of static method Automattic\\WooCommerce\\Utilities\\FeaturesUtil\:\:get_compatible_features_for_plugin\(\) expects string, mixed given\.$#'
+ identifier: argument.type
+ count: 1
+ path: includes/class-wc-tracker.php
+
-
message: '#^Parameter \#1 \$size of function wc_let_to_num expects string, string\|false given\.$#'
identifier: argument.type
@@ -26712,6 +26358,12 @@ parameters:
count: 1
path: includes/class-wc-tracker.php
+ -
+ message: '#^Parameter \#1 \$text of function wp_strip_all_tags expects string, mixed given\.$#'
+ identifier: argument.type
+ count: 5
+ path: includes/class-wc-tracker.php
+
-
message: '#^Parameter \#2 \$args of function wp_safe_remote_post expects array\{method\?\: string, timeout\?\: float, redirection\?\: int, httpversion\?\: string, user\-agent\?\: string, reject_unsafe_urls\?\: bool, blocking\?\: bool, headers\?\: array\|string, \.\.\.\}, array\{method\: ''POST'', timeout\: 45, redirection\: 5, httpversion\: ''1\.0'', blocking\: false, headers\: array\{user\-agent\: non\-falsy\-string\}, body\: non\-empty\-string\|false, cookies\: array\{\}\} given\.$#'
identifier: argument.type
@@ -26796,12 +26448,6 @@ parameters:
count: 1
path: includes/class-wc-webhook.php
- -
- message: '#^Cannot call method get_endpoint_data\(\) on mixed\.$#'
- identifier: method.nonObject
- count: 1
- path: includes/class-wc-webhook.php
-
-
message: '#^Cannot call method get_status\(\) on bool\|WC_Order\|WC_Order_Refund\.$#'
identifier: method.nonObject
@@ -26856,6 +26502,12 @@ parameters:
count: 1
path: includes/class-wc-webhook.php
+ -
+ message: '#^Method WC_Webhook\:\:get_wp_api_payload\(\) should return array but returns array\|WP_Error\.$#'
+ identifier: return.type
+ count: 1
+ path: includes/class-wc-webhook.php
+
-
message: '#^Method WC_Webhook\:\:log_delivery\(\) has no return type specified\.$#'
identifier: missingType.return
@@ -27030,42 +26682,6 @@ parameters:
count: 1
path: includes/class-woocommerce.php
- -
- message: '#^Cannot call method call_function\(\) on mixed\.$#'
- identifier: method.nonObject
- count: 1
- path: includes/class-woocommerce.php
-
- -
- message: '#^Cannot call method call_static\(\) on mixed\.$#'
- identifier: method.nonObject
- count: 1
- path: includes/class-woocommerce.php
-
- -
- message: '#^Cannot call method get_global\(\) on mixed\.$#'
- identifier: method.nonObject
- count: 1
- path: includes/class-woocommerce.php
-
- -
- message: '#^Cannot call method get_instance_of\(\) on mixed\.$#'
- identifier: method.nonObject
- count: 1
- path: includes/class-woocommerce.php
-
- -
- message: '#^Cannot call method register\(\) on mixed\.$#'
- identifier: method.nonObject
- count: 20
- path: includes/class-woocommerce.php
-
- -
- message: '#^Cannot call method register_additional_features\(\) on mixed\.$#'
- identifier: method.nonObject
- count: 1
- path: includes/class-woocommerce.php
-
-
message: '#^Constant WC_ABSPATH not found\.$#'
identifier: constant.notFound
@@ -27240,12 +26856,6 @@ parameters:
count: 1
path: includes/class-woocommerce.php
- -
- message: '#^Method WooCommerce\:\:register_remote_log_handler\(\) should return array\<WC_Log_Handler\> but returns array\<mixed\>\.$#'
- identifier: return.type
- count: 1
- path: includes/class-woocommerce.php
-
-
message: '#^Method WooCommerce\:\:register_wp_admin_settings\(\) has no return type specified\.$#'
identifier: missingType.return
@@ -27270,6 +26880,12 @@ parameters:
count: 1
path: includes/class-woocommerce.php
+ -
+ message: '#^Parameter \#1 \$class_name of method Automattic\\WooCommerce\\Proxies\\LegacyProxy\:\:get_instance_of\(\) expects class\-string\<object\>, string given\.$#'
+ identifier: argument.type
+ count: 1
+ path: includes/class-woocommerce.php
+
-
message: '#^Parameter \#1 \$haystack of function strpos expects string, mixed given\.$#'
identifier: argument.type
@@ -27312,10 +26928,16 @@ parameters:
count: 3
path: includes/class-woocommerce.php
+ -
+ message: '#^Property WooCommerce\:\:\$api \(WC_API\) does not accept Automattic\\WooCommerce\\Internal\\Utilities\\LegacyRestApiStub\.$#'
+ identifier: assign.propertyType
+ count: 1
+ path: includes/class-woocommerce.php
+
-
message: '#^Property WooCommerce\:\:\$api \(WC_API\) does not accept mixed\.$#'
identifier: assign.propertyType
- count: 2
+ count: 1
path: includes/class-woocommerce.php
-
@@ -27330,6 +26952,12 @@ parameters:
count: 1
path: includes/class-woocommerce.php
+ -
+ message: '#^Unable to resolve the template type T in call to method Automattic\\WooCommerce\\Proxies\\LegacyProxy\:\:get_instance_of\(\)$#'
+ identifier: argument.templateType
+ count: 1
+ path: includes/class-woocommerce.php
+
-
message: '#^Undefined variable\: \$site_url$#'
identifier: variable.undefined
@@ -28146,12 +27774,6 @@ parameters:
count: 5
path: includes/data-stores/abstract-wc-order-data-store-cpt.php
- -
- message: '#^Cannot call method remove\(\) on mixed\.$#'
- identifier: method.nonObject
- count: 1
- path: includes/data-stores/abstract-wc-order-data-store-cpt.php
-
-
message: '#^Cannot call method update\(\) on mixed\.$#'
identifier: method.nonObject
@@ -28344,18 +27966,6 @@ parameters:
count: 1
path: includes/data-stores/abstract-wc-order-item-type-data-store.php
- -
- message: '#^Cannot call method call_function\(\) on mixed\.$#'
- identifier: method.nonObject
- count: 1
- path: includes/data-stores/abstract-wc-order-item-type-data-store.php
-
- -
- message: '#^Cannot call method feature_is_enabled\(\) on mixed\.$#'
- identifier: method.nonObject
- count: 1
- path: includes/data-stores/abstract-wc-order-item-type-data-store.php
-
-
message: '#^Method Abstract_WC_Order_Item_Type_Data_Store\:\:clear_cache\(\) has no return type specified\.$#'
identifier: missingType.return
@@ -28578,12 +28188,6 @@ parameters:
count: 7
path: includes/data-stores/class-wc-customer-data-store.php
- -
- message: '#^Cannot call method custom_orders_table_usage_is_enabled\(\) on mixed\.$#'
- identifier: method.nonObject
- count: 1
- path: includes/data-stores/class-wc-customer-data-store.php
-
-
message: '#^Method WC_Customer_Data_Store\:\:create\(\) has no return type specified\.$#'
identifier: missingType.return
@@ -29214,18 +28818,6 @@ parameters:
count: 2
path: includes/data-stores/class-wc-order-data-store-cpt.php
- -
- message: '#^Cannot call method call_function\(\) on mixed\.$#'
- identifier: method.nonObject
- count: 1
- path: includes/data-stores/class-wc-order-data-store-cpt.php
-
- -
- message: '#^Cannot call method feature_is_enabled\(\) on mixed\.$#'
- identifier: method.nonObject
- count: 1
- path: includes/data-stores/class-wc-order-data-store-cpt.php
-
-
message: '#^Class WC_Order referenced with incorrect case\: WC_order\.$#'
identifier: class.nameCase
@@ -29826,12 +29418,6 @@ parameters:
count: 2
path: includes/data-stores/class-wc-product-data-store-cpt.php
- -
- message: '#^Cannot call method feature_is_enabled\(\) on mixed\.$#'
- identifier: method.nonObject
- count: 2
- path: includes/data-stores/class-wc-product-data-store-cpt.php
-
-
message: '#^Cannot call method getOffsetTimestamp\(\) on WC_DateTime\|null\.$#'
identifier: method.nonObject
@@ -29850,18 +29436,6 @@ parameters:
count: 1
path: includes/data-stores/class-wc-product-data-store-cpt.php
- -
- message: '#^Cannot call method maybe_schedule_adjust_download_permissions\(\) on mixed\.$#'
- identifier: method.nonObject
- count: 1
- path: includes/data-stores/class-wc-product-data-store-cpt.php
-
- -
- message: '#^Cannot call method product_meta_lookup_table_cogs_value_columns_exist\(\) on mixed\.$#'
- identifier: method.nonObject
- count: 1
- path: includes/data-stores/class-wc-product-data-store-cpt.php
-
-
message: '#^Cannot call method update\(\) on mixed\.$#'
identifier: method.nonObject
@@ -31608,12 +31182,6 @@ parameters:
count: 2
path: includes/emails/class-wc-email.php
- -
- message: '#^Cannot call method maybe_render_block_email\(\) on mixed\.$#'
- identifier: method.nonObject
- count: 1
- path: includes/emails/class-wc-email.php
-
-
message: '#^Constant WC_VERSION not found\.$#'
identifier: constant.notFound
@@ -31800,12 +31368,6 @@ parameters:
count: 1
path: includes/emails/class-wc-email.php
- -
- message: '#^Property WC_Email\:\:\$personalizer \(Automattic\\WooCommerce\\Internal\\EmailEditor\\TransactionalEmailPersonalizer\) does not accept mixed\.$#'
- identifier: assign.propertyType
- count: 1
- path: includes/emails/class-wc-email.php
-
-
message: '#^Variable \$template in empty\(\) always exists and is not falsy\.$#'
identifier: empty.variable
@@ -31968,12 +31530,6 @@ parameters:
count: 1
path: includes/export/class-wc-product-csv-exporter.php
- -
- message: '#^Cannot call method feature_is_enabled\(\) on mixed\.$#'
- identifier: method.nonObject
- count: 1
- path: includes/export/class-wc-product-csv-exporter.php
-
-
message: '#^Cannot call method get_id\(\) on int\.$#'
identifier: method.nonObject
@@ -33192,12 +32748,6 @@ parameters:
count: 1
path: includes/gateways/paypal/includes/class-wc-gateway-paypal-request.php
- -
- message: '#^Cannot call static method instance\(\) on mixed\.$#'
- identifier: staticMethod.nonObject
- count: 1
- path: includes/gateways/paypal/includes/class-wc-gateway-paypal-request.php
-
-
message: '#^Constant WC_VERSION not found\.$#'
identifier: constant.notFound
@@ -33624,12 +33174,6 @@ parameters:
count: 3
path: includes/import/class-wc-product-csv-importer.php
- -
- message: '#^Cannot call method feature_is_enabled\(\) on mixed\.$#'
- identifier: method.nonObject
- count: 1
- path: includes/import/class-wc-product-csv-importer.php
-
-
message: '#^Constant WC_ABSPATH not found\.$#'
identifier: constant.notFound
@@ -42552,12 +42096,6 @@ parameters:
count: 2
path: includes/rest-api/Controllers/Version2/class-wc-rest-system-status-tools-v2-controller.php
- -
- message: '#^Cannot call method recreate_order_address_fts_index\(\) on mixed\.$#'
- identifier: method.nonObject
- count: 1
- path: includes/rest-api/Controllers/Version2/class-wc-rest-system-status-tools-v2-controller.php
-
-
message: '#^Method WC_REST_System_Status_Tools_V2_Controller\:\:get_item\(\) has parameter \$request with generic class WP_REST_Request but does not specify its types\: T$#'
identifier: missingType.generics
@@ -42660,30 +42198,6 @@ parameters:
count: 1
path: includes/rest-api/Controllers/Version2/class-wc-rest-system-status-v2-controller.php
- -
- message: '#^Cannot call method data_sync_is_enabled\(\) on mixed\.$#'
- identifier: method.nonObject
- count: 1
- path: includes/rest-api/Controllers/Version2/class-wc-rest-system-status-v2-controller.php
-
- -
- message: '#^Cannot call method get_all_active_valid_plugins\(\) on mixed\.$#'
- identifier: method.nonObject
- count: 1
- path: includes/rest-api/Controllers/Version2/class-wc-rest-system-status-v2-controller.php
-
- -
- message: '#^Cannot call method get_features\(\) on mixed\.$#'
- identifier: method.nonObject
- count: 1
- path: includes/rest-api/Controllers/Version2/class-wc-rest-system-status-v2-controller.php
-
- -
- message: '#^Cannot call method get_mode\(\) on mixed\.$#'
- identifier: method.nonObject
- count: 1
- path: includes/rest-api/Controllers/Version2/class-wc-rest-system-status-v2-controller.php
-
-
message: '#^Comparison operation "\<\=" between 0 and int\<0, max\> is always true\.$#'
identifier: smallerOrEqual.alwaysTrue
@@ -43416,12 +42930,6 @@ parameters:
count: 1
path: includes/rest-api/Controllers/Version3/class-wc-rest-data-currencies-controller.php
- -
- message: '#^Cannot call method instantiate_layout_templates\(\) on mixed\.$#'
- identifier: method.nonObject
- count: 1
- path: includes/rest-api/Controllers/Version3/class-wc-rest-layout-templates-controller.php
-
-
message: '#^Method WC_REST_Layout_Templates_Controller\:\:get_item\(\) has parameter \$request with generic class WP_REST_Request but does not specify its types\: T$#'
identifier: missingType.generics
@@ -43542,18 +43050,6 @@ parameters:
count: 1
path: includes/rest-api/Controllers/Version3/class-wc-rest-order-refunds-controller.php
- -
- message: '#^Cannot call method call_function\(\) on mixed\.$#'
- identifier: method.nonObject
- count: 1
- path: includes/rest-api/Controllers/Version3/class-wc-rest-order-refunds-controller.php
-
- -
- message: '#^Cannot call method feature_is_enabled\(\) on mixed\.$#'
- identifier: method.nonObject
- count: 1
- path: includes/rest-api/Controllers/Version3/class-wc-rest-order-refunds-controller.php
-
-
message: '#^Cannot call method get_id\(\) on WC_Order\|WC_Order_Refund\|true\.$#'
identifier: method.nonObject
@@ -43662,18 +43158,6 @@ parameters:
count: 1
path: includes/rest-api/Controllers/Version3/class-wc-rest-orders-controller.php
- -
- message: '#^Cannot call method call_function\(\) on mixed\.$#'
- identifier: method.nonObject
- count: 1
- path: includes/rest-api/Controllers/Version3/class-wc-rest-orders-controller.php
-
- -
- message: '#^Cannot call method feature_is_enabled\(\) on mixed\.$#'
- identifier: method.nonObject
- count: 1
- path: includes/rest-api/Controllers/Version3/class-wc-rest-orders-controller.php
-
-
message: '#^Constant WC_ABSPATH not found\.$#'
identifier: constant.notFound
@@ -44913,24 +44397,12 @@ parameters:
count: 1
path: includes/rest-api/Controllers/Version3/class-wc-rest-product-variations-controller.php
- -
- message: '#^Cannot call method call_function\(\) on mixed\.$#'
- identifier: method.nonObject
- count: 1
- path: includes/rest-api/Controllers/Version3/class-wc-rest-product-variations-controller.php
-
-
message: '#^Cannot call method delete\(\) on WC_Product\|false\|null\.$#'
identifier: method.nonObject
count: 1
path: includes/rest-api/Controllers/Version3/class-wc-rest-product-variations-controller.php
- -
- message: '#^Cannot call method feature_is_enabled\(\) on mixed\.$#'
- identifier: method.nonObject
- count: 1
- path: includes/rest-api/Controllers/Version3/class-wc-rest-product-variations-controller.php
-
-
message: '#^Cannot call method get_attributes\(\) on WC_Product\|false\|null\.$#'
identifier: method.nonObject
@@ -45423,18 +44895,6 @@ parameters:
count: 1
path: includes/rest-api/Controllers/Version3/class-wc-rest-products-controller.php
- -
- message: '#^Cannot call method call_function\(\) on mixed\.$#'
- identifier: method.nonObject
- count: 1
- path: includes/rest-api/Controllers/Version3/class-wc-rest-products-controller.php
-
- -
- message: '#^Cannot call method feature_is_enabled\(\) on mixed\.$#'
- identifier: method.nonObject
- count: 1
- path: includes/rest-api/Controllers/Version3/class-wc-rest-products-controller.php
-
-
message: '#^Cannot call method get_type\(\) on object\|false\|null\.$#'
identifier: method.nonObject
@@ -46245,12 +45705,6 @@ parameters:
count: 4
path: includes/rest-api/Controllers/Version3/class-wc-rest-terms-controller.php
- -
- message: '#^Cannot call method schedule_action\(\) on mixed\.$#'
- identifier: method.nonObject
- count: 1
- path: includes/rest-api/Controllers/Version3/class-wc-rest-terms-controller.php
-
-
message: '#^Method WC_REST_Terms_Controller\:\:batch_items_permissions_check\(\) has parameter \$request with generic class WP_REST_Request but does not specify its types\: T$#'
identifier: missingType.generics
@@ -46594,8 +46048,8 @@ parameters:
path: includes/rest-api/Package.php
-
- message: '#^Cannot call method get_instance_of\(\) on mixed\.$#'
- identifier: method.nonObject
+ message: '#^Call to an undefined method object\:\:register_routes\(\)\.$#'
+ identifier: method.notFound
count: 1
path: includes/rest-api/Server.php
@@ -46611,6 +46065,18 @@ parameters:
count: 1
path: includes/rest-api/Server.php
+ -
+ message: '#^Unable to resolve the template type T in call to method Automattic\\WooCommerce\\Container\:\:get\(\)$#'
+ identifier: argument.templateType
+ count: 1
+ path: includes/rest-api/Server.php
+
+ -
+ message: '#^Unable to resolve the template type T in call to method Automattic\\WooCommerce\\Proxies\\LegacyProxy\:\:get_instance_of\(\)$#'
+ identifier: argument.templateType
+ count: 1
+ path: includes/rest-api/Server.php
+
-
message: '#^Unsafe usage of new static\(\)\.$#'
identifier: new.static
@@ -50139,12 +49605,6 @@ parameters:
count: 1
path: includes/wc-deprecated-functions.php
- -
- message: '#^Cannot call method get_default_handler\(\) on mixed\.$#'
- identifier: method.nonObject
- count: 1
- path: includes/wc-deprecated-functions.php
-
-
message: '#^Default value of the parameter \#3 \$sale_price \(string\) of function _wc_save_product_price\(\) is incompatible with type float\.$#'
identifier: parameter.defaultValue
@@ -52305,12 +51765,6 @@ parameters:
count: 1
path: includes/wc-order-functions.php
- -
- message: '#^Cannot call method feature_is_enabled\(\) on mixed\.$#'
- identifier: method.nonObject
- count: 1
- path: includes/wc-order-functions.php
-
-
message: '#^Cannot call method get_billing_email\(\) on WC_Order\|WC_Order_Refund\|true\.$#'
identifier: method.nonObject
@@ -52725,12 +52179,6 @@ parameters:
count: 1
path: includes/wc-order-step-logger-functions.php
- -
- message: '#^Cannot call method enqueue_processor\(\) on mixed\.$#'
- identifier: method.nonObject
- count: 1
- path: includes/wc-order-step-logger-functions.php
-
-
message: '#^Function extract_order_safe_data\(\) has no return type specified\.$#'
identifier: missingType.return
@@ -52953,36 +52401,18 @@ parameters:
count: 2
path: includes/wc-product-functions.php
- -
- message: '#^Cannot call method delete_product_specific_transients\(\) on mixed\.$#'
- identifier: method.nonObject
- count: 3
- path: includes/wc-product-functions.php
-
-
message: '#^Cannot call method get_customer_id\(\) on mixed\.$#'
identifier: method.nonObject
count: 1
path: includes/wc-product-functions.php
- -
- message: '#^Cannot call method get_instance_of\(\) on mixed\.$#'
- identifier: method.nonObject
- count: 1
- path: includes/wc-product-functions.php
-
-
message: '#^Cannot call method get_permalink\(\) on WC_Product\|false\|null\.$#'
identifier: method.nonObject
count: 1
path: includes/wc-product-functions.php
- -
- message: '#^Cannot call method is_enabled\(\) on mixed\.$#'
- identifier: method.nonObject
- count: 1
- path: includes/wc-product-functions.php
-
-
message: '#^Cannot call method save\(\) on WC_Product\|false\|null\.$#'
identifier: method.nonObject
@@ -53853,18 +53283,6 @@ parameters:
count: 1
path: includes/wc-template-functions.php
- -
- message: '#^Cannot call method read_fulfillments\(\) on mixed\.$#'
- identifier: method.nonObject
- count: 1
- path: includes/wc-template-functions.php
-
- -
- message: '#^Cannot call method styled_post_content\(\) on mixed\.$#'
- identifier: method.nonObject
- count: 1
- path: includes/wc-template-functions.php
-
-
message: '#^Cannot use \+\+ on mixed\.$#'
identifier: preInc.type
@@ -54783,6 +54201,12 @@ parameters:
count: 1
path: includes/wc-template-functions.php
+ -
+ message: '#^Parameter \#2 \$entity_id of method Automattic\\WooCommerce\\Internal\\DataStores\\Fulfillments\\FulfillmentsDataStore\:\:read_fulfillments\(\) expects string, mixed given\.$#'
+ identifier: argument.type
+ count: 1
+ path: includes/wc-template-functions.php
+
-
message: '#^Parameter \#2 \$fallback of function sanitize_html_class expects string, int given\.$#'
identifier: argument.type
@@ -55341,90 +54765,12 @@ parameters:
count: 1
path: includes/wc-update-functions.php
- -
- message: '#^Cannot call method check_lookup_table_exists\(\) on mixed\.$#'
- identifier: method.nonObject
- count: 1
- path: includes/wc-update-functions.php
-
- -
- message: '#^Cannot call method create_table_primary_index\(\) on mixed\.$#'
- identifier: method.nonObject
- count: 1
- path: includes/wc-update-functions.php
-
- -
- message: '#^Cannot call method feature_is_enabled\(\) on mixed\.$#'
- identifier: method.nonObject
- count: 1
- path: includes/wc-update-functions.php
-
-
message: '#^Cannot call method get_items\(\) on WC_Order\|WC_Order_Refund\|true\.$#'
identifier: method.nonObject
count: 1
path: includes/wc-update-functions.php
- -
- message: '#^Cannot call method get_table\(\) on mixed\.$#'
- identifier: method.nonObject
- count: 1
- path: includes/wc-update-functions.php
-
- -
- message: '#^Cannot call method get_table_exists\(\) on mixed\.$#'
- identifier: method.nonObject
- count: 1
- path: includes/wc-update-functions.php
-
- -
- message: '#^Cannot call method in_progress\(\) on mixed\.$#'
- identifier: method.nonObject
- count: 1
- path: includes/wc-update-functions.php
-
- -
- message: '#^Cannot call method init_feature\(\) on mixed\.$#'
- identifier: method.nonObject
- count: 2
- path: includes/wc-update-functions.php
-
- -
- message: '#^Cannot call method init_hooks\(\) on mixed\.$#'
- identifier: method.nonObject
- count: 2
- path: includes/wc-update-functions.php
-
- -
- message: '#^Cannot call method initiate_regeneration\(\) on mixed\.$#'
- identifier: method.nonObject
- count: 1
- path: includes/wc-update-functions.php
-
- -
- message: '#^Cannot call method lookup_table_has_data\(\) on mixed\.$#'
- identifier: method.nonObject
- count: 1
- path: includes/wc-update-functions.php
-
- -
- message: '#^Cannot call method maybe_assign_default_product_cat\(\) on mixed\.$#'
- identifier: method.nonObject
- count: 1
- path: includes/wc-update-functions.php
-
- -
- message: '#^Cannot call method recreate_order_address_fts_index\(\) on mixed\.$#'
- identifier: method.nonObject
- count: 1
- path: includes/wc-update-functions.php
-
- -
- message: '#^Cannot call method regeneration_is_in_progress\(\) on mixed\.$#'
- identifier: method.nonObject
- count: 1
- path: includes/wc-update-functions.php
-
-
message: '#^Cannot call method remove_cap\(\) on WP_Role\|null\.$#'
identifier: method.nonObject
@@ -56199,12 +55545,6 @@ parameters:
count: 1
path: includes/wc-user-functions.php
- -
- message: '#^Cannot call static method get_orders_table_name\(\) on mixed\.$#'
- identifier: staticMethod.nonObject
- count: 1
- path: includes/wc-user-functions.php
-
-
message: '#^Function wc_current_user_is_active\(\) has no return type specified\.$#'
identifier: missingType.return
@@ -57219,12 +56559,6 @@ parameters:
count: 1
path: includes/widgets/class-wc-widget-layered-nav.php
- -
- message: '#^Cannot call method get_filtered_term_product_counts\(\) on mixed\.$#'
- identifier: method.nonObject
- count: 1
- path: includes/widgets/class-wc-widget-layered-nav.php
-
-
message: '#^Constant WC_VERSION not found\.$#'
identifier: constant.notFound
@@ -57813,12 +57147,6 @@ parameters:
count: 1
path: src/Admin/API/Init.php
- -
- message: '#^Cannot call method lazy_load_namespace\(\) on mixed\.$#'
- identifier: method.nonObject
- count: 1
- path: src/Admin/API/Init.php
-
-
message: '#^Constant WC_ABSPATH not found\.$#'
identifier: constant.notFound
@@ -68499,18 +67827,6 @@ parameters:
count: 1
path: src/Admin/Features/ProductBlockEditor/Init.php
- -
- message: '#^Cannot call method is_registered\(\) on mixed\.$#'
- identifier: method.nonObject
- count: 2
- path: src/Admin/Features/ProductBlockEditor/Init.php
-
- -
- message: '#^Cannot call method register\(\) on mixed\.$#'
- identifier: method.nonObject
- count: 2
- path: src/Admin/Features/ProductBlockEditor/Init.php
-
-
message: '#^Method Automattic\\WooCommerce\\Admin\\Features\\ProductBlockEditor\\Init\:\:dequeue_conflicting_styles\(\) has no return type specified\.$#'
identifier: missingType.return
@@ -69981,12 +69297,6 @@ parameters:
count: 1
path: src/Admin/PluginsHelper.php
- -
- message: '#^Cannot call method get_all_active_valid_plugins\(\) on mixed\.$#'
- identifier: method.nonObject
- count: 1
- path: src/Admin/PluginsHelper.php
-
-
message: '#^Instantiated class ActionScheduler_DBStore not found\.$#'
identifier: class.notFound
@@ -71847,12 +71157,6 @@ parameters:
count: 1
path: src/Blocks/Assets/AssetDataRegistry.php
- -
- message: '#^Cannot call method is_remote_logging_allowed\(\) on mixed\.$#'
- identifier: method.nonObject
- count: 1
- path: src/Blocks/Assets/AssetDataRegistry.php
-
-
message: '#^Class Automattic\\WooCommerce\\Blocks\\Assets\\Api referenced with incorrect case\: Automattic\\WooCommerce\\Blocks\\Assets\\API\.$#'
identifier: class.nameCase
@@ -73245,12 +72549,6 @@ parameters:
count: 1
path: src/Blocks/BlockTypes/Checkout.php
- -
- message: '#^Cannot call method get_providers\(\) on mixed\.$#'
- identifier: method.nonObject
- count: 1
- path: src/Blocks/BlockTypes/Checkout.php
-
-
message: '#^Cannot call method next_delimiter\(\) on Automattic\\Block_Scanner\|null\.$#'
identifier: method.nonObject
@@ -75549,12 +74847,6 @@ parameters:
count: 5
path: src/Blocks/BlockTypes/ProductFilterAttribute.php
- -
- message: '#^Cannot call method with\(\) on mixed\.$#'
- identifier: method.nonObject
- count: 1
- path: src/Blocks/BlockTypes/ProductFilterAttribute.php
-
-
message: '#^Method Automattic\\WooCommerce\\Blocks\\BlockTypes\\ProductFilterAttribute\:\:delete_default_attribute_id_transient\(\) has no return type specified\.$#'
identifier: missingType.return
@@ -75711,12 +75003,6 @@ parameters:
count: 2
path: src/Blocks/BlockTypes/ProductFilterPrice.php
- -
- message: '#^Cannot call method with\(\) on mixed\.$#'
- identifier: method.nonObject
- count: 1
- path: src/Blocks/BlockTypes/ProductFilterPrice.php
-
-
message: '#^Method Automattic\\WooCommerce\\Blocks\\BlockTypes\\ProductFilterPrice\:\:get_filtered_price\(\) has no return type specified\.$#'
identifier: missingType.return
@@ -75801,12 +75087,6 @@ parameters:
count: 1
path: src/Blocks/BlockTypes/ProductFilterRating.php
- -
- message: '#^Cannot call method with\(\) on mixed\.$#'
- identifier: method.nonObject
- count: 1
- path: src/Blocks/BlockTypes/ProductFilterRating.php
-
-
message: '#^Method Automattic\\WooCommerce\\Blocks\\BlockTypes\\ProductFilterRating\:\:get_rating_counts\(\) has no return type specified\.$#'
identifier: missingType.return
@@ -75903,12 +75183,6 @@ parameters:
count: 1
path: src/Blocks/BlockTypes/ProductFilterStatus.php
- -
- message: '#^Cannot call method with\(\) on mixed\.$#'
- identifier: method.nonObject
- count: 1
- path: src/Blocks/BlockTypes/ProductFilterStatus.php
-
-
message: '#^Method Automattic\\WooCommerce\\Blocks\\BlockTypes\\ProductFilterStatus\:\:enqueue_data\(\) has no return type specified\.$#'
identifier: missingType.return
@@ -75963,24 +75237,6 @@ parameters:
count: 1
path: src/Blocks/BlockTypes/ProductFilterTaxonomy.php
- -
- message: '#^Cannot call method get_hierarchy_map\(\) on mixed\.$#'
- identifier: method.nonObject
- count: 1
- path: src/Blocks/BlockTypes/ProductFilterTaxonomy.php
-
- -
- message: '#^Cannot call method get_param\(\) on mixed\.$#'
- identifier: method.nonObject
- count: 4
- path: src/Blocks/BlockTypes/ProductFilterTaxonomy.php
-
- -
- message: '#^Cannot call method with\(\) on mixed\.$#'
- identifier: method.nonObject
- count: 1
- path: src/Blocks/BlockTypes/ProductFilterTaxonomy.php
-
-
message: '#^Method Automattic\\WooCommerce\\Blocks\\BlockTypes\\ProductFilterTaxonomy\:\:enqueue_data\(\) has no return type specified\.$#'
identifier: missingType.return
@@ -76023,12 +75279,6 @@ parameters:
count: 1
path: src/Blocks/BlockTypes/ProductFilterTaxonomy.php
- -
- message: '#^Parameter \#1 \$taxonomy of function get_taxonomy expects string, int\|string given\.$#'
- identifier: argument.type
- count: 1
- path: src/Blocks/BlockTypes/ProductFilterTaxonomy.php
-
-
message: '#^Parameter \$block of method Automattic\\WooCommerce\\Blocks\\BlockTypes\\ProductFilterTaxonomy\:\:get_taxonomy_term_counts\(\) has invalid type Automattic\\WooCommerce\\Blocks\\BlockTypes\\WP_Block\.$#'
identifier: class.notFound
@@ -76065,12 +75315,6 @@ parameters:
count: 1
path: src/Blocks/BlockTypes/ProductFilters.php
- -
- message: '#^Cannot call method get_param_keys\(\) on mixed\.$#'
- identifier: method.nonObject
- count: 1
- path: src/Blocks/BlockTypes/ProductFilters.php
-
-
message: '#^Method Automattic\\WooCommerce\\Blocks\\BlockTypes\\ProductFilters\:\:enqueue_data\(\) has no return type specified\.$#'
identifier: missingType.return
@@ -78489,12 +77733,6 @@ parameters:
count: 1
path: src/Blocks/Payments/PaymentMethodRegistry.php
- -
- message: '#^Cannot call method get_lookup_table_name\(\) on mixed\.$#'
- identifier: method.nonObject
- count: 1
- path: src/Blocks/QueryFilters.php
-
-
message: '#^Method Automattic\\WooCommerce\\Blocks\\QueryFilters\:\:init\(\) has no return type specified\.$#'
identifier: missingType.return
@@ -79881,12 +79119,6 @@ parameters:
count: 1
path: src/Caching/CacheException.php
- -
- message: '#^Method Automattic\\WooCommerce\\Caching\\ObjectCache\:\:get_cache_engine_instance\(\) should return Automattic\\WooCommerce\\Caching\\CacheEngine but returns mixed\.$#'
- identifier: return.type
- count: 1
- path: src/Caching/ObjectCache.php
-
-
message: '#^Method Automattic\\WooCommerce\\Caching\\ObjectCache\:\:get_id_from_object_if_null\(\) never returns null so it can be removed from the return type\.$#'
identifier: return.unusedType
@@ -80043,12 +79275,6 @@ parameters:
count: 1
path: src/Checkout/Helpers/ReserveStock.php
- -
- message: '#^Template type T of method Automattic\\WooCommerce\\Container\:\:get\(\) is not referenced in a parameter\.$#'
- identifier: method.templateTypeNotInParameter
- count: 1
- path: src/Container.php
-
-
message: '#^Call to static method add_command\(\) on an unknown class WP_CLI\.$#'
identifier: class.notFound
@@ -80097,84 +79323,12 @@ parameters:
count: 1
path: src/Database/Migrations/CustomOrderTable/CLIRunner.php
- -
- message: '#^Cannot call method backfill_order_to_datastore\(\) on mixed\.$#'
- identifier: method.nonObject
- count: 1
- path: src/Database/Migrations/CustomOrderTable/CLIRunner.php
-
- -
- message: '#^Cannot call method change_feature_enable\(\) on mixed\.$#'
- identifier: method.nonObject
- count: 2
- path: src/Database/Migrations/CustomOrderTable/CLIRunner.php
-
- -
- message: '#^Cannot call method check_orders_table_exists\(\) on mixed\.$#'
- identifier: method.nonObject
- count: 2
- path: src/Database/Migrations/CustomOrderTable/CLIRunner.php
-
- -
- message: '#^Cannot call method cleanup_post_data\(\) on mixed\.$#'
- identifier: method.nonObject
- count: 1
- path: src/Database/Migrations/CustomOrderTable/CLIRunner.php
-
- -
- message: '#^Cannot call method count_orders_for_cleanup\(\) on mixed\.$#'
- identifier: method.nonObject
- count: 2
- path: src/Database/Migrations/CustomOrderTable/CLIRunner.php
-
- -
- message: '#^Cannot call method create_database_tables\(\) on mixed\.$#'
- identifier: method.nonObject
- count: 1
- path: src/Database/Migrations/CustomOrderTable/CLIRunner.php
-
- -
- message: '#^Cannot call method custom_orders_table_usage_is_enabled\(\) on mixed\.$#'
- identifier: method.nonObject
- count: 4
- path: src/Database/Migrations/CustomOrderTable/CLIRunner.php
-
-
message: '#^Cannot call method flush\(\) on mixed\.$#'
identifier: method.nonObject
count: 1
path: src/Database/Migrations/CustomOrderTable/CLIRunner.php
- -
- message: '#^Cannot call method get_compatible_plugins_for_feature\(\) on mixed\.$#'
- identifier: method.nonObject
- count: 2
- path: src/Database/Migrations/CustomOrderTable/CLIRunner.php
-
- -
- message: '#^Cannot call method get_diff_for_order\(\) on mixed\.$#'
- identifier: method.nonObject
- count: 1
- path: src/Database/Migrations/CustomOrderTable/CLIRunner.php
-
- -
- message: '#^Cannot call method get_items_considered_incompatible\(\) on mixed\.$#'
- identifier: method.nonObject
- count: 1
- path: src/Database/Migrations/CustomOrderTable/CLIRunner.php
-
- -
- message: '#^Cannot call method get_orders_for_cleanup\(\) on mixed\.$#'
- identifier: method.nonObject
- count: 1
- path: src/Database/Migrations/CustomOrderTable/CLIRunner.php
-
- -
- message: '#^Cannot call method get_total_pending_count\(\) on mixed\.$#'
- identifier: method.nonObject
- count: 2
- path: src/Database/Migrations/CustomOrderTable/CLIRunner.php
-
-
message: '#^Function WP_CLI\\Utils\\format_items not found\.$#'
identifier: function.notFound
@@ -80385,12 +79539,6 @@ parameters:
count: 1
path: src/Database/Migrations/CustomOrderTable/PostsToOrdersMigrationController.php
- -
- message: '#^Cannot call method clear_cached_data\(\) on class\-string\|object\.$#'
- identifier: method.nonObject
- count: 1
- path: src/Database/Migrations/CustomOrderTable/PostsToOrdersMigrationController.php
-
-
message: '#^Cannot call method query\(\) on mixed\.$#'
identifier: method.nonObject
@@ -80535,18 +79683,6 @@ parameters:
count: 1
path: src/Database/Migrations/MigrationHelper.php
- -
- message: '#^Cannot call method check_orders_table_exists\(\) on mixed\.$#'
- identifier: method.nonObject
- count: 1
- path: src/Database/Migrations/MigrationHelper.php
-
- -
- message: '#^Cannot call method generate_on_duplicate_statement_clause\(\) on mixed\.$#'
- identifier: method.nonObject
- count: 1
- path: src/Database/Migrations/MigrationHelper.php
-
-
message: '#^Parameter \#1 \$string of function substr expects string, mixed given\.$#'
identifier: argument.type
@@ -80751,12 +79887,6 @@ parameters:
count: 1
path: src/Internal/Admin/Agentic/AgenticCommerceIntegration.php
- -
- message: '#^Cannot call method register\(\) on mixed\.$#'
- identifier: method.nonObject
- count: 1
- path: src/Internal/Admin/Agentic/AgenticController.php
-
-
message: '#^Method Automattic\\WooCommerce\\Internal\\Admin\\Agentic\\AgenticController\:\:on_init\(\) has no return type specified\.$#'
identifier: missingType.return
@@ -80877,12 +80007,6 @@ parameters:
count: 1
path: src/Internal/Admin/Agentic/AgenticWebhookPayloadBuilder.php
- -
- message: '#^Cannot call method feature_is_enabled\(\) on mixed\.$#'
- identifier: method.nonObject
- count: 1
- path: src/Internal/Admin/Analytics.php
-
-
message: '#^Method Automattic\\WooCommerce\\Internal\\Admin\\Analytics\:\:get_instance\(\) has no return type specified\.$#'
identifier: missingType.return
@@ -81597,6 +80721,12 @@ parameters:
count: 2
path: src/Internal/Admin/EmailPreview/EmailPreview.php
+ -
+ message: '#^Callback expects 1 parameter, \$accepted_args is set to 2\.$#'
+ identifier: arguments.count
+ count: 1
+ path: src/Internal/Admin/EmailPreview/EmailPreview.php
+
-
message: '#^Cannot access offset string on array\<class\-string\<WC_Email\>, WC_Email\>\|false\.$#'
identifier: offsetAccess.nonOffsetAccessible
@@ -81621,12 +80751,6 @@ parameters:
count: 1
path: src/Internal/Admin/EmailPreview/EmailPreview.php
- -
- message: '#^Cannot call method get_woo_content\(\) on mixed\.$#'
- identifier: method.nonObject
- count: 1
- path: src/Internal/Admin/EmailPreview/EmailPreview.php
-
-
message: '#^Cannot call method style_inline\(\) on WC_Email\|null\.$#'
identifier: method.nonObject
@@ -81735,12 +80859,6 @@ parameters:
count: 1
path: src/Internal/Admin/EmailPreview/EmailPreview.php
- -
- message: '#^Parameter \#2 \$callback of function add_filter expects callable\(\)\: mixed, array\{mixed, ''prepare_css''\} given\.$#'
- identifier: argument.type
- count: 1
- path: src/Internal/Admin/EmailPreview/EmailPreview.php
-
-
message: '#^Parameter \#3 \$subject of function preg_replace expects array\<float\|int\|string\>\|string, string\|false given\.$#'
identifier: argument.type
@@ -81789,12 +80907,6 @@ parameters:
count: 1
path: src/Internal/Admin/EmailPreview/EmailPreviewRestController.php
- -
- message: '#^Property Automattic\\WooCommerce\\Internal\\Admin\\EmailPreview\\EmailPreviewRestController\:\:\$email_preview \(Automattic\\WooCommerce\\Internal\\Admin\\EmailPreview\\EmailPreview\) does not accept mixed\.$#'
- identifier: assign.propertyType
- count: 1
- path: src/Internal/Admin/EmailPreview/EmailPreviewRestController.php
-
-
message: '#^Method Automattic\\WooCommerce\\Internal\\Admin\\Emails\\EmailListingRestController\:\:check_permissions\(\) has parameter \$request with generic class WP_REST_Request but does not specify its types\: T$#'
identifier: missingType.generics
@@ -82425,18 +81537,6 @@ parameters:
count: 1
path: src/Internal/Admin/Logging/LogHandlerFileV2.php
- -
- message: '#^Property Automattic\\WooCommerce\\Internal\\Admin\\Logging\\LogHandlerFileV2\:\:\$file_controller \(Automattic\\WooCommerce\\Internal\\Admin\\Logging\\FileV2\\FileController\) does not accept mixed\.$#'
- identifier: assign.propertyType
- count: 1
- path: src/Internal/Admin/Logging/LogHandlerFileV2.php
-
- -
- message: '#^Property Automattic\\WooCommerce\\Internal\\Admin\\Logging\\LogHandlerFileV2\:\:\$settings \(Automattic\\WooCommerce\\Internal\\Admin\\Logging\\Settings\) does not accept mixed\.$#'
- identifier: assign.propertyType
- count: 1
- path: src/Internal/Admin/Logging/LogHandlerFileV2.php
-
-
message: '#^Call to protected method prepare_column_headers\(\) of class WC_Admin_Log_Table_List\.$#'
identifier: method.protected
@@ -82486,14 +81586,14 @@ parameters:
path: src/Internal/Admin/Logging/PageController.php
-
- message: '#^Cannot call method call_function\(\) on mixed\.$#'
- identifier: method.nonObject
+ message: '#^Binary operation "\." between mixed and ''/wc\-logs/'' results in an error\.$#'
+ identifier: binaryOp.invalid
count: 1
path: src/Internal/Admin/Logging/Settings.php
-
- message: '#^Cannot call method get_log_directory_size\(\) on mixed\.$#'
- identifier: method.nonObject
+ message: '#^Cannot access offset ''basedir'' on mixed\.$#'
+ identifier: offsetAccess.nonOffsetAccessible
count: 1
path: src/Internal/Admin/Logging/Settings.php
@@ -82641,12 +81741,6 @@ parameters:
count: 2
path: src/Internal/Admin/Marketing/MarketingSpecs.php
- -
- message: '#^Cannot call method change_feature_enable\(\) on mixed\.$#'
- identifier: method.nonObject
- count: 1
- path: src/Internal/Admin/Marketplace.php
-
-
message: '#^Method Automattic\\WooCommerce\\Internal\\Admin\\Marketplace\:\:enqueue_scripts\(\) has no return type specified\.$#'
identifier: missingType.return
@@ -84087,12 +83181,6 @@ parameters:
count: 1
path: src/Internal/Admin/Orders/Edit.php
- -
- message: '#^Cannot call method lock\(\) on mixed\.$#'
- identifier: method.nonObject
- count: 1
- path: src/Internal/Admin/Orders/Edit.php
-
-
message: '#^Method Automattic\\WooCommerce\\Internal\\Admin\\Orders\\Edit\:\:add_order_meta_boxes\(\) has no return type specified\.$#'
identifier: missingType.return
@@ -84189,12 +83277,6 @@ parameters:
count: 1
path: src/Internal/Admin/Orders/Edit.php
- -
- message: '#^Property Automattic\\WooCommerce\\Internal\\Admin\\Orders\\Edit\:\:\$custom_meta_box \(Automattic\\WooCommerce\\Internal\\Admin\\Orders\\MetaBoxes\\CustomMetaBox\) does not accept mixed\.$#'
- identifier: assign.propertyType
- count: 1
- path: src/Internal/Admin/Orders/Edit.php
-
-
message: '#^Property Automattic\\WooCommerce\\Internal\\Admin\\Orders\\Edit\:\:\$custom_meta_box \(Automattic\\WooCommerce\\Internal\\Admin\\Orders\\MetaBoxes\\CustomMetaBox\) in isset\(\) is not nullable\.$#'
identifier: isset.property
@@ -84213,24 +83295,12 @@ parameters:
count: 1
path: src/Internal/Admin/Orders/Edit.php
- -
- message: '#^Property Automattic\\WooCommerce\\Internal\\Admin\\Orders\\Edit\:\:\$orders_page_controller \(Automattic\\WooCommerce\\Internal\\Admin\\Orders\\PageController\) does not accept mixed\.$#'
- identifier: assign.propertyType
- count: 1
- path: src/Internal/Admin/Orders/Edit.php
-
-
message: '#^Property Automattic\\WooCommerce\\Internal\\Admin\\Orders\\Edit\:\:\$orders_page_controller \(Automattic\\WooCommerce\\Internal\\Admin\\Orders\\PageController\) in isset\(\) is not nullable\.$#'
identifier: isset.property
count: 1
path: src/Internal/Admin/Orders/Edit.php
- -
- message: '#^Property Automattic\\WooCommerce\\Internal\\Admin\\Orders\\Edit\:\:\$taxonomies_meta_box \(Automattic\\WooCommerce\\Internal\\Admin\\Orders\\MetaBoxes\\TaxonomiesMetaBox\) does not accept mixed\.$#'
- identifier: assign.propertyType
- count: 1
- path: src/Internal/Admin/Orders/Edit.php
-
-
message: '#^Property Automattic\\WooCommerce\\Internal\\Admin\\Orders\\Edit\:\:\$taxonomies_meta_box \(Automattic\\WooCommerce\\Internal\\Admin\\Orders\\MetaBoxes\\TaxonomiesMetaBox\) in isset\(\) is not nullable\.$#'
identifier: isset.property
@@ -84273,18 +83343,6 @@ parameters:
count: 2
path: src/Internal/Admin/Orders/EditLock.php
- -
- message: '#^Cannot call method get_base_page_url\(\) on mixed\.$#'
- identifier: method.nonObject
- count: 1
- path: src/Internal/Admin/Orders/EditLock.php
-
- -
- message: '#^Cannot call method get_edit_url\(\) on mixed\.$#'
- identifier: method.nonObject
- count: 1
- path: src/Internal/Admin/Orders/EditLock.php
-
-
message: '#^Method Automattic\\WooCommerce\\Internal\\Admin\\Orders\\EditLock\:\:lock\(\) should return array\|bool but returns mixed\.$#'
identifier: return.type
@@ -84393,12 +83451,6 @@ parameters:
count: 1
path: src/Internal/Admin/Orders/ListTable.php
- -
- message: '#^Cannot call method custom_orders_table_usage_is_enabled\(\) on mixed\.$#'
- identifier: method.nonObject
- count: 1
- path: src/Internal/Admin/Orders/ListTable.php
-
-
message: '#^Cannot call method date\(\) on WC_DateTime\|null\.$#'
identifier: method.nonObject
@@ -84435,18 +83487,6 @@ parameters:
count: 1
path: src/Internal/Admin/Orders/ListTable.php
- -
- message: '#^Cannot call method is_locked_by_another_user\(\) on mixed\.$#'
- identifier: method.nonObject
- count: 1
- path: src/Internal/Admin/Orders/ListTable.php
-
- -
- message: '#^Cannot call method untrash_order\(\) on mixed\.$#'
- identifier: method.nonObject
- count: 1
- path: src/Internal/Admin/Orders/ListTable.php
-
-
message: '#^Cannot call method update_status\(\) on WC_Order\|WC_Order_Refund\|true\.$#'
identifier: method.nonObject
@@ -84609,6 +83649,12 @@ parameters:
count: 1
path: src/Internal/Admin/Orders/ListTable.php
+ -
+ message: '#^Parameter \#1 \$order of method Automattic\\WooCommerce\\Internal\\DataStores\\Orders\\OrdersTableDataStore\:\:untrash_order\(\) expects WC_Order, bool\|WC_Order\|WC_Order_Refund given\.$#'
+ identifier: argument.type
+ count: 1
+ path: src/Internal/Admin/Orders/ListTable.php
+
-
message: '#^Parameter \#1 \$str of function sanitize_text_field expects string, mixed given\.$#'
identifier: argument.type
@@ -84717,12 +83763,6 @@ parameters:
count: 1
path: src/Internal/Admin/Orders/MetaBoxes/CustomMetaBox.php
- -
- message: '#^Cannot call method get_meta_keys\(\) on mixed\.$#'
- identifier: method.nonObject
- count: 1
- path: src/Internal/Admin/Orders/MetaBoxes/CustomMetaBox.php
-
-
message: '#^Cannot call method save\(\) on WC_Order\|null\.$#'
identifier: method.nonObject
@@ -84753,12 +83793,6 @@ parameters:
count: 1
path: src/Internal/Admin/Orders/MetaBoxes/CustomMetaBox.php
- -
- message: '#^Method Automattic\\WooCommerce\\Internal\\Admin\\Orders\\MetaBoxes\\CustomMetaBox\:\:order_meta_keys_autofill\(\) should return array but returns array\|float\|int\|string\|false\|null\.$#'
- identifier: return.type
- count: 1
- path: src/Internal/Admin/Orders/MetaBoxes/CustomMetaBox.php
-
-
message: '#^Method Automattic\\WooCommerce\\Internal\\Admin\\Orders\\MetaBoxes\\CustomMetaBox\:\:output\(\) has no return type specified\.$#'
identifier: missingType.return
@@ -85059,54 +84093,12 @@ parameters:
count: 2
path: src/Internal/Admin/Orders/PageController.php
- -
- message: '#^Cannot call method current_action\(\) on mixed\.$#'
- identifier: method.nonObject
- count: 1
- path: src/Internal/Admin/Orders/PageController.php
-
- -
- message: '#^Cannot call method custom_orders_table_usage_is_enabled\(\) on mixed\.$#'
- identifier: method.nonObject
- count: 4
- path: src/Internal/Admin/Orders/PageController.php
-
-
message: '#^Cannot call method get_type\(\) on WC_Order\|WC_Order_Refund\|true\.$#'
identifier: method.nonObject
count: 1
path: src/Internal/Admin/Orders/PageController.php
- -
- message: '#^Cannot call method handle_bulk_actions\(\) on mixed\.$#'
- identifier: method.nonObject
- count: 1
- path: src/Internal/Admin/Orders/PageController.php
-
- -
- message: '#^Cannot call method is_locked_by_another_user\(\) on mixed\.$#'
- identifier: method.nonObject
- count: 1
- path: src/Internal/Admin/Orders/PageController.php
-
- -
- message: '#^Cannot call method lock\(\) on mixed\.$#'
- identifier: method.nonObject
- count: 2
- path: src/Internal/Admin/Orders/PageController.php
-
- -
- message: '#^Cannot call method render_dialog\(\) on mixed\.$#'
- identifier: method.nonObject
- count: 1
- path: src/Internal/Admin/Orders/PageController.php
-
- -
- message: '#^Cannot call method setup\(\) on mixed\.$#'
- identifier: method.nonObject
- count: 1
- path: src/Internal/Admin/Orders/PageController.php
-
-
message: '#^Method Automattic\\WooCommerce\\Internal\\Admin\\Orders\\PageController\:\:handle_load_page_action\(\) has no return type specified\.$#'
identifier: missingType.return
@@ -85179,12 +84171,6 @@ parameters:
count: 1
path: src/Internal/Admin/Orders/PageController.php
- -
- message: '#^Property Automattic\\WooCommerce\\Internal\\Admin\\Orders\\PageController\:\:\$orders_table \(Automattic\\WooCommerce\\Internal\\Admin\\Orders\\ListTable\) does not accept mixed\.$#'
- identifier: assign.propertyType
- count: 1
- path: src/Internal/Admin/Orders/PageController.php
-
-
message: '#^Property Automattic\\WooCommerce\\Internal\\Admin\\Orders\\PageController\:\:\$redirection_controller is never read, only written\.$#'
identifier: property.onlyWritten
@@ -85197,12 +84183,6 @@ parameters:
count: 1
path: src/Internal/Admin/Orders/PostsRedirectionController.php
- -
- message: '#^Cannot call method custom_orders_table_usage_is_enabled\(\) on mixed\.$#'
- identifier: method.nonObject
- count: 1
- path: src/Internal/Admin/Orders/PostsRedirectionController.php
-
-
message: '#^Parameter \#1 \$maybeint of function absint expects array\|bool\|float\|int\|resource\|string\|null, mixed given\.$#'
identifier: argument.type
@@ -86787,24 +85767,6 @@ parameters:
count: 1
path: src/Internal/Admin/Settings/PaymentsProviders/Vivacom.php
- -
- message: '#^Call to an undefined method object\:\:has_connected_owner\(\)\.$#'
- identifier: method.notFound
- count: 1
- path: src/Internal/Admin/Settings/PaymentsProviders/WooPayments.php
-
- -
- message: '#^Call to an undefined method object\:\:is_connected\(\)\.$#'
- identifier: method.notFound
- count: 1
- path: src/Internal/Admin/Settings/PaymentsProviders/WooPayments.php
-
- -
- message: '#^Call to an undefined method object\:\:is_connection_owner\(\)\.$#'
- identifier: method.notFound
- count: 1
- path: src/Internal/Admin/Settings/PaymentsProviders/WooPayments.php
-
-
message: '#^Call to an undefined static method Automattic\\WooCommerce\\Internal\\Logging\\SafeGlobalFunctionProxy\:\:wc_get_logger\(\)\.$#'
identifier: staticMethod.notFound
@@ -88059,24 +87021,12 @@ parameters:
count: 1
path: src/Internal/Admin/WcPayWelcomePage.php
- -
- message: '#^Property Automattic\\WooCommerce\\Internal\\Admin\\WcPayWelcomePage\:\:\$suggestion_incentives \(Automattic\\WooCommerce\\Internal\\Admin\\Suggestions\\PaymentsExtensionSuggestionIncentives\) does not accept mixed\.$#'
- identifier: assign.propertyType
- count: 1
- path: src/Internal/Admin/WcPayWelcomePage.php
-
-
message: '#^Method Automattic\\WooCommerce\\Internal\\AssignDefaultCategory\:\:init\(\) has no return type specified\.$#'
identifier: missingType.return
count: 1
path: src/Internal/AssignDefaultCategory.php
- -
- message: '#^@param object\|null \$processor does not accept actual type of parameter\: mixed\.$#'
- identifier: parameter.phpDocType
- count: 1
- path: src/Internal/BatchProcessing/BatchProcessingController.php
-
-
message: '#^Callback expects 1 parameter, \$accepted_args is set to 2\.$#'
identifier: arguments.count
@@ -88107,6 +87057,12 @@ parameters:
count: 1
path: src/Internal/BatchProcessing/BatchProcessingController.php
+ -
+ message: '#^Parameter \#1 \$id of method Automattic\\WooCommerce\\Container\:\:get\(\) expects class\-string\<object\>, string given\.$#'
+ identifier: argument.type
+ count: 1
+ path: src/Internal/BatchProcessing/BatchProcessingController.php
+
-
message: '#^Parameter \#1 \$id of method Automattic\\WooCommerce\\Container\:\:has\(\) expects class\-string, string given\.$#'
identifier: argument.type
@@ -88125,6 +87081,12 @@ parameters:
count: 1
path: src/Internal/BatchProcessing/BatchProcessingController.php
+ -
+ message: '#^Unable to resolve the template type T in call to method Automattic\\WooCommerce\\Container\:\:get\(\)$#'
+ identifier: argument.templateType
+ count: 1
+ path: src/Internal/BatchProcessing/BatchProcessingController.php
+
-
message: '#^Constant WC_ABSPATH not found\.$#'
identifier: constant.notFound
@@ -88305,16 +87267,10 @@ parameters:
count: 1
path: src/Internal/CLI/Migrator/Core/PlatformRegistry.php
- -
- message: '#^Method Automattic\\WooCommerce\\Internal\\CLI\\Migrator\\Core\\PlatformRegistry\:\:get_mapper\(\) should return Automattic\\WooCommerce\\Internal\\CLI\\Migrator\\Interfaces\\PlatformMapperInterface but returns mixed\.$#'
- identifier: return.type
- count: 1
- path: src/Internal/CLI/Migrator/Core/PlatformRegistry.php
-
-
message: '#^Method Automattic\\WooCommerce\\Internal\\CLI\\Migrator\\Core\\PlatformRegistry\:\:get_mapper\(\) should return Automattic\\WooCommerce\\Internal\\CLI\\Migrator\\Interfaces\\PlatformMapperInterface but returns object\.$#'
identifier: return.type
- count: 1
+ count: 2
path: src/Internal/CLI/Migrator/Core/PlatformRegistry.php
-
@@ -89295,12 +88251,6 @@ parameters:
count: 1
path: src/Internal/DataStores/Fulfillments/FulfillmentsDataStore.php
- -
- message: '#^Cannot call method get_features_page_url\(\) on mixed\.$#'
- identifier: method.nonObject
- count: 2
- path: src/Internal/DataStores/Orders/CustomOrdersTableController.php
-
-
message: '#^Filter callback return statement is missing\.$#'
identifier: return.missing
@@ -89397,12 +88347,6 @@ parameters:
count: 1
path: src/Internal/DataStores/Orders/DataSynchronizer.php
- -
- message: '#^Cannot call method delete\(\) on mixed\.$#'
- identifier: method.nonObject
- count: 1
- path: src/Internal/DataStores/Orders/DataSynchronizer.php
-
-
message: '#^Cannot call method getTimestamp\(\) on WC_DateTime\|null\.$#'
identifier: method.nonObject
@@ -89415,24 +88359,6 @@ parameters:
count: 1
path: src/Internal/DataStores/Orders/DataSynchronizer.php
- -
- message: '#^Cannot call method order_exists\(\) on mixed\.$#'
- identifier: method.nonObject
- count: 1
- path: src/Internal/DataStores/Orders/DataSynchronizer.php
-
- -
- message: '#^Cannot call method read\(\) on mixed\.$#'
- identifier: method.nonObject
- count: 1
- path: src/Internal/DataStores/Orders/DataSynchronizer.php
-
- -
- message: '#^Cannot call method toggle_flag\(\) on mixed\.$#'
- identifier: method.nonObject
- count: 1
- path: src/Internal/DataStores/Orders/DataSynchronizer.php
-
-
message: '#^Cannot cast mixed to int\.$#'
identifier: cast.int
@@ -89751,12 +88677,6 @@ parameters:
count: 1
path: src/Internal/DataStores/Orders/OrdersTableDataStore.php
- -
- message: '#^Cannot access constant PLACEHOLDER_ORDER_POST_TYPE on mixed\.$#'
- identifier: classConstant.nonObject
- count: 1
- path: src/Internal/DataStores/Orders/OrdersTableDataStore.php
-
-
message: '#^Cannot access offset ''class_name'' on array\|bool\.$#'
identifier: offsetAccess.nonOffsetAccessible
@@ -89805,48 +88725,12 @@ parameters:
count: 1
path: src/Internal/DataStores/Orders/OrdersTableDataStore.php
- -
- message: '#^Cannot call method cache_objects\(\) on mixed\.$#'
- identifier: method.nonObject
- count: 1
- path: src/Internal/DataStores/Orders/OrdersTableDataStore.php
-
- -
- message: '#^Cannot call method call_function\(\) on mixed\.$#'
- identifier: method.nonObject
- count: 1
- path: src/Internal/DataStores/Orders/OrdersTableDataStore.php
-
- -
- message: '#^Cannot call method data_sync_is_enabled\(\) on mixed\.$#'
- identifier: method.nonObject
- count: 4
- path: src/Internal/DataStores/Orders/OrdersTableDataStore.php
-
-
message: '#^Cannot call method delete\(\) on WC_Order\|WC_Order_Refund\|true\.$#'
identifier: method.nonObject
count: 1
path: src/Internal/DataStores/Orders/OrdersTableDataStore.php
- -
- message: '#^Cannot call method delete_cache_group\(\) on mixed\.$#'
- identifier: method.nonObject
- count: 1
- path: src/Internal/DataStores/Orders/OrdersTableDataStore.php
-
- -
- message: '#^Cannot call method delete_cached_object\(\) on mixed\.$#'
- identifier: method.nonObject
- count: 1
- path: src/Internal/DataStores/Orders/OrdersTableDataStore.php
-
- -
- message: '#^Cannot call method feature_is_enabled\(\) on mixed\.$#'
- identifier: method.nonObject
- count: 1
- path: src/Internal/DataStores/Orders/OrdersTableDataStore.php
-
-
message: '#^Cannot call method getOffsetTimestamp\(\) on WC_DateTime\|null\.$#'
identifier: method.nonObject
@@ -89859,12 +88743,6 @@ parameters:
count: 1
path: src/Internal/DataStores/Orders/OrdersTableDataStore.php
- -
- message: '#^Cannot call method get_cached_objects\(\) on mixed\.$#'
- identifier: method.nonObject
- count: 1
- path: src/Internal/DataStores/Orders/OrdersTableDataStore.php
-
-
message: '#^Cannot call method get_download_permissions_granted\(\) on bool\|WC_Order\|WC_Order_Refund\.$#'
identifier: method.nonObject
@@ -89901,18 +88779,6 @@ parameters:
count: 1
path: src/Internal/DataStores/Orders/OrdersTableDataStore.php
- -
- message: '#^Cannot call method read_order_from_datastore\(\) on mixed\.$#'
- identifier: method.nonObject
- count: 1
- path: src/Internal/DataStores/Orders/OrdersTableDataStore.php
-
- -
- message: '#^Cannot call method remove\(\) on mixed\.$#'
- identifier: method.nonObject
- count: 2
- path: src/Internal/DataStores/Orders/OrdersTableDataStore.php
-
-
message: '#^Cannot call method save\(\) on bool\|WC_Order\|WC_Order_Refund\.$#'
identifier: method.nonObject
@@ -90192,6 +89058,12 @@ parameters:
count: 1
path: src/Internal/DataStores/Orders/OrdersTableDataStore.php
+ -
+ message: '#^Parameter \#1 \$keys of method Automattic\\WooCommerce\\Caching\\WPCacheEngine\:\:get_cached_objects\(\) expects array\<string\>, array\<int\> given\.$#'
+ identifier: argument.type
+ count: 1
+ path: src/Internal/DataStores/Orders/OrdersTableDataStore.php
+
-
message: '#^Parameter \#1 \$order of method Abstract_WC_Order_Data_Store_CPT\:\:delete_items\(\) expects WC_Order, WC_Abstract_Order given\.$#'
identifier: argument.type
@@ -90210,6 +89082,12 @@ parameters:
count: 1
path: src/Internal/DataStores/Orders/OrdersTableDataStore.php
+ -
+ message: '#^Parameter \#1 \$order of method Automattic\\WooCommerce\\Internal\\DataStores\\Orders\\LegacyDataHandler\:\:read_order_from_datastore\(\) expects WC_Abstract_Order, object given\.$#'
+ identifier: argument.type
+ count: 1
+ path: src/Internal/DataStores/Orders/OrdersTableDataStore.php
+
-
message: '#^Parameter \#1 \$order of method Automattic\\WooCommerce\\Internal\\DataStores\\Orders\\OrdersTableDataStore\:\:after_meta_change\(\) expects WC_Abstract_Order, WC_Data given\.$#'
identifier: argument.type
@@ -90463,26 +89341,8 @@ parameters:
path: src/Internal/DataStores/Orders/OrdersTableDataStoreMeta.php
-
- message: '#^Cannot call method cache_objects\(\) on mixed\.$#'
- identifier: method.nonObject
- count: 1
- path: src/Internal/DataStores/Orders/OrdersTableDataStoreMeta.php
-
- -
- message: '#^Cannot call method delete_cache_group\(\) on mixed\.$#'
- identifier: method.nonObject
- count: 1
- path: src/Internal/DataStores/Orders/OrdersTableDataStoreMeta.php
-
- -
- message: '#^Cannot call method delete_cached_object\(\) on mixed\.$#'
- identifier: method.nonObject
- count: 1
- path: src/Internal/DataStores/Orders/OrdersTableDataStoreMeta.php
-
- -
- message: '#^Cannot call method get_cached_objects\(\) on mixed\.$#'
- identifier: method.nonObject
+ message: '#^Parameter \#1 \$keys of method Automattic\\WooCommerce\\Caching\\WPCacheEngine\:\:get_cached_objects\(\) expects array\<string\>, array\<int\> given\.$#'
+ identifier: argument.type
count: 1
path: src/Internal/DataStores/Orders/OrdersTableDataStoreMeta.php
@@ -90522,30 +89382,6 @@ parameters:
count: 1
path: src/Internal/DataStores/Orders/OrdersTableMetaQuery.php
- -
- message: '#^Cannot call method format_object_value_for_db\(\) on mixed\.$#'
- identifier: method.nonObject
- count: 1
- path: src/Internal/DataStores/Orders/OrdersTableQuery.php
-
- -
- message: '#^Cannot call method get_all_order_column_mappings\(\) on mixed\.$#'
- identifier: method.nonObject
- count: 1
- path: src/Internal/DataStores/Orders/OrdersTableQuery.php
-
- -
- message: '#^Cannot call method get_wpdb_format_for_type\(\) on mixed\.$#'
- identifier: method.nonObject
- count: 1
- path: src/Internal/DataStores/Orders/OrdersTableQuery.php
-
- -
- message: '#^Cannot call static method get_all_table_names_with_id\(\) on mixed\.$#'
- identifier: staticMethod.nonObject
- count: 1
- path: src/Internal/DataStores/Orders/OrdersTableQuery.php
-
-
message: '#^Method Automattic\\WooCommerce\\Internal\\DataStores\\Orders\\OrdersTableQuery\:\:build_count_query\(\) has no return type specified\.$#'
identifier: missingType.return
@@ -90564,12 +89400,6 @@ parameters:
count: 1
path: src/Internal/DataStores/Orders/OrdersTableQuery.php
- -
- message: '#^Parameter \#1 \$callback of function array_map expects \(callable\(mixed, string\)\: mixed\)\|null, array\{mixed, ''format_object_value…''\} given\.$#'
- identifier: argument.type
- count: 1
- path: src/Internal/DataStores/Orders/OrdersTableQuery.php
-
-
message: '#^Parameter \#1 \$number of function wc_format_decimal expects float\|string, mixed given\.$#'
identifier: argument.type
@@ -90624,12 +89454,6 @@ parameters:
count: 1
path: src/Internal/DataStores/Orders/OrdersTableQuery.php
- -
- message: '#^Property Automattic\\WooCommerce\\Internal\\DataStores\\Orders\\OrdersTableQuery\:\:\$order_datastore \(Automattic\\WooCommerce\\Internal\\DataStores\\Orders\\OrdersTableDataStore\) does not accept mixed\.$#'
- identifier: assign.propertyType
- count: 1
- path: src/Internal/DataStores/Orders/OrdersTableQuery.php
-
-
message: '#^Property Automattic\\WooCommerce\\Internal\\DataStores\\Orders\\OrdersTableQuery\:\:\$search_query has no type specified\.$#'
identifier: missingType.property
@@ -90708,12 +89532,6 @@ parameters:
count: 1
path: src/Internal/DataStores/Orders/OrdersTableRefundDataStore.php
- -
- message: '#^Cannot call method data_sync_is_enabled\(\) on mixed\.$#'
- identifier: method.nonObject
- count: 1
- path: src/Internal/DataStores/Orders/OrdersTableRefundDataStore.php
-
-
message: '#^Method Automattic\\WooCommerce\\Internal\\DataStores\\Orders\\OrdersTableRefundDataStore\:\:create\(\) has no return type specified\.$#'
identifier: missingType.return
@@ -90792,12 +89610,6 @@ parameters:
count: 1
path: src/Internal/DataStores/Orders/OrdersTableSearchQuery.php
- -
- message: '#^Cannot call method sanitise_boolean_fts_search_term\(\) on mixed\.$#'
- identifier: method.nonObject
- count: 2
- path: src/Internal/DataStores/Orders/OrdersTableSearchQuery.php
-
-
message: '#^Cannot cast mixed to string\.$#'
identifier: cast.string
@@ -90990,12 +89802,6 @@ parameters:
count: 1
path: src/Internal/DownloadPermissionsAdjuster.php
- -
- message: '#^Cannot call method get_instance_of\(\) on mixed\.$#'
- identifier: method.nonObject
- count: 1
- path: src/Internal/DownloadPermissionsAdjuster.php
-
-
message: '#^Method Automattic\\WooCommerce\\Internal\\DownloadPermissionsAdjuster\:\:adjust_download_permissions\(\) has no return type specified\.$#'
identifier: missingType.return
@@ -91014,6 +89820,12 @@ parameters:
count: 1
path: src/Internal/DownloadPermissionsAdjuster.php
+ -
+ message: '#^Property Automattic\\WooCommerce\\Internal\\DownloadPermissionsAdjuster\:\:\$downloads_data_store \(Automattic\\WooCommerce\\Internal\\WC_Data_Store\) does not accept WC_Data_Store\.$#'
+ identifier: assign.propertyType
+ count: 1
+ path: src/Internal/DownloadPermissionsAdjuster.php
+
-
message: '#^Property Automattic\\WooCommerce\\Internal\\DownloadPermissionsAdjuster\:\:\$downloads_data_store has unknown class Automattic\\WooCommerce\\Internal\\WC_Data_Store as its type\.$#'
identifier: class.notFound
@@ -91093,32 +89905,14 @@ parameters:
path: src/Internal/EmailEditor/Integration.php
-
- message: '#^Cannot call method generate_placeholder_content\(\) on mixed\.$#'
- identifier: method.nonObject
- count: 2
- path: src/Internal/EmailEditor/Integration.php
-
- -
- message: '#^Cannot call method get_email\(\) on mixed\.$#'
- identifier: method.nonObject
- count: 1
- path: src/Internal/EmailEditor/Integration.php
-
- -
- message: '#^Cannot call method prepare_context_data\(\) on mixed\.$#'
- identifier: method.nonObject
- count: 1
- path: src/Internal/EmailEditor/Integration.php
-
- -
- message: '#^Cannot call method set_email_type\(\) on mixed\.$#'
- identifier: method.nonObject
+ message: '#^Cannot cast mixed to int\.$#'
+ identifier: cast.int
count: 1
path: src/Internal/EmailEditor/Integration.php
-
- message: '#^Cannot cast mixed to int\.$#'
- identifier: cast.int
+ message: '#^Dead catch \- InvalidArgumentException is never thrown in the try block\.$#'
+ identifier: catch.neverThrown
count: 1
path: src/Internal/EmailEditor/Integration.php
@@ -91153,38 +89947,32 @@ parameters:
path: src/Internal/EmailEditor/Integration.php
-
- message: '#^Parameter \#1 \$post_id of method Automattic\\WooCommerce\\Internal\\EmailEditor\\WCTransactionalEmails\\WCTransactionalEmailPostsManager\:\:get_email_type_from_post_id\(\) expects int\|string, int\|false given\.$#'
+ message: '#^Parameter \#1 \$email_type of method Automattic\\WooCommerce\\Internal\\Admin\\EmailPreview\\EmailPreview\:\:set_email_type\(\) expects string, string\|null given\.$#'
identifier: argument.type
count: 1
path: src/Internal/EmailEditor/Integration.php
-
- message: '#^Parameter \#1 \$str of function sanitize_text_field expects string, mixed given\.$#'
- identifier: argument.type
- count: 2
- path: src/Internal/EmailEditor/Integration.php
-
- -
- message: '#^Parameter \#3 \$post_id of method Automattic\\WooCommerce\\Internal\\EmailEditor\\Integration\:\:update_email_preview_data\(\) expects int, string given\.$#'
+ message: '#^Parameter \#1 \$email_type_class_name of method Automattic\\WooCommerce\\Internal\\Admin\\EmailPreview\\EmailPreview\:\:generate_placeholder_content\(\) expects string, string\|null given\.$#'
identifier: argument.type
count: 1
path: src/Internal/EmailEditor/Integration.php
-
- message: '#^Property Automattic\\WooCommerce\\Internal\\EmailEditor\\Integration\:\:\$editor_page_renderer \(Automattic\\WooCommerce\\Internal\\EmailEditor\\PageRenderer\) does not accept mixed\.$#'
- identifier: assign.propertyType
+ message: '#^Parameter \#1 \$post_id of method Automattic\\WooCommerce\\Internal\\EmailEditor\\WCTransactionalEmails\\WCTransactionalEmailPostsManager\:\:get_email_type_from_post_id\(\) expects int\|string, int\|false given\.$#'
+ identifier: argument.type
count: 1
path: src/Internal/EmailEditor/Integration.php
-
- message: '#^Property Automattic\\WooCommerce\\Internal\\EmailEditor\\Integration\:\:\$email_api_controller \(Automattic\\WooCommerce\\Internal\\EmailEditor\\EmailApiController\) does not accept mixed\.$#'
- identifier: assign.propertyType
- count: 1
+ message: '#^Parameter \#1 \$str of function sanitize_text_field expects string, mixed given\.$#'
+ identifier: argument.type
+ count: 2
path: src/Internal/EmailEditor/Integration.php
-
- message: '#^Property Automattic\\WooCommerce\\Internal\\EmailEditor\\Integration\:\:\$template_api_controller \(Automattic\\WooCommerce\\Internal\\EmailEditor\\EmailTemplates\\TemplateApiController\) does not accept mixed\.$#'
- identifier: assign.propertyType
+ message: '#^Parameter \#3 \$post_id of method Automattic\\WooCommerce\\Internal\\EmailEditor\\Integration\:\:update_email_preview_data\(\) expects int, string given\.$#'
+ identifier: argument.type
count: 1
path: src/Internal/EmailEditor/Integration.php
@@ -91428,12 +90216,6 @@ parameters:
count: 1
path: src/Internal/Features/FeaturesController.php
- -
- message: '#^Cannot call method add_feature_definition\(\) on mixed\.$#'
- identifier: method.nonObject
- count: 2
- path: src/Internal/Features/FeaturesController.php
-
-
message: '#^Cannot call method error\(\) on mixed\.$#'
identifier: method.nonObject
@@ -91938,12 +90720,6 @@ parameters:
count: 1
path: src/Internal/Fulfillments/Fulfillment.php
- -
- message: '#^Cannot call method read\(\) on mixed\.$#'
- identifier: method.nonObject
- count: 1
- path: src/Internal/Fulfillments/Fulfillment.php
-
-
message: '#^Method Automattic\\WooCommerce\\Internal\\Fulfillments\\Fulfillment\:\:get_date_fulfilled\(\) should return string\|null but returns mixed\.$#'
identifier: return.type
@@ -91980,12 +90756,6 @@ parameters:
count: 1
path: src/Internal/Fulfillments/Fulfillment.php
- -
- message: '#^Property WC_Data\:\:\$data_store \(object\) does not accept mixed\.$#'
- identifier: assign.propertyType
- count: 1
- path: src/Internal/Fulfillments/Fulfillment.php
-
-
message: '#^Binary operation "\*" between string and 1\|3\|7 results in an error\.$#'
identifier: binaryOp.invalid
@@ -92004,30 +90774,6 @@ parameters:
count: 1
path: src/Internal/Fulfillments/FulfillmentUtils.php
- -
- message: '#^Cannot call method get_icon\(\) on mixed\.$#'
- identifier: method.nonObject
- count: 1
- path: src/Internal/Fulfillments/FulfillmentUtils.php
-
- -
- message: '#^Cannot call method get_key\(\) on mixed\.$#'
- identifier: method.nonObject
- count: 2
- path: src/Internal/Fulfillments/FulfillmentUtils.php
-
- -
- message: '#^Cannot call method get_name\(\) on mixed\.$#'
- identifier: method.nonObject
- count: 1
- path: src/Internal/Fulfillments/FulfillmentUtils.php
-
- -
- message: '#^Cannot call method get_tracking_url\(\) on mixed\.$#'
- identifier: method.nonObject
- count: 1
- path: src/Internal/Fulfillments/FulfillmentUtils.php
-
-
message: '#^Instanceof between WC_Order and WC_Order will always evaluate to true\.$#'
identifier: instanceof.alwaysTrue
@@ -92058,30 +90804,6 @@ parameters:
count: 1
path: src/Internal/Fulfillments/FulfillmentUtils.php
- -
- message: '#^Cannot call method dbdelta\(\) on mixed\.$#'
- identifier: method.nonObject
- count: 1
- path: src/Internal/Fulfillments/FulfillmentsController.php
-
- -
- message: '#^Cannot call method feature_is_enabled\(\) on mixed\.$#'
- identifier: method.nonObject
- count: 1
- path: src/Internal/Fulfillments/FulfillmentsController.php
-
- -
- message: '#^Cannot call method get_max_index_length\(\) on mixed\.$#'
- identifier: method.nonObject
- count: 1
- path: src/Internal/Fulfillments/FulfillmentsController.php
-
- -
- message: '#^Cannot call method register\(\) on class\-string\|object\.$#'
- identifier: method.nonObject
- count: 1
- path: src/Internal/Fulfillments/FulfillmentsController.php
-
-
message: '#^Method Automattic\\WooCommerce\\Internal\\Fulfillments\\FulfillmentsController\:\:delete_legacy_order_fulfillment_meta\(\) has no return type specified\.$#'
identifier: missingType.return
@@ -92095,20 +90817,20 @@ parameters:
path: src/Internal/Fulfillments/FulfillmentsController.php
-
- message: '#^Parameter \#1 \$object of function method_exists expects object\|string, mixed given\.$#'
+ message: '#^Parameter \#1 \$id of method Automattic\\WooCommerce\\Container\:\:get\(\) expects class\-string\<object\>, string given\.$#'
identifier: argument.type
count: 1
path: src/Internal/Fulfillments/FulfillmentsController.php
-
- message: '#^Call to function is_string\(\) with string will always evaluate to true\.$#'
- identifier: function.alreadyNarrowedType
- count: 2
- path: src/Internal/Fulfillments/FulfillmentsManager.php
+ message: '#^Unable to resolve the template type T in call to method Automattic\\WooCommerce\\Container\:\:get\(\)$#'
+ identifier: argument.templateType
+ count: 1
+ path: src/Internal/Fulfillments/FulfillmentsController.php
-
- message: '#^Cannot call method read_fulfillments\(\) on mixed\.$#'
- identifier: method.nonObject
+ message: '#^Call to function is_string\(\) with string will always evaluate to true\.$#'
+ identifier: function.alreadyNarrowedType
count: 2
path: src/Internal/Fulfillments/FulfillmentsManager.php
@@ -92166,12 +90888,6 @@ parameters:
count: 1
path: src/Internal/Fulfillments/FulfillmentsRenderer.php
- -
- message: '#^Cannot call method read_fulfillments\(\) on mixed\.$#'
- identifier: method.nonObject
- count: 1
- path: src/Internal/Fulfillments/FulfillmentsRenderer.php
-
-
message: '#^Method Automattic\\WooCommerce\\Internal\\Fulfillments\\FulfillmentsRenderer\:\:filter_legacy_orders_list_query\(\) has no return type specified\.$#'
identifier: missingType.return
@@ -92298,12 +91014,6 @@ parameters:
count: 1
path: src/Internal/Fulfillments/FulfillmentsRenderer.php
- -
- message: '#^Cannot call method read_fulfillments\(\) on mixed\.$#'
- identifier: method.nonObject
- count: 1
- path: src/Internal/Fulfillments/FulfillmentsSettings.php
-
-
message: '#^Method Automattic\\WooCommerce\\Internal\\Fulfillments\\FulfillmentsSettings\:\:init_settings_auto_fulfill\(\) has no return type specified\.$#'
identifier: missingType.return
@@ -92352,12 +91062,6 @@ parameters:
count: 1
path: src/Internal/Fulfillments/OrderFulfillmentsRestController.php
- -
- message: '#^Cannot call method read_fulfillments\(\) on mixed\.$#'
- identifier: method.nonObject
- count: 1
- path: src/Internal/Fulfillments/OrderFulfillmentsRestController.php
-
-
message: '#^Method Automattic\\WooCommerce\\Internal\\Fulfillments\\OrderFulfillmentsRestController\:\:check_permission_for_fulfillments\(\) has parameter \$request with generic class WP_REST_Request but does not specify its types\: T$#'
identifier: missingType.generics
@@ -92718,18 +91422,6 @@ parameters:
count: 1
path: src/Internal/Logging/RemoteLogger.php
- -
- message: '#^Cannot call method add\(\) on mixed\.$#'
- identifier: method.nonObject
- count: 1
- path: src/Internal/Logging/RemoteLogger.php
-
- -
- message: '#^Cannot call method do_server_side_stats\(\) on mixed\.$#'
- identifier: method.nonObject
- count: 1
- path: src/Internal/Logging/RemoteLogger.php
-
-
message: '#^Constant WC_ABSPATH not found\.$#'
identifier: constant.notFound
@@ -92844,12 +91536,6 @@ parameters:
count: 1
path: src/Internal/MCP/MCPAdapterProvider.php
- -
- message: '#^Cannot call method get_abilities_ids\(\) on mixed\.$#'
- identifier: method.nonObject
- count: 1
- path: src/Internal/MCP/MCPAdapterProvider.php
-
-
message: '#^Parameter \#1 \$str of function sanitize_text_field expects string, mixed given\.$#'
identifier: argument.type
@@ -92874,24 +91560,6 @@ parameters:
count: 1
path: src/Internal/MCP/Transport/WooCommerceRestTransport.php
- -
- message: '#^Cannot call method enqueue_processor\(\) on mixed\.$#'
- identifier: method.nonObject
- count: 1
- path: src/Internal/OrderCouponDataMigrator.php
-
- -
- message: '#^Cannot call method is_enqueued\(\) on mixed\.$#'
- identifier: method.nonObject
- count: 3
- path: src/Internal/OrderCouponDataMigrator.php
-
- -
- message: '#^Cannot call method remove_processor\(\) on mixed\.$#'
- identifier: method.nonObject
- count: 1
- path: src/Internal/OrderCouponDataMigrator.php
-
-
message: '#^Method Automattic\\WooCommerce\\Internal\\OrderCouponDataMigrator\:\:convert_item\(\) has no return type specified\.$#'
identifier: missingType.return
@@ -93534,18 +92202,6 @@ parameters:
count: 1
path: src/Internal/ProductAttributesLookup/CLIRunner.php
- -
- message: '#^Property Automattic\\WooCommerce\\Internal\\ProductAttributesLookup\\CLIRunner\:\:\$data_regenerator \(Automattic\\WooCommerce\\Internal\\ProductAttributesLookup\\DataRegenerator\) does not accept mixed\.$#'
- identifier: assign.propertyType
- count: 1
- path: src/Internal/ProductAttributesLookup/CLIRunner.php
-
- -
- message: '#^Property Automattic\\WooCommerce\\Internal\\ProductAttributesLookup\\CLIRunner\:\:\$lookup_data_store \(Automattic\\WooCommerce\\Internal\\ProductAttributesLookup\\LookupDataStore\) does not accept mixed\.$#'
- identifier: assign.propertyType
- count: 1
- path: src/Internal/ProductAttributesLookup/CLIRunner.php
-
-
message: '#^Access to constant STATUS_PENDING on an unknown class ActionScheduler_Store\.$#'
identifier: class.notFound
@@ -93588,30 +92244,6 @@ parameters:
count: 1
path: src/Internal/ProductAttributesLookup/DataRegenerator.php
- -
- message: '#^Cannot call method create_primary_key\(\) on mixed\.$#'
- identifier: method.nonObject
- count: 1
- path: src/Internal/ProductAttributesLookup/DataRegenerator.php
-
- -
- message: '#^Cannot call method dbdelta\(\) on mixed\.$#'
- identifier: method.nonObject
- count: 1
- path: src/Internal/ProductAttributesLookup/DataRegenerator.php
-
- -
- message: '#^Cannot call method drop_table_index\(\) on mixed\.$#'
- identifier: method.nonObject
- count: 1
- path: src/Internal/ProductAttributesLookup/DataRegenerator.php
-
- -
- message: '#^Cannot call method get_index_columns\(\) on mixed\.$#'
- identifier: method.nonObject
- count: 2
- path: src/Internal/ProductAttributesLookup/DataRegenerator.php
-
-
message: '#^Cannot cast mixed to int\.$#'
identifier: cast.int
@@ -94050,30 +92682,6 @@ parameters:
count: 1
path: src/Internal/ProductAttributesLookup/LookupDataStore.php
- -
- message: '#^Cannot call method get_progress\(\) on mixed\.$#'
- identifier: method.nonObject
- count: 1
- path: src/Internal/ProductDownloads/ApprovedDirectories/Admin/SyncUI.php
-
- -
- message: '#^Cannot call method in_progress\(\) on mixed\.$#'
- identifier: method.nonObject
- count: 1
- path: src/Internal/ProductDownloads/ApprovedDirectories/Admin/SyncUI.php
-
- -
- message: '#^Cannot call method start\(\) on mixed\.$#'
- identifier: method.nonObject
- count: 1
- path: src/Internal/ProductDownloads/ApprovedDirectories/Admin/SyncUI.php
-
- -
- message: '#^Cannot call method stop\(\) on mixed\.$#'
- identifier: method.nonObject
- count: 1
- path: src/Internal/ProductDownloads/ApprovedDirectories/Admin/SyncUI.php
-
-
message: '#^Method Automattic\\WooCommerce\\Internal\\ProductDownloads\\ApprovedDirectories\\Admin\\SyncUI\:\:cancel_sync\(\) has no return type specified\.$#'
identifier: missingType.return
@@ -94110,18 +92718,6 @@ parameters:
count: 1
path: src/Internal/ProductDownloads/ApprovedDirectories/Admin/SyncUI.php
- -
- message: '#^Cannot call method count\(\) on mixed\.$#'
- identifier: method.nonObject
- count: 4
- path: src/Internal/ProductDownloads/ApprovedDirectories/Admin/Table.php
-
- -
- message: '#^Cannot call method list\(\) on mixed\.$#'
- identifier: method.nonObject
- count: 1
- path: src/Internal/ProductDownloads/ApprovedDirectories/Admin/Table.php
-
-
message: '#^Method Automattic\\WooCommerce\\Internal\\ProductDownloads\\ApprovedDirectories\\Admin\\Table\:\:display_tablenav\(\) has no return type specified\.$#'
identifier: missingType.return
@@ -94176,36 +92772,6 @@ parameters:
count: 1
path: src/Internal/ProductDownloads/ApprovedDirectories/Admin/Table.php
- -
- message: '#^Cannot call method delete_by_id\(\) on mixed\.$#'
- identifier: method.nonObject
- count: 1
- path: src/Internal/ProductDownloads/ApprovedDirectories/Admin/UI.php
-
- -
- message: '#^Cannot call method disable_all\(\) on mixed\.$#'
- identifier: method.nonObject
- count: 1
- path: src/Internal/ProductDownloads/ApprovedDirectories/Admin/UI.php
-
- -
- message: '#^Cannot call method disable_by_id\(\) on mixed\.$#'
- identifier: method.nonObject
- count: 1
- path: src/Internal/ProductDownloads/ApprovedDirectories/Admin/UI.php
-
- -
- message: '#^Cannot call method enable_all\(\) on mixed\.$#'
- identifier: method.nonObject
- count: 1
- path: src/Internal/ProductDownloads/ApprovedDirectories/Admin/UI.php
-
- -
- message: '#^Cannot call method enable_by_id\(\) on mixed\.$#'
- identifier: method.nonObject
- count: 1
- path: src/Internal/ProductDownloads/ApprovedDirectories/Admin/UI.php
-
-
message: '#^Cannot cast mixed to int\.$#'
identifier: cast.int
@@ -94320,12 +92886,6 @@ parameters:
count: 1
path: src/Internal/ProductDownloads/ApprovedDirectories/Admin/UI.php
- -
- message: '#^Cannot call method init_hooks\(\) on mixed\.$#'
- identifier: method.nonObject
- count: 3
- path: src/Internal/ProductDownloads/ApprovedDirectories/Register.php
-
-
message: '#^Method Automattic\\WooCommerce\\Internal\\ProductDownloads\\ApprovedDirectories\\Register\:\:init\(\) has no return type specified\.$#'
identifier: missingType.return
@@ -94512,12 +93072,6 @@ parameters:
count: 1
path: src/Internal/ProductFilters/FilterDataProvider.php
- -
- message: '#^Cannot call method get_lookup_table_name\(\) on mixed\.$#'
- identifier: method.nonObject
- count: 1
- path: src/Internal/ProductFilters/QueryClauses.php
-
-
message: '#^Parameter \#1 \$args of function get_terms expects array\{taxonomy\?\: array\<string\>\|string, object_ids\?\: array\<int\>\|int, orderby\?\: string, order\?\: string, hide_empty\?\: bool\|int, include\?\: array\<int\>\|string, exclude\?\: array\<int\>\|string, exclude_tree\?\: array\<int\>\|string, \.\.\.\}, array\{taxonomy\: non\-empty\-list\<\(int\|string\)\>, slug\: array\<mixed\>, hide_empty\: false\} given\.$#'
identifier: argument.type
@@ -94699,13 +93253,7 @@ parameters:
path: src/Internal/PushNotifications/Entities/PushToken.php
-
- message: '#^Cannot call method call_function\(\) on mixed\.$#'
- identifier: method.nonObject
- count: 1
- path: src/Internal/PushNotifications/PushNotifications.php
-
- -
- message: '#^Cannot call method get_instance_of\(\) on mixed\.$#'
+ message: '#^Cannot call method error\(\) on mixed\.$#'
identifier: method.nonObject
count: 1
path: src/Internal/PushNotifications/PushNotifications.php
@@ -94854,24 +93402,6 @@ parameters:
count: 1
path: src/Internal/ReceiptRendering/ReceiptRenderingEngine.php
- -
- message: '#^Cannot call method generate_receipt\(\) on mixed\.$#'
- identifier: method.nonObject
- count: 1
- path: src/Internal/ReceiptRendering/ReceiptRenderingRestController.php
-
- -
- message: '#^Cannot call method get_existing_receipt\(\) on mixed\.$#'
- identifier: method.nonObject
- count: 1
- path: src/Internal/ReceiptRendering/ReceiptRenderingRestController.php
-
- -
- message: '#^Cannot call method get_public_url\(\) on mixed\.$#'
- identifier: method.nonObject
- count: 1
- path: src/Internal/ReceiptRendering/ReceiptRenderingRestController.php
-
-
message: '#^Method Automattic\\WooCommerce\\Internal\\ReceiptRendering\\ReceiptRenderingRestController\:\:create_order_receipt\(\) has parameter \$request with generic class WP_REST_Request but does not specify its types\: T$#'
identifier: missingType.generics
@@ -95874,18 +94404,6 @@ parameters:
count: 1
path: src/Internal/RestApi/Routes/V4/Orders/Schema/OrderItemSchema.php
- -
- message: '#^Cannot call method call_function\(\) on mixed\.$#'
- identifier: method.nonObject
- count: 1
- path: src/Internal/RestApi/Routes/V4/Orders/Schema/OrderItemSchema.php
-
- -
- message: '#^Cannot call method feature_is_enabled\(\) on mixed\.$#'
- identifier: method.nonObject
- count: 1
- path: src/Internal/RestApi/Routes/V4/Orders/Schema/OrderItemSchema.php
-
-
message: '#^Cannot unset offset ''cogs_value'' on array\{id\: int, name\: string, image\: string, product_id\: int, product_data\: array\|null, quantity\: int, price\: mixed, tax_class\: string, \.\.\.\}\.$#'
identifier: unset.offset
@@ -95922,18 +94440,6 @@ parameters:
count: 1
path: src/Internal/RestApi/Routes/V4/Orders/Schema/OrderItemSchema.php
- -
- message: '#^Cannot call method call_function\(\) on mixed\.$#'
- identifier: method.nonObject
- count: 1
- path: src/Internal/RestApi/Routes/V4/Orders/Schema/OrderSchema.php
-
- -
- message: '#^Cannot call method feature_is_enabled\(\) on mixed\.$#'
- identifier: method.nonObject
- count: 1
- path: src/Internal/RestApi/Routes/V4/Orders/Schema/OrderSchema.php
-
-
message: '#^Method Automattic\\WooCommerce\\Internal\\RestApi\\Routes\\V4\\Orders\\Schema\\OrderSchema\:\:get_item_response\(\) has parameter \$request with generic class WP_REST_Request but does not specify its types\: T$#'
identifier: missingType.generics
@@ -96072,18 +94578,6 @@ parameters:
count: 1
path: src/Internal/RestApi/Routes/V4/Orders/UpdateUtils.php
- -
- message: '#^Cannot call method call_function\(\) on mixed\.$#'
- identifier: method.nonObject
- count: 1
- path: src/Internal/RestApi/Routes/V4/Orders/UpdateUtils.php
-
- -
- message: '#^Cannot call method feature_is_enabled\(\) on mixed\.$#'
- identifier: method.nonObject
- count: 1
- path: src/Internal/RestApi/Routes/V4/Orders/UpdateUtils.php
-
-
message: '#^Cannot cast mixed to int\.$#'
identifier: cast.int
@@ -96510,18 +95004,6 @@ parameters:
count: 1
path: src/Internal/RestApi/Routes/V4/Products/Controller.php
- -
- message: '#^Cannot call method call_function\(\) on mixed\.$#'
- identifier: method.nonObject
- count: 1
- path: src/Internal/RestApi/Routes/V4/Products/Controller.php
-
- -
- message: '#^Cannot call method feature_is_enabled\(\) on mixed\.$#'
- identifier: method.nonObject
- count: 1
- path: src/Internal/RestApi/Routes/V4/Products/Controller.php
-
-
message: '#^Cannot call method get_type\(\) on object\|false\|null\.$#'
identifier: method.nonObject
@@ -97356,18 +95838,6 @@ parameters:
count: 1
path: src/Internal/RestApi/Routes/V4/Refunds/Schema/RefundSchema.php
- -
- message: '#^Cannot call method call_function\(\) on mixed\.$#'
- identifier: method.nonObject
- count: 1
- path: src/Internal/RestApi/Routes/V4/Refunds/Schema/RefundSchema.php
-
- -
- message: '#^Cannot call method feature_is_enabled\(\) on mixed\.$#'
- identifier: method.nonObject
- count: 1
- path: src/Internal/RestApi/Routes/V4/Refunds/Schema/RefundSchema.php
-
-
message: '#^Method Automattic\\WooCommerce\\Internal\\RestApi\\Routes\\V4\\Refunds\\Schema\\RefundSchema\:\:get_item_response\(\) has parameter \$request with generic class WP_REST_Request but does not specify its types\: T$#'
identifier: missingType.generics
@@ -99192,12 +97662,6 @@ parameters:
count: 1
path: src/Internal/RestockRefundedItemsAdjuster.php
- -
- message: '#^Cannot call method get_instance_of\(\) on mixed\.$#'
- identifier: method.nonObject
- count: 1
- path: src/Internal/RestockRefundedItemsAdjuster.php
-
-
message: '#^Cannot call method get_qty_refunded_for_item\(\) on bool\|WC_Order\|WC_Order_Refund\.$#'
identifier: method.nonObject
@@ -99228,6 +97692,12 @@ parameters:
count: 1
path: src/Internal/RestockRefundedItemsAdjuster.php
+ -
+ message: '#^Property Automattic\\WooCommerce\\Internal\\RestockRefundedItemsAdjuster\:\:\$order_factory \(Automattic\\WooCommerce\\Internal\\WC_Order_Factory\) does not accept WC_Order_Factory\.$#'
+ identifier: assign.propertyType
+ count: 1
+ path: src/Internal/RestockRefundedItemsAdjuster.php
+
-
message: '#^Property Automattic\\WooCommerce\\Internal\\RestockRefundedItemsAdjuster\:\:\$order_factory has unknown class Automattic\\WooCommerce\\Internal\\WC_Order_Factory as its type\.$#'
identifier: class.notFound
@@ -99486,18 +97956,6 @@ parameters:
count: 1
path: src/Internal/StockNotifications/Admin/NotificationEditPage.php
- -
- message: '#^Cannot call method prepare_items\(\) on mixed\.$#'
- identifier: method.nonObject
- count: 1
- path: src/Internal/StockNotifications/Admin/NotificationsPage.php
-
- -
- message: '#^Cannot call method process_actions\(\) on mixed\.$#'
- identifier: method.nonObject
- count: 1
- path: src/Internal/StockNotifications/Admin/NotificationsPage.php
-
-
message: '#^Method Automattic\\WooCommerce\\Internal\\StockNotifications\\Admin\\NotificationsPage\:\:create\(\) has no return type specified\.$#'
identifier: missingType.return
@@ -100434,12 +98892,6 @@ parameters:
count: 1
path: src/Internal/StockNotifications/Privacy/PrivacyEraser.php
- -
- message: '#^Cannot call method on_woo_install_or_update\(\) on mixed\.$#'
- identifier: method.nonObject
- count: 1
- path: src/Internal/StockNotifications/StockNotifications.php
-
-
message: '#^Method Automattic\\WooCommerce\\Internal\\StockNotifications\\StockNotifications\:\:init_hooks\(\) has no return type specified\.$#'
identifier: missingType.return
@@ -100488,18 +98940,6 @@ parameters:
count: 1
path: src/Internal/TransientFiles/TransientFilesEngine.php
- -
- message: '#^Cannot call method call_function\(\) on mixed\.$#'
- identifier: method.nonObject
- count: 6
- path: src/Internal/TransientFiles/TransientFilesEngine.php
-
- -
- message: '#^Cannot call method exit\(\) on mixed\.$#'
- identifier: method.nonObject
- count: 4
- path: src/Internal/TransientFiles/TransientFilesEngine.php
-
-
message: '#^Cannot call method format\(\) on DateTime\|false\.$#'
identifier: method.nonObject
@@ -100759,9 +99199,9 @@ parameters:
path: src/Internal/Utilities/DatabaseUtil.php
-
- message: '#^Cannot call method call_function\(\) on mixed\.$#'
- identifier: method.nonObject
- count: 2
+ message: '#^Method Automattic\\WooCommerce\\Internal\\Utilities\\FilesystemUtil\:\:get_wp_filesystem_method_or_direct\(\) should return string\|false but returns mixed\.$#'
+ identifier: return.type
+ count: 1
path: src/Internal/Utilities/FilesystemUtil.php
-
@@ -100902,12 +99342,6 @@ parameters:
count: 3
path: src/Internal/Utilities/PluginInstaller.php
- -
- message: '#^Cannot call method get_all_active_valid_plugins\(\) on mixed\.$#'
- identifier: method.nonObject
- count: 1
- path: src/Internal/Utilities/PluginInstaller.php
-
-
message: '#^Constant WC_ABSPATH not found\.$#'
identifier: constant.notFound
@@ -100981,7 +99415,7 @@ parameters:
path: src/Internal/Utilities/PluginInstaller.php
-
- message: '#^Cannot call method call_function\(\) on mixed\.$#'
+ message: '#^Cannot call method warning\(\) on mixed\.$#'
identifier: method.nonObject
count: 3
path: src/Internal/Utilities/PostMetaUtil.php
@@ -101088,12 +99522,6 @@ parameters:
count: 1
path: src/Internal/Utilities/Users.php
- -
- message: '#^Cannot call method call_function\(\) on mixed\.$#'
- identifier: method.nonObject
- count: 3
- path: src/Internal/Utilities/Users.php
-
-
message: '#^Cannot call method get_billing_email\(\) on bool\|WC_Order\|WC_Order_Refund\.$#'
identifier: method.nonObject
@@ -104760,12 +103188,6 @@ parameters:
count: 1
path: src/StoreApi/Utilities/OrderController.php
- -
- message: '#^Cannot call method find_user_ids_by_billing_email_for_coupons_usage_lookup\(\) on mixed\.$#'
- identifier: method.nonObject
- count: 1
- path: src/StoreApi/Utilities/OrderController.php
-
-
message: '#^Cannot call method get_data_store\(\) on bool\|WC_Order\|WC_Order_Refund\.$#'
identifier: method.nonObject
@@ -105084,12 +103506,6 @@ parameters:
count: 1
path: src/StoreApi/Utilities/ProductQuery.php
- -
- message: '#^Cannot call method with\(\) on mixed\.$#'
- identifier: method.nonObject
- count: 1
- path: src/StoreApi/Utilities/ProductQueryFilters.php
-
-
message: '#^Cannot unset offset ''outofstock'' on list\<string\>\.$#'
identifier: unset.offset
@@ -105288,84 +103704,6 @@ parameters:
count: 1
path: src/Utilities/ArrayUtil.php
- -
- message: '#^Cannot call method allow_activating_plugins_with_incompatible_features\(\) on mixed\.$#'
- identifier: method.nonObject
- count: 1
- path: src/Utilities/FeaturesUtil.php
-
- -
- message: '#^Cannot call method allow_enabling_features_with_incompatible_plugins\(\) on mixed\.$#'
- identifier: method.nonObject
- count: 1
- path: src/Utilities/FeaturesUtil.php
-
- -
- message: '#^Cannot call method declare_compatibility\(\) on mixed\.$#'
- identifier: method.nonObject
- count: 1
- path: src/Utilities/FeaturesUtil.php
-
- -
- message: '#^Cannot call method feature_is_enabled\(\) on mixed\.$#'
- identifier: method.nonObject
- count: 1
- path: src/Utilities/FeaturesUtil.php
-
- -
- message: '#^Cannot call method get_compatible_features_for_plugin\(\) on mixed\.$#'
- identifier: method.nonObject
- count: 1
- path: src/Utilities/FeaturesUtil.php
-
- -
- message: '#^Cannot call method get_compatible_plugins_for_feature\(\) on mixed\.$#'
- identifier: method.nonObject
- count: 1
- path: src/Utilities/FeaturesUtil.php
-
- -
- message: '#^Cannot call method get_features\(\) on mixed\.$#'
- identifier: method.nonObject
- count: 1
- path: src/Utilities/FeaturesUtil.php
-
- -
- message: '#^Cannot call method get_default_handler\(\) on mixed\.$#'
- identifier: method.nonObject
- count: 1
- path: src/Utilities/LoggingUtil.php
-
- -
- message: '#^Cannot call method get_level_threshold\(\) on mixed\.$#'
- identifier: method.nonObject
- count: 1
- path: src/Utilities/LoggingUtil.php
-
- -
- message: '#^Cannot call method get_log_directory_size\(\) on mixed\.$#'
- identifier: method.nonObject
- count: 1
- path: src/Utilities/LoggingUtil.php
-
- -
- message: '#^Cannot call method get_logs_tab_url\(\) on mixed\.$#'
- identifier: method.nonObject
- count: 1
- path: src/Utilities/LoggingUtil.php
-
- -
- message: '#^Cannot call method get_retention_period\(\) on mixed\.$#'
- identifier: method.nonObject
- count: 1
- path: src/Utilities/LoggingUtil.php
-
- -
- message: '#^Cannot call method logging_is_enabled\(\) on mixed\.$#'
- identifier: method.nonObject
- count: 1
- path: src/Utilities/LoggingUtil.php
-
-
message: '#^Constant WC_ROUNDING_PRECISION not found\.$#'
identifier: constant.notFound
@@ -105396,96 +103734,6 @@ parameters:
count: 1
path: src/Utilities/NumberUtil.php
- -
- message: '#^Cannot call method custom_orders_table_usage_is_enabled\(\) on mixed\.$#'
- identifier: method.nonObject
- count: 1
- path: src/Utilities/OrderUtil.php
-
- -
- message: '#^Cannot call method get_edit_url\(\) on mixed\.$#'
- identifier: method.nonObject
- count: 1
- path: src/Utilities/OrderUtil.php
-
- -
- message: '#^Cannot call method get_new_page_url\(\) on mixed\.$#'
- identifier: method.nonObject
- count: 1
- path: src/Utilities/OrderUtil.php
-
- -
- message: '#^Cannot call method get_order_admin_screen\(\) on mixed\.$#'
- identifier: method.nonObject
- count: 1
- path: src/Utilities/OrderUtil.php
-
- -
- message: '#^Cannot call method get_order_type\(\) on mixed\.$#'
- identifier: method.nonObject
- count: 1
- path: src/Utilities/OrderUtil.php
-
- -
- message: '#^Cannot call method get_post_or_object_meta\(\) on mixed\.$#'
- identifier: method.nonObject
- count: 1
- path: src/Utilities/OrderUtil.php
-
- -
- message: '#^Cannot call method get_post_or_order_id\(\) on mixed\.$#'
- identifier: method.nonObject
- count: 1
- path: src/Utilities/OrderUtil.php
-
- -
- message: '#^Cannot call method get_table_for_order_meta\(\) on mixed\.$#'
- identifier: method.nonObject
- count: 1
- path: src/Utilities/OrderUtil.php
-
- -
- message: '#^Cannot call method get_table_for_orders\(\) on mixed\.$#'
- identifier: method.nonObject
- count: 1
- path: src/Utilities/OrderUtil.php
-
- -
- message: '#^Cannot call method hpos_data_caching_is_enabled\(\) on mixed\.$#'
- identifier: method.nonObject
- count: 1
- path: src/Utilities/OrderUtil.php
-
- -
- message: '#^Cannot call method init_theorder_object\(\) on mixed\.$#'
- identifier: method.nonObject
- count: 1
- path: src/Utilities/OrderUtil.php
-
- -
- message: '#^Cannot call method is_custom_order_tables_in_sync\(\) on mixed\.$#'
- identifier: method.nonObject
- count: 1
- path: src/Utilities/OrderUtil.php
-
- -
- message: '#^Cannot call method is_order\(\) on mixed\.$#'
- identifier: method.nonObject
- count: 1
- path: src/Utilities/OrderUtil.php
-
- -
- message: '#^Cannot call method is_order_screen\(\) on mixed\.$#'
- identifier: method.nonObject
- count: 3
- path: src/Utilities/OrderUtil.php
-
- -
- message: '#^Cannot call method orders_cache_usage_is_enabled\(\) on mixed\.$#'
- identifier: method.nonObject
- count: 1
- path: src/Utilities/OrderUtil.php
-
-
message: '#^Method Automattic\\WooCommerce\\Utilities\\OrderUtil\:\:get_post_or_order_id\(\) has parameter \$post_or_order_object with no type specified\.$#'
identifier: missingType.parameter
@@ -105498,6 +103746,12 @@ parameters:
count: 1
path: src/Utilities/OrderUtil.php
+ -
+ message: '#^Method Automattic\\WooCommerce\\Utilities\\OrderUtil\:\:init_theorder_object\(\) should return Automattic\\WooCommerce\\Utilities\\WC_Order_Refund\|bool\|WC_Order but returns Automattic\\WooCommerce\\Internal\\Utilities\\WC_Order_Refund\|bool\|WC_Order\.$#'
+ identifier: return.type
+ count: 1
+ path: src/Utilities/OrderUtil.php
+
-
message: '#^PHPDoc tag @param has invalid value \(WP_Post/WC_Order \$post_or_order_object WP_Post/WC_Order object to get ID for\.\)\: Unexpected token "/WC_Order", expected variable at offset 82 on line 4$#'
identifier: phpDoc.parseError
@@ -105516,12 +103770,6 @@ parameters:
count: 1
path: src/Utilities/PluginUtil.php
- -
- message: '#^Cannot call method get_default_plugin_compatibility\(\) on mixed\.$#'
- identifier: method.nonObject
- count: 1
- path: src/Utilities/PluginUtil.php
-
-
message: '#^Constant WPINC not found\.$#'
identifier: constant.notFound
diff --git a/plugins/woocommerce/src/Container.php b/plugins/woocommerce/src/Container.php
index 92df9fb8d1..62a6bb0248 100644
--- a/plugins/woocommerce/src/Container.php
+++ b/plugins/woocommerce/src/Container.php
@@ -55,10 +55,11 @@ final class Container {
* Returns an instance of the specified class.
* See the comment about ContainerException in RuntimeContainer::get.
*
- * @template T
- * @param string|class-string<T> $id Class name.
+ * @template T of object
+ * @param string $id Class name.
+ * @phpstan-param class-string<T> $id
*
- * @return T|object Object instance.
+ * @return T Object instance.
*
* @throws ContainerException Error when resolving the class to an object instance, or class not found.
* @throws \Exception Exception thrown in the constructor or in the 'init' method of one of the resolved classes.
diff --git a/plugins/woocommerce/src/Internal/DependencyManagement/RuntimeContainer.php b/plugins/woocommerce/src/Internal/DependencyManagement/RuntimeContainer.php
index caf7adbdc2..bffb7d09a0 100644
--- a/plugins/woocommerce/src/Internal/DependencyManagement/RuntimeContainer.php
+++ b/plugins/woocommerce/src/Internal/DependencyManagement/RuntimeContainer.php
@@ -63,15 +63,18 @@ class RuntimeContainer {
*
* Note that this method throwing ContainerException implies that code fixes are needed, it's not an error condition that's recoverable at runtime.
*
- * @param string $class_name The class name.
+ * @template T of object
+ * @param string $class_name Class name.
+ * @phpstan-param class-string<T> $class_name
*
- * @return object The instance of the requested class.
+ * @return T Object instance.
* @throws ContainerException Error when resolving the class to an object instance.
* @throws \Exception Exception thrown in the constructor or in the 'init' method of one of the resolved classes.
*/
public function get( string $class_name ) {
$class_name = trim( $class_name, '\\' );
$resolve_chain = array();
+ // @phpstan-ignore return.type (get_core uses reflection to instantiate the correct class type at runtime)
return $this->get_core( $class_name, $resolve_chain );
}
diff --git a/plugins/woocommerce/src/Proxies/LegacyProxy.php b/plugins/woocommerce/src/Proxies/LegacyProxy.php
index f9a41cb4fc..7d4f1e1507 100644
--- a/plugins/woocommerce/src/Proxies/LegacyProxy.php
+++ b/plugins/woocommerce/src/Proxies/LegacyProxy.php
@@ -27,10 +27,12 @@ class LegacyProxy {
* method are retrieved, similar approaches can be used as needed to make use
* of existing factory methods such as e.g. 'load'.
*
- * @param string $class_name The name of the class to get an instance for.
- * @param mixed ...$args Parameters to be passed to the class constructor or to the appropriate internal 'get_instance_of_' method.
+ * @template T of object
+ * @param string $class_name Class name.
+ * @phpstan-param class-string<T> $class_name
+ * @param mixed ...$args Parameters to be passed to the class constructor or to the appropriate internal 'get_instance_of_' method.
*
- * @return object The instance of the class.
+ * @return T The instance of the class.
* @throws \Exception The requested class has a namespace starting with ' Automattic\WooCommerce', or there was an error creating an instance of the class.
*/
public function get_instance_of( string $class_name, ...$args ) {