Commit 6108707f59 for woocommerce
commit 6108707f596a95694ce16e75339f8780f7aef702
Author: Michael Pretty <prettyboymp@users.noreply.github.com>
Date: Sat Feb 7 00:55:44 2026 -0500
Add @return PHPDoc annotations (batch 2) - reduces baseline by 264 errors (#63148)
* Add @return PHPDoc annotations to reduce PHPStan baseline (batch 2)
Adds missing @return type annotations to 262 methods across 6 files:
- abstract-wc-product.php (55 methods)
- class-wc-install.php (45 methods)
- class-wc-admin-setup-wizard.php (45 methods)
- class-wc-order.php (42 methods)
- class-wc-customer.php (40 methods)
- class-wc-cart.php (35 methods)
PHPStan baseline reduction: 16,767 → 16,503 (-264 errors)
Part of: WOOPRD-2129
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
diff --git a/plugins/woocommerce/changelog/fix-phpstan-return-types-batch-2 b/plugins/woocommerce/changelog/fix-phpstan-return-types-batch-2
new file mode 100644
index 0000000000..92f659a98f
--- /dev/null
+++ b/plugins/woocommerce/changelog/fix-phpstan-return-types-batch-2
@@ -0,0 +1,4 @@
+Significance: patch
+Type: dev
+
+Add missing @return PHPDoc annotations to 6 files, reducing PHPStan baseline by 278 errors (batch 2).
diff --git a/plugins/woocommerce/includes/abstracts/abstract-wc-product.php b/plugins/woocommerce/includes/abstracts/abstract-wc-product.php
index 3cb8eea96f..d9d6587df4 100644
--- a/plugins/woocommerce/includes/abstracts/abstract-wc-product.php
+++ b/plugins/woocommerce/includes/abstracts/abstract-wc-product.php
@@ -754,6 +754,7 @@ class WC_Product extends WC_Abstract_Legacy_Product {
*
* @since 3.0.0
* @param string $name Product name.
+ * @return void
*/
public function set_name( $name ) {
$this->set_prop( 'name', $name );
@@ -764,6 +765,7 @@ class WC_Product extends WC_Abstract_Legacy_Product {
*
* @since 3.0.0
* @param string $slug Product slug.
+ * @return void
*/
public function set_slug( $slug ) {
$this->set_prop( 'slug', $slug );
@@ -774,6 +776,7 @@ class WC_Product extends WC_Abstract_Legacy_Product {
*
* @since 3.0.0
* @param string|integer|null $date UTC timestamp, or ISO 8601 DateTime. If the DateTime string has no timezone or offset, WordPress site timezone will be assumed. Null if their is no date.
+ * @return void
*/
public function set_date_created( $date = null ) {
$this->set_date_prop( 'date_created', $date );
@@ -784,6 +787,7 @@ class WC_Product extends WC_Abstract_Legacy_Product {
*
* @since 3.0.0
* @param string|integer|null $date UTC timestamp, or ISO 8601 DateTime. If the DateTime string has no timezone or offset, WordPress site timezone will be assumed. Null if their is no date.
+ * @return void
*/
public function set_date_modified( $date = null ) {
$this->set_date_prop( 'date_modified', $date );
@@ -794,6 +798,7 @@ class WC_Product extends WC_Abstract_Legacy_Product {
*
* @since 3.0.0
* @param string $status Product status.
+ * @return void
*/
public function set_status( $status ) {
$this->set_prop( 'status', $status );
@@ -804,6 +809,7 @@ class WC_Product extends WC_Abstract_Legacy_Product {
*
* @since 3.0.0
* @param bool|string $featured Whether the product is featured or not.
+ * @return void
*/
public function set_featured( $featured ) {
$this->set_prop( 'featured', wc_string_to_bool( $featured ) );
@@ -815,6 +821,7 @@ class WC_Product extends WC_Abstract_Legacy_Product {
* @since 3.0.0
* @throws WC_Data_Exception Throws exception when invalid data is found.
* @param string $visibility Options: 'hidden', 'visible', 'search' and 'catalog'.
+ * @return void
*/
public function set_catalog_visibility( $visibility ) {
$options = array_keys( wc_get_product_visibility_options() );
@@ -831,6 +838,7 @@ class WC_Product extends WC_Abstract_Legacy_Product {
*
* @since 3.0.0
* @param string $description Product description.
+ * @return void
*/
public function set_description( $description ) {
$this->set_prop( 'description', $description );
@@ -841,6 +849,7 @@ class WC_Product extends WC_Abstract_Legacy_Product {
*
* @since 3.0.0
* @param string $short_description Product short description.
+ * @return void
*/
public function set_short_description( $short_description ) {
$this->set_prop( 'short_description', $short_description );
@@ -852,6 +861,7 @@ class WC_Product extends WC_Abstract_Legacy_Product {
* @since 3.0.0
* @throws WC_Data_Exception Throws exception when invalid data is found.
* @param string $sku Product SKU.
+ * @return void
*/
public function set_sku( $sku ) {
$sku = (string) $sku;
@@ -876,6 +886,7 @@ class WC_Product extends WC_Abstract_Legacy_Product {
*
* @since 9.1.0
* @param string $global_unique_id Unique ID.
+ * @return void
*/
public function set_global_unique_id( $global_unique_id ) {
$global_unique_id = preg_replace( '/[^0-9\-]/', '', (string) $global_unique_id );
@@ -898,6 +909,7 @@ class WC_Product extends WC_Abstract_Legacy_Product {
* Set the product's active price.
*
* @param string $price Price.
+ * @return void
*/
public function set_price( $price ) {
$this->set_prop( 'price', wc_format_decimal( $price ) );
@@ -908,6 +920,7 @@ class WC_Product extends WC_Abstract_Legacy_Product {
*
* @since 3.0.0
* @param string $price Regular price.
+ * @return void
*/
public function set_regular_price( $price ) {
$this->set_prop( 'regular_price', wc_format_decimal( $price ) );
@@ -918,6 +931,7 @@ class WC_Product extends WC_Abstract_Legacy_Product {
*
* @since 3.0.0
* @param string $price sale price.
+ * @return void
*/
public function set_sale_price( $price ) {
$this->set_prop( 'sale_price', wc_format_decimal( $price ) );
@@ -928,6 +942,7 @@ class WC_Product extends WC_Abstract_Legacy_Product {
*
* @since 3.0.0
* @param string|integer|null $date UTC timestamp, or ISO 8601 DateTime. If the DateTime string has no timezone or offset, WordPress site timezone will be assumed. Null if their is no date.
+ * @return void
*/
public function set_date_on_sale_from( $date = null ) {
$this->set_date_prop( 'date_on_sale_from', $date );
@@ -938,6 +953,7 @@ class WC_Product extends WC_Abstract_Legacy_Product {
*
* @since 3.0.0
* @param string|integer|null $date UTC timestamp, or ISO 8601 DateTime. If the DateTime string has no timezone or offset, WordPress site timezone will be assumed. Null if their is no date.
+ * @return void
*/
public function set_date_on_sale_to( $date = null ) {
$this->set_date_prop( 'date_on_sale_to', $date );
@@ -948,6 +964,7 @@ class WC_Product extends WC_Abstract_Legacy_Product {
*
* @since 3.0.0
* @param int $total Total of sales.
+ * @return void
*/
public function set_total_sales( $total ) {
$this->set_prop( 'total_sales', absint( $total ) );
@@ -959,6 +976,7 @@ class WC_Product extends WC_Abstract_Legacy_Product {
* @since 3.0.0
* @throws WC_Data_Exception Throws exception when invalid data is found.
* @param string $status Tax status.
+ * @return void
*/
public function set_tax_status( $status ) {
$options = array(
@@ -986,6 +1004,7 @@ class WC_Product extends WC_Abstract_Legacy_Product {
*
* @since 3.0.0
* @param string $class Tax class.
+ * @return void
*/
public function set_tax_class( $class ) {
$class = sanitize_title( $class );
@@ -1013,6 +1032,7 @@ class WC_Product extends WC_Abstract_Legacy_Product {
*
* @since 3.0.0
* @param bool $manage_stock Whether or not manage stock is enabled.
+ * @return void
*/
public function set_manage_stock( $manage_stock ) {
$this->set_prop( 'manage_stock', wc_string_to_bool( $manage_stock ) );
@@ -1023,6 +1043,7 @@ class WC_Product extends WC_Abstract_Legacy_Product {
*
* @since 3.0.0
* @param float|null $quantity Stock quantity.
+ * @return void
*/
public function set_stock_quantity( $quantity ) {
$this->set_prop( 'stock_quantity', '' !== $quantity ? wc_stock_amount( $quantity ) : null );
@@ -1032,6 +1053,7 @@ class WC_Product extends WC_Abstract_Legacy_Product {
* Set stock status.
*
* @param string $status New status.
+ * @return void
*/
public function set_stock_status( $status = ProductStockStatus::IN_STOCK ) {
$valid_statuses = wc_get_product_stock_status_options();
@@ -1048,6 +1070,7 @@ class WC_Product extends WC_Abstract_Legacy_Product {
*
* @since 3.0.0
* @param string $backorders Options: 'yes', 'no' or 'notify'.
+ * @return void
*/
public function set_backorders( $backorders ) {
$this->set_prop( 'backorders', $backorders );
@@ -1058,6 +1081,7 @@ class WC_Product extends WC_Abstract_Legacy_Product {
*
* @param int|string $amount Empty string if value not set.
* @since 3.5.0
+ * @return void
*/
public function set_low_stock_amount( $amount ) {
$this->set_prop( 'low_stock_amount', '' === $amount ? '' : absint( $amount ) );
@@ -1068,6 +1092,7 @@ class WC_Product extends WC_Abstract_Legacy_Product {
*
* @since 3.0.0
* @param bool $sold_individually Whether or not product is sold individually.
+ * @return void
*/
public function set_sold_individually( $sold_individually ) {
$this->set_prop( 'sold_individually', wc_string_to_bool( $sold_individually ) );
@@ -1078,6 +1103,7 @@ class WC_Product extends WC_Abstract_Legacy_Product {
*
* @since 3.0.0
* @param float|string $weight Total weight.
+ * @return void
*/
public function set_weight( $weight ) {
$this->set_prop( 'weight', '' === $weight ? '' : wc_format_decimal( $weight ) );
@@ -1088,6 +1114,7 @@ class WC_Product extends WC_Abstract_Legacy_Product {
*
* @since 3.0.0
* @param float|string $length Total length.
+ * @return void
*/
public function set_length( $length ) {
$this->set_prop( 'length', '' === $length ? '' : wc_format_decimal( $length ) );
@@ -1098,6 +1125,7 @@ class WC_Product extends WC_Abstract_Legacy_Product {
*
* @since 3.0.0
* @param float|string $width Total width.
+ * @return void
*/
public function set_width( $width ) {
$this->set_prop( 'width', '' === $width ? '' : wc_format_decimal( $width ) );
@@ -1108,6 +1136,7 @@ class WC_Product extends WC_Abstract_Legacy_Product {
*
* @since 3.0.0
* @param float|string $height Total height.
+ * @return void
*/
public function set_height( $height ) {
$this->set_prop( 'height', '' === $height ? '' : wc_format_decimal( $height ) );
@@ -1118,6 +1147,7 @@ class WC_Product extends WC_Abstract_Legacy_Product {
*
* @since 3.0.0
* @param array $upsell_ids IDs from the up-sell products.
+ * @return void
*/
public function set_upsell_ids( $upsell_ids ) {
$this->set_prop( 'upsell_ids', array_filter( (array) $upsell_ids ) );
@@ -1128,6 +1158,7 @@ class WC_Product extends WC_Abstract_Legacy_Product {
*
* @since 3.0.0
* @param array $cross_sell_ids IDs from the cross-sell products.
+ * @return void
*/
public function set_cross_sell_ids( $cross_sell_ids ) {
$this->set_prop( 'cross_sell_ids', array_filter( (array) $cross_sell_ids ) );
@@ -1138,6 +1169,7 @@ class WC_Product extends WC_Abstract_Legacy_Product {
*
* @since 3.0.0
* @param int $parent_id Product parent ID.
+ * @return void
*/
public function set_parent_id( $parent_id ) {
$this->set_prop( 'parent_id', absint( $parent_id ) );
@@ -1148,6 +1180,7 @@ class WC_Product extends WC_Abstract_Legacy_Product {
*
* @since 3.0.0
* @param bool $reviews_allowed Reviews allowed or not.
+ * @return void
*/
public function set_reviews_allowed( $reviews_allowed ) {
$this->set_prop( 'reviews_allowed', wc_string_to_bool( $reviews_allowed ) );
@@ -1158,6 +1191,7 @@ class WC_Product extends WC_Abstract_Legacy_Product {
*
* @since 3.0.0
* @param string $purchase_note Purchase note.
+ * @return void
*/
public function set_purchase_note( $purchase_note ) {
$this->set_prop( 'purchase_note', $purchase_note );
@@ -1177,6 +1211,7 @@ class WC_Product extends WC_Abstract_Legacy_Product {
*
* @since 3.0.0
* @param array $raw_attributes Array of WC_Product_Attribute objects.
+ * @return void
*/
public function set_attributes( $raw_attributes ) {
$attributes = array_fill_keys( array_keys( $this->get_attributes( 'edit' ) ), null );
@@ -1195,6 +1230,7 @@ class WC_Product extends WC_Abstract_Legacy_Product {
*
* @since 3.0.0
* @param array $default_attributes List of default attributes.
+ * @return void
*/
public function set_default_attributes( $default_attributes ) {
$this->set_prop( 'default_attributes', array_map( 'strval', array_filter( (array) $default_attributes, 'wc_array_filter_default_attributes' ) ) );
@@ -1205,6 +1241,7 @@ class WC_Product extends WC_Abstract_Legacy_Product {
*
* @since 3.0.0
* @param int $menu_order Menu order.
+ * @return void
*/
public function set_menu_order( $menu_order ) {
$this->set_prop( 'menu_order', intval( $menu_order ) );
@@ -1215,6 +1252,7 @@ class WC_Product extends WC_Abstract_Legacy_Product {
*
* @since 3.6.0
* @param int $post_password Post password.
+ * @return void
*/
public function set_post_password( $post_password ) {
$this->set_prop( 'post_password', $post_password );
@@ -1225,6 +1263,7 @@ class WC_Product extends WC_Abstract_Legacy_Product {
*
* @since 3.0.0
* @param array $term_ids List of terms IDs.
+ * @return void
*/
public function set_category_ids( $term_ids ) {
$this->set_prop( 'category_ids', array_unique( array_map( 'intval', $term_ids ) ) );
@@ -1235,6 +1274,7 @@ class WC_Product extends WC_Abstract_Legacy_Product {
*
* @since 3.0.0
* @param array $term_ids List of terms IDs.
+ * @return void
*/
public function set_tag_ids( $term_ids ) {
$this->set_prop( 'tag_ids', array_unique( array_map( 'intval', $term_ids ) ) );
@@ -1245,6 +1285,7 @@ class WC_Product extends WC_Abstract_Legacy_Product {
*
* @since 10.3.0
* @param array $term_ids List of terms IDs.
+ * @return void
*/
public function set_brand_ids( $term_ids ) {
$this->set_prop( 'brand_ids', array_unique( array_map( 'intval', $term_ids ) ) );
@@ -1255,6 +1296,7 @@ class WC_Product extends WC_Abstract_Legacy_Product {
*
* @since 3.0.0
* @param bool|string $virtual Whether product is virtual or not.
+ * @return void
*/
public function set_virtual( $virtual ) {
$this->set_prop( 'virtual', wc_string_to_bool( $virtual ) );
@@ -1265,6 +1307,7 @@ class WC_Product extends WC_Abstract_Legacy_Product {
*
* @since 3.0.0
* @param int $id Product shipping class id.
+ * @return void
*/
public function set_shipping_class_id( $id ) {
$this->set_prop( 'shipping_class_id', absint( $id ) );
@@ -1275,6 +1318,7 @@ class WC_Product extends WC_Abstract_Legacy_Product {
*
* @since 3.0.0
* @param bool|string $downloadable Whether product is downloadable or not.
+ * @return void
*/
public function set_downloadable( $downloadable ) {
$this->set_prop( 'downloadable', wc_string_to_bool( $downloadable ) );
@@ -1288,6 +1332,7 @@ class WC_Product extends WC_Abstract_Legacy_Product {
* @param array $downloads_array Array of WC_Product_Download objects or arrays.
*
* @since 3.0.0
+ * @return void
*/
public function set_downloads( $downloads_array ) {
// When the object is first hydrated, only the previously persisted downloads will be passed in.
@@ -1375,6 +1420,7 @@ class WC_Product extends WC_Abstract_Legacy_Product {
*
* @since 3.0.0
* @param int|string $download_limit Product download limit.
+ * @return void
*/
public function set_download_limit( $download_limit ) {
$this->set_prop( 'download_limit', -1 === (int) $download_limit || '' === $download_limit ? -1 : absint( $download_limit ) );
@@ -1385,6 +1431,7 @@ class WC_Product extends WC_Abstract_Legacy_Product {
*
* @since 3.0.0
* @param int|string $download_expiry Product download expiry.
+ * @return void
*/
public function set_download_expiry( $download_expiry ) {
$this->set_prop( 'download_expiry', -1 === (int) $download_expiry || '' === $download_expiry ? -1 : absint( $download_expiry ) );
@@ -1395,6 +1442,7 @@ class WC_Product extends WC_Abstract_Legacy_Product {
*
* @since 3.0.0
* @param array $image_ids List of image ids.
+ * @return void
*/
public function set_gallery_image_ids( $image_ids ) {
$image_ids = wp_parse_id_list( $image_ids );
@@ -1407,6 +1455,7 @@ class WC_Product extends WC_Abstract_Legacy_Product {
*
* @since 3.0.0
* @param int|string $image_id Product image id.
+ * @return void
*/
public function set_image_id( $image_id = '' ) {
$this->set_prop( 'image_id', $image_id );
@@ -1416,6 +1465,7 @@ class WC_Product extends WC_Abstract_Legacy_Product {
* Set rating counts. Read only.
*
* @param array $counts Product rating counts.
+ * @return void
*/
public function set_rating_counts( $counts ) {
$this->set_prop( 'rating_counts', array_filter( array_map( 'absint', (array) $counts ) ) );
@@ -1425,6 +1475,7 @@ class WC_Product extends WC_Abstract_Legacy_Product {
* Set average rating. Read only.
*
* @param float $average Product average rating.
+ * @return void
*/
public function set_average_rating( $average ) {
$this->set_prop( 'average_rating', wc_format_decimal( $average ) );
@@ -1434,6 +1485,7 @@ class WC_Product extends WC_Abstract_Legacy_Product {
* Set review count. Read only.
*
* @param int $count Product review count.
+ * @return void
*/
public function set_review_count( $count ) {
$this->set_prop( 'review_count', absint( $count ) );
@@ -1449,6 +1501,7 @@ class WC_Product extends WC_Abstract_Legacy_Product {
* Ensure properties are set correctly before save.
*
* @since 3.0.0
+ * @return void
*/
public function validate_props() {
// Before updating, ensure stock props are all aligned. Qty, backorders and low stock amount are not needed if not stock managed.
@@ -1529,6 +1582,7 @@ class WC_Product extends WC_Abstract_Legacy_Product {
* @return mixed A state value that will be passed to after_data_store_save_or_update.
*/
protected function before_data_store_save_or_update() {
+ return null;
}
/**
@@ -1536,6 +1590,7 @@ class WC_Product extends WC_Abstract_Legacy_Product {
* (but before triggering the 'woocommerce_after_..._object_save' action)
*
* @param mixed $state The state object that was returned by before_data_store_save_or_update.
+ * @return void
*/
protected function after_data_store_save_or_update( $state ) {
$this->maybe_defer_product_sync();
@@ -1561,6 +1616,8 @@ class WC_Product extends WC_Abstract_Legacy_Product {
/**
* If this is a child product, queue its parent for syncing at the end of the request.
+ *
+ * @return void
*/
protected function maybe_defer_product_sync() {
$parent_id = $this->get_parent_id();
diff --git a/plugins/woocommerce/includes/admin/class-wc-admin-setup-wizard.php b/plugins/woocommerce/includes/admin/class-wc-admin-setup-wizard.php
index f7793f74db..d0d16d48b5 100644
--- a/plugins/woocommerce/includes/admin/class-wc-admin-setup-wizard.php
+++ b/plugins/woocommerce/includes/admin/class-wc-admin-setup-wizard.php
@@ -62,6 +62,7 @@ class WC_Admin_Setup_Wizard {
* Hook in tabs.
*
* @deprecated 4.6.0
+ * @return void
*/
public function __construct() {
_deprecated_function( __CLASS__ . '::' . __FUNCTION__, '4.6.0', 'Onboarding is maintained in WooCommerce Admin.' );
@@ -71,6 +72,7 @@ class WC_Admin_Setup_Wizard {
* Add admin menus/screens.
*
* @deprecated 4.6.0
+ * @return void
*/
public function admin_menus() {
_deprecated_function( __CLASS__ . '::' . __FUNCTION__, '4.6.0', 'Onboarding is maintained in WooCommerce Admin.' );
@@ -101,6 +103,7 @@ class WC_Admin_Setup_Wizard {
* install plugins and the store is in a supported country.
*
* @deprecated 4.6.0
+ * @return bool
*/
protected function should_show_automated_tax() {
_deprecated_function( __CLASS__ . '::' . __FUNCTION__, '4.6.0', 'Onboarding is maintained in WooCommerce Admin.' );
@@ -206,6 +209,7 @@ class WC_Admin_Setup_Wizard {
* Hooked onto 'admin_enqueue_scripts'.
*
* @deprecated 4.6.0
+ * @return void
*/
public function enqueue_scripts() {
_deprecated_function( __CLASS__ . '::' . __FUNCTION__, '4.6.0', 'Onboarding is maintained in WooCommerce Admin.' );
@@ -215,6 +219,7 @@ class WC_Admin_Setup_Wizard {
* Show the setup wizard.
*
* @deprecated 4.6.0
+ * @return void
*/
public function setup_wizard() {
_deprecated_function( __CLASS__ . '::' . __FUNCTION__, '4.6.0', 'Onboarding is maintained in WooCommerce Admin.' );
@@ -330,6 +335,7 @@ class WC_Admin_Setup_Wizard {
* Setup Wizard Header.
*
* @deprecated 4.6.0
+ * @return void
*/
public function setup_wizard_header() {
_deprecated_function( __CLASS__ . '::' . __FUNCTION__, '4.6.0', 'Onboarding is maintained in WooCommerce Admin.' );
@@ -358,6 +364,7 @@ class WC_Admin_Setup_Wizard {
* Setup Wizard Footer.
*
* @deprecated 4.6.0
+ * @return void
*/
public function setup_wizard_footer() {
_deprecated_function( __CLASS__ . '::' . __FUNCTION__, '4.6.0', 'Onboarding is maintained in WooCommerce Admin.' );
@@ -378,6 +385,7 @@ class WC_Admin_Setup_Wizard {
* Output the steps.
*
* @deprecated 4.6.0
+ * @return void
*/
public function setup_wizard_steps() {
_deprecated_function( __CLASS__ . '::' . __FUNCTION__, '4.6.0', 'Onboarding is maintained in WooCommerce Admin.' );
@@ -423,6 +431,7 @@ class WC_Admin_Setup_Wizard {
* Output the content for the current step.
*
* @deprecated 4.6.0
+ * @return void
*/
public function setup_wizard_content() {
_deprecated_function( __CLASS__ . '::' . __FUNCTION__, '4.6.0', 'Onboarding is maintained in WooCommerce Admin.' );
@@ -437,6 +446,7 @@ class WC_Admin_Setup_Wizard {
* Display's a prompt for users to try out the new improved WooCommerce onboarding experience in WooCommerce Admin.
*
* @deprecated 4.6.0
+ * @return void
*/
public function wc_setup_new_onboarding() {
_deprecated_function( __CLASS__ . '::' . __FUNCTION__, '4.6.0', 'Onboarding is maintained in WooCommerce Admin.' );
@@ -464,6 +474,7 @@ class WC_Admin_Setup_Wizard {
* Installs WooCommerce admin and redirects to the new onboarding experience.
*
* @deprecated 4.6.0
+ * @return void
*/
public function wc_setup_new_onboarding_save() {
_deprecated_function( __CLASS__ . '::' . __FUNCTION__, '4.6.0', 'Onboarding is maintained in WooCommerce Admin.' );
@@ -472,6 +483,8 @@ class WC_Admin_Setup_Wizard {
/**
* Initial "store setup" step.
* Location, product type, page setup, and tracking opt-in.
+ *
+ * @return void
*/
public function wc_setup_store_setup() {
_deprecated_function( __CLASS__ . '::' . __FUNCTION__, '4.6.0', 'Onboarding is maintained in WooCommerce Admin.' );
@@ -605,6 +618,7 @@ class WC_Admin_Setup_Wizard {
* Template for the usage tracking modal.
*
* @deprecated 4.6.0
+ * @return void
*/
public function tracking_modal() {
_deprecated_function( __CLASS__ . '::' . __FUNCTION__, '4.6.0', 'Onboarding is maintained in WooCommerce Admin.' );
@@ -656,6 +670,7 @@ class WC_Admin_Setup_Wizard {
* Save initial store settings.
*
* @deprecated 4.6.0
+ * @return void
*/
public function wc_setup_store_setup_save() {
_deprecated_function( __CLASS__ . '::' . __FUNCTION__, '4.6.0', 'Onboarding is maintained in WooCommerce Admin.' );
@@ -665,6 +680,7 @@ class WC_Admin_Setup_Wizard {
* Finishes replying to the client, but keeps the process running for further (async) code execution.
*
* @see https://core.trac.wordpress.org/ticket/41358 .
+ * @return void
*/
protected function close_http_connection() {
_deprecated_function( __CLASS__ . '::' . __FUNCTION__, '4.6.0', 'Onboarding is maintained in WooCommerce Admin.' );
@@ -697,6 +713,7 @@ class WC_Admin_Setup_Wizard {
* @see WC_Admin_Setup_Wizard::install_theme
*
* @deprecated 4.6.0
+ * @return void
*/
public function run_deferred_actions() {
_deprecated_function( __CLASS__ . '::' . __FUNCTION__, '4.6.0', 'Onboarding is maintained in WooCommerce Admin.' );
@@ -722,6 +739,7 @@ class WC_Admin_Setup_Wizard {
* @param array $plugin_info Plugin info array containing name and repo-slug, and optionally file if different from [repo-slug].php.
*
* @deprecated 4.6.0
+ * @return void
*/
protected function install_plugin( $plugin_id, $plugin_info ) {
_deprecated_function( __CLASS__ . '::' . __FUNCTION__, '4.6.0', 'Onboarding is maintained in WooCommerce Admin.' );
@@ -758,6 +776,7 @@ class WC_Admin_Setup_Wizard {
* @param string $theme_id Theme id used for background install.
*
* @deprecated 4.6.0
+ * @return void
*/
protected function install_theme( $theme_id ) {
_deprecated_function( __CLASS__ . '::' . __FUNCTION__, '4.6.0', 'Onboarding is maintained in WooCommerce Admin.' );
@@ -777,6 +796,7 @@ class WC_Admin_Setup_Wizard {
* Helper method to install Jetpack.
*
* @deprecated 4.6.0
+ * @return void
*/
protected function install_jetpack() {
_deprecated_function( __CLASS__ . '::' . __FUNCTION__, '4.6.0', 'Onboarding is maintained in WooCommerce Admin.' );
@@ -793,6 +813,7 @@ class WC_Admin_Setup_Wizard {
* Helper method to install WooCommerce Services and its Jetpack dependency.
*
* @deprecated 4.6.0
+ * @return void
*/
protected function install_woocommerce_services() {
_deprecated_function( __CLASS__ . '::' . __FUNCTION__, '4.6.0', 'Onboarding is maintained in WooCommerce Admin.' );
@@ -834,6 +855,7 @@ class WC_Admin_Setup_Wizard {
* Plugin install info message markup with heading.
*
* @deprecated 4.6.0
+ * @return void
*/
public function plugin_install_info() {
_deprecated_function( __CLASS__ . '::' . __FUNCTION__, '4.6.0', 'Onboarding is maintained in WooCommerce Admin.' );
@@ -886,6 +908,7 @@ class WC_Admin_Setup_Wizard {
* @param string $input_prefix Input prefix.
*
* @deprecated 4.6.0
+ * @return void
*/
protected function shipping_method_selection_form( $country_code, $currency_code, $input_prefix ) {
_deprecated_function( __CLASS__ . '::' . __FUNCTION__, '4.6.0', 'Onboarding is maintained in WooCommerce Admin.' );
@@ -946,7 +969,7 @@ class WC_Admin_Setup_Wizard {
* Render a product weight unit dropdown.
*
* @deprecated 4.6.0
- * @return string
+ * @return string|false
*/
protected function get_product_weight_selection() {
_deprecated_function( __CLASS__ . '::' . __FUNCTION__, '4.6.0', 'Onboarding is maintained in WooCommerce Admin.' );
@@ -970,7 +993,7 @@ class WC_Admin_Setup_Wizard {
* Render a product dimension unit dropdown.
*
* @deprecated 4.6.0
- * @return string
+ * @return string|false
*/
protected function get_product_dimension_selection() {
_deprecated_function( __CLASS__ . '::' . __FUNCTION__, '4.6.0', 'Onboarding is maintained in WooCommerce Admin.' );
@@ -995,6 +1018,7 @@ class WC_Admin_Setup_Wizard {
* Shipping.
*
* @deprecated 4.6.0
+ * @return void
*/
public function wc_setup_shipping() {
_deprecated_function( __CLASS__ . '::' . __FUNCTION__, '4.6.0', 'Onboarding is maintained in WooCommerce Admin.' );
@@ -1164,6 +1188,7 @@ class WC_Admin_Setup_Wizard {
* Save shipping options.
*
* @deprecated 4.6.0
+ * @return void
*/
public function wc_setup_shipping_save() {
_deprecated_function( __CLASS__ . '::' . __FUNCTION__, '4.6.0', 'Onboarding is maintained in WooCommerce Admin.' );
@@ -1176,6 +1201,7 @@ class WC_Admin_Setup_Wizard {
* @param string $country_code Country code.
*
* @deprecated 4.6.0
+ * @return bool
*/
protected function is_stripe_supported_country( $country_code ) {
_deprecated_function( __CLASS__ . '::' . __FUNCTION__, '4.6.0', 'Onboarding is maintained in WooCommerce Admin.' );
@@ -1254,6 +1280,7 @@ class WC_Admin_Setup_Wizard {
* @param string $country_code Country code.
*
* @deprecated 4.6.0
+ * @return bool
*/
protected function is_klarna_checkout_supported_country( $country_code ) {
_deprecated_function( __CLASS__ . '::' . __FUNCTION__, '4.6.0', 'Onboarding is maintained in WooCommerce Admin.' );
@@ -1272,6 +1299,7 @@ class WC_Admin_Setup_Wizard {
* @param string $country_code Country code.
*
* @deprecated 4.6.0
+ * @return bool
*/
protected function is_klarna_payments_supported_country( $country_code ) {
_deprecated_function( __CLASS__ . '::' . __FUNCTION__, '4.6.0', 'Onboarding is maintained in WooCommerce Admin.' );
@@ -1289,6 +1317,7 @@ class WC_Admin_Setup_Wizard {
* @param string $country_code Country code.
*
* @deprecated 4.6.0
+ * @return bool
*/
protected function is_square_supported_country( $country_code ) {
_deprecated_function( __CLASS__ . '::' . __FUNCTION__, '4.6.0', 'Onboarding is maintained in WooCommerce Admin.' );
@@ -1308,6 +1337,7 @@ class WC_Admin_Setup_Wizard {
* @param string $country_code Country code.
*
* @deprecated 4.6.0
+ * @return bool
*/
protected function is_eway_payments_supported_country( $country_code ) {
_deprecated_function( __CLASS__ . '::' . __FUNCTION__, '4.6.0', 'Onboarding is maintained in WooCommerce Admin.' );
@@ -1324,6 +1354,7 @@ class WC_Admin_Setup_Wizard {
* @param string $country_code Country code.
*
* @deprecated 4.6.0
+ * @return bool
*/
protected function is_shipstation_supported_country( $country_code ) {
_deprecated_function( __CLASS__ . '::' . __FUNCTION__, '4.6.0', 'Onboarding is maintained in WooCommerce Admin.' );
@@ -1341,6 +1372,7 @@ class WC_Admin_Setup_Wizard {
* @param string $country_code Country code.
*
* @deprecated 4.6.0
+ * @return bool
*/
protected function is_wcs_shipping_labels_supported_country( $country_code ) {
_deprecated_function( __CLASS__ . '::' . __FUNCTION__, '4.6.0', 'Onboarding is maintained in WooCommerce Admin.' );
@@ -1619,6 +1651,7 @@ class WC_Admin_Setup_Wizard {
* @param array $item_info Item info array.
*
* @deprecated 4.6.0
+ * @return void
*/
public function display_service_item( $item_id, $item_info ) {
_deprecated_function( __CLASS__ . '::' . __FUNCTION__, '4.6.0', 'Onboarding is maintained in WooCommerce Admin.' );
@@ -1750,6 +1783,7 @@ class WC_Admin_Setup_Wizard {
* Payment Step.
*
* @deprecated 4.6.0
+ * @return void
*/
public function wc_setup_payment() {
_deprecated_function( __CLASS__ . '::' . __FUNCTION__, '4.6.0', 'Onboarding is maintained in WooCommerce Admin.' );
@@ -1826,11 +1860,20 @@ class WC_Admin_Setup_Wizard {
* Payment Step save.
*
* @deprecated 4.6.0
+ * @return void
*/
public function wc_setup_payment_save() {
_deprecated_function( __CLASS__ . '::' . __FUNCTION__, '4.6.0', 'Onboarding is maintained in WooCommerce Admin.' );
}
+ /**
+ * Display recommended item.
+ *
+ * @param array $item_info Item info array.
+ *
+ * @deprecated 4.6.0
+ * @return void
+ */
protected function display_recommended_item( $item_info ) {
_deprecated_function( __CLASS__ . '::' . __FUNCTION__, '4.6.0', 'Onboarding is maintained in WooCommerce Admin.' );
$type = $item_info['type'];
@@ -1873,6 +1916,7 @@ class WC_Admin_Setup_Wizard {
* Recommended step
*
* @deprecated 4.6.0
+ * @return void
*/
public function wc_setup_recommended() {
_deprecated_function( __CLASS__ . '::' . __FUNCTION__, '4.6.0', 'Onboarding is maintained in WooCommerce Admin.' );
@@ -1961,6 +2005,7 @@ class WC_Admin_Setup_Wizard {
* Recommended step save.
*
* @deprecated 4.6.0
+ * @return void
*/
public function wc_setup_recommended_save() {
_deprecated_function( __CLASS__ . '::' . __FUNCTION__, '4.6.0', 'Onboarding is maintained in WooCommerce Admin.' );
@@ -1968,6 +2013,8 @@ class WC_Admin_Setup_Wizard {
/**
* Go to the next step if Jetpack was connected.
+ *
+ * @return void
*/
protected function wc_setup_activate_actions() {
_deprecated_function( __CLASS__ . '::' . __FUNCTION__, '4.6.0', 'Onboarding is maintained in WooCommerce Admin.' );
@@ -1983,8 +2030,10 @@ class WC_Admin_Setup_Wizard {
}
/**
+ * Get feature list for activation.
*
* @deprecated 4.6.0
+ * @return array
*/
protected function wc_setup_activate_get_feature_list() {
$features = array();
@@ -2006,8 +2055,10 @@ class WC_Admin_Setup_Wizard {
}
/**
+ * Get feature list string for activation.
*
* @deprecated 4.6.0
+ * @return string|false
*/
protected function wc_setup_activate_get_feature_list_str() {
_deprecated_function( __CLASS__ . '::' . __FUNCTION__, '4.6.0', 'Onboarding is maintained in WooCommerce Admin.' );
@@ -2034,6 +2085,7 @@ class WC_Admin_Setup_Wizard {
* Activate step.
*
* @deprecated 4.6.0
+ * @return void
*/
public function wc_setup_activate() {
_deprecated_function( __CLASS__ . '::' . __FUNCTION__, '4.6.0', 'Onboarding is maintained in WooCommerce Admin.' );
@@ -2079,7 +2131,7 @@ class WC_Admin_Setup_Wizard {
}
?>
<h1><?php echo esc_html( $title ); ?></h1>
- <p><?php echo esc_html( $description ); ?></p>
+ <p><?php echo esc_html( (string) $description ); ?></p>
<?php if ( $jetpack_connected ) : ?>
<div class="activate-splash">
@@ -2176,8 +2228,10 @@ class WC_Admin_Setup_Wizard {
}
/**
+ * Get all activate errors.
*
* @deprecated 4.6.0
+ * @return array
*/
protected function get_all_activate_errors() {
_deprecated_function( __CLASS__ . '::' . __FUNCTION__, '4.6.0', 'Onboarding is maintained in WooCommerce Admin.' );
@@ -2190,8 +2244,12 @@ class WC_Admin_Setup_Wizard {
}
/**
+ * Get activate error message.
+ *
+ * @param string $code Error code.
*
* @deprecated 4.6.0
+ * @return string
*/
protected function get_activate_error_message( $code = '' ) {
_deprecated_function( __CLASS__ . '::' . __FUNCTION__, '4.6.0', 'Onboarding is maintained in WooCommerce Admin.' );
@@ -2205,6 +2263,7 @@ class WC_Admin_Setup_Wizard {
* Install, activate, and launch connection flow for Jetpack.
*
* @deprecated 4.6.0
+ * @return void
*/
public function wc_setup_activate_save() {
_deprecated_function( __CLASS__ . '::' . __FUNCTION__, '4.6.0', 'Onboarding is maintained in WooCommerce Admin.' );
@@ -2214,6 +2273,7 @@ class WC_Admin_Setup_Wizard {
* Final step.
*
* @deprecated 4.6.0
+ * @return void
*/
public function wc_setup_ready() {
_deprecated_function( __CLASS__ . '::' . __FUNCTION__, '4.6.0', 'Onboarding is maintained in WooCommerce Admin.' );
diff --git a/plugins/woocommerce/includes/class-wc-cart.php b/plugins/woocommerce/includes/class-wc-cart.php
index 374ca729d5..2ef103ba8b 100644
--- a/plugins/woocommerce/includes/class-wc-cart.php
+++ b/plugins/woocommerce/includes/class-wc-cart.php
@@ -121,6 +121,8 @@ class WC_Cart extends WC_Legacy_Cart {
/**
* Constructor for the cart class. Loads options and hooks in the init method.
+ *
+ * @return void
*/
public function __construct() {
$this->session = new WC_Cart_Session( $this );
@@ -143,6 +145,8 @@ class WC_Cart extends WC_Legacy_Cart {
* When cloning, ensure object properties are handled.
*
* These properties store a reference to the cart, so we use new instead of clone.
+ *
+ * @return void
*/
public function __clone() {
$this->session = clone $this->session;
@@ -354,6 +358,7 @@ class WC_Cart extends WC_Legacy_Cart {
* Get taxes.
*
* @since 3.2.0
+ * @return array
*/
public function get_shipping_taxes() {
return apply_filters( 'woocommerce_cart_' . __FUNCTION__, $this->get_totals_var( 'shipping_taxes' ) );
@@ -363,6 +368,7 @@ class WC_Cart extends WC_Legacy_Cart {
* Get taxes.
*
* @since 3.2.0
+ * @return array
*/
public function get_cart_contents_taxes() {
return apply_filters( 'woocommerce_cart_' . __FUNCTION__, $this->get_totals_var( 'cart_contents_taxes' ) );
@@ -372,6 +378,7 @@ class WC_Cart extends WC_Legacy_Cart {
* Get taxes.
*
* @since 3.2.0
+ * @return array
*/
public function get_fee_taxes() {
return apply_filters( 'woocommerce_cart_' . __FUNCTION__, $this->get_totals_var( 'fee_taxes' ) );
@@ -399,6 +406,7 @@ class WC_Cart extends WC_Legacy_Cart {
* Sets the contents of the cart.
*
* @param array $value Cart array.
+ * @return void
*/
public function set_cart_contents( $value ) {
$this->cart_contents = (array) $value;
@@ -409,6 +417,7 @@ class WC_Cart extends WC_Legacy_Cart {
*
* @since 3.2.0
* @param array $value Item array.
+ * @return void
*/
public function set_removed_cart_contents( $value = array() ) {
$this->removed_cart_contents = (array) $value;
@@ -418,6 +427,7 @@ class WC_Cart extends WC_Legacy_Cart {
* Sets the array of applied coupon codes.
*
* @param array $value List of applied coupon codes.
+ * @return void
*/
public function set_applied_coupons( $value = array() ) {
$this->applied_coupons = (array) $value;
@@ -428,6 +438,7 @@ class WC_Cart extends WC_Legacy_Cart {
*
* @since 3.2.0
* @param array $value Value to set.
+ * @return void
*/
public function set_coupon_discount_totals( $value = array() ) {
$this->coupon_discount_totals = (array) $value;
@@ -437,6 +448,7 @@ class WC_Cart extends WC_Legacy_Cart {
*
* @since 3.2.0
* @param array $value Value to set.
+ * @return void
*/
public function set_coupon_discount_tax_totals( $value = array() ) {
$this->coupon_discount_tax_totals = (array) $value;
@@ -447,6 +459,7 @@ class WC_Cart extends WC_Legacy_Cart {
*
* @since 3.2.0
* @param array $value Value to set.
+ * @return void
*/
public function set_totals( $value = array() ) {
$this->totals = wp_parse_args( $value, $this->default_totals );
@@ -457,6 +470,7 @@ class WC_Cart extends WC_Legacy_Cart {
*
* @since 3.2.0
* @param string $value Value to set.
+ * @return void
*/
public function set_subtotal( $value ) {
$this->totals['subtotal'] = wc_format_decimal( $value );
@@ -467,6 +481,7 @@ class WC_Cart extends WC_Legacy_Cart {
*
* @since 3.2.0
* @param string $value Value to set.
+ * @return void
*/
public function set_subtotal_tax( $value ) {
$this->totals['subtotal_tax'] = $value;
@@ -477,6 +492,7 @@ class WC_Cart extends WC_Legacy_Cart {
*
* @since 3.2.0
* @param string $value Value to set.
+ * @return void
*/
public function set_discount_total( $value ) {
$this->totals['discount_total'] = $value;
@@ -487,6 +503,7 @@ class WC_Cart extends WC_Legacy_Cart {
*
* @since 3.2.0
* @param string $value Value to set.
+ * @return void
*/
public function set_discount_tax( $value ) {
$this->totals['discount_tax'] = $value;
@@ -497,6 +514,7 @@ class WC_Cart extends WC_Legacy_Cart {
*
* @since 3.2.0
* @param string $value Value to set.
+ * @return void
*/
public function set_shipping_total( $value ) {
$this->totals['shipping_total'] = wc_format_decimal( $value );
@@ -507,6 +525,7 @@ class WC_Cart extends WC_Legacy_Cart {
*
* @since 3.2.0
* @param string $value Value to set.
+ * @return void
*/
public function set_shipping_tax( $value ) {
$this->totals['shipping_tax'] = $value;
@@ -517,6 +536,7 @@ class WC_Cart extends WC_Legacy_Cart {
*
* @since 3.2.0
* @param string $value Value to set.
+ * @return void
*/
public function set_cart_contents_total( $value ) {
$this->totals['cart_contents_total'] = wc_format_decimal( $value );
@@ -527,6 +547,7 @@ class WC_Cart extends WC_Legacy_Cart {
*
* @since 3.2.0
* @param string $value Value to set.
+ * @return void
*/
public function set_cart_contents_tax( $value ) {
$this->totals['cart_contents_tax'] = $value;
@@ -537,6 +558,7 @@ class WC_Cart extends WC_Legacy_Cart {
*
* @since 3.2.0
* @param string $value Value to set.
+ * @return void
*/
public function set_total( $value ) {
$this->totals['total'] = wc_format_decimal( $value, wc_get_price_decimals() );
@@ -547,6 +569,7 @@ class WC_Cart extends WC_Legacy_Cart {
*
* @since 3.2.0
* @param string $value Value to set.
+ * @return void
*/
public function set_total_tax( $value ) {
// We round here because this is a total entry, as opposed to line items in other setters.
@@ -558,6 +581,7 @@ class WC_Cart extends WC_Legacy_Cart {
*
* @since 3.2.0
* @param string $value Value to set.
+ * @return void
*/
public function set_fee_total( $value ) {
$this->totals['fee_total'] = wc_format_decimal( $value );
@@ -568,6 +592,7 @@ class WC_Cart extends WC_Legacy_Cart {
*
* @since 3.2.0
* @param string $value Value to set.
+ * @return void
*/
public function set_fee_tax( $value ) {
$this->totals['fee_tax'] = $value;
@@ -578,6 +603,7 @@ class WC_Cart extends WC_Legacy_Cart {
*
* @since 3.2.0
* @param array $value Tax values.
+ * @return void
*/
public function set_shipping_taxes( $value ) {
$this->totals['shipping_taxes'] = (array) $value;
@@ -588,6 +614,7 @@ class WC_Cart extends WC_Legacy_Cart {
*
* @since 3.2.0
* @param array $value Tax values.
+ * @return void
*/
public function set_cart_contents_taxes( $value ) {
$this->totals['cart_contents_taxes'] = (array) $value;
@@ -598,6 +625,7 @@ class WC_Cart extends WC_Legacy_Cart {
*
* @since 3.2.0
* @param array $value Tax values.
+ * @return void
*/
public function set_fee_taxes( $value ) {
$this->totals['fee_taxes'] = (array) $value;
@@ -658,6 +686,7 @@ class WC_Cart extends WC_Legacy_Cart {
* @since 9.7.0 Also clears shipping methods and packages since the items they are linked to are cleared.
*
* @param bool $clear_persistent_cart Should the persistent cart be cleared too. Defaults to true.
+ * @return void
*/
public function empty_cart( $clear_persistent_cart = true ) {
/**
@@ -761,6 +790,8 @@ class WC_Cart extends WC_Legacy_Cart {
/**
* Check cart coupons for errors.
+ *
+ * @return void
*/
public function check_cart_coupons() {
foreach ( $this->get_applied_coupons() as $code ) {
@@ -990,7 +1021,7 @@ class WC_Cart extends WC_Legacy_Cart {
* (tax is shown after coupons).
*
* @since 2.6.0
- * @return string
+ * @return float
*/
public function get_displayed_subtotal() {
return $this->display_prices_including_tax() ? $this->get_subtotal() + $this->get_subtotal_tax() : $this->get_subtotal();
@@ -1509,6 +1540,7 @@ class WC_Cart extends WC_Legacy_Cart {
* Calculate totals for the items in the cart.
*
* @uses WC_Cart_Totals
+ * @return void
*/
public function calculate_totals() {
$this->reset_totals();
@@ -1558,6 +1590,8 @@ class WC_Cart extends WC_Legacy_Cart {
/**
* Uses the shipping class to calculate shipping then gets the totals when its finished.
+ *
+ * @return array
*/
public function calculate_shipping() {
// Reset totals.
@@ -1868,6 +1902,7 @@ class WC_Cart extends WC_Legacy_Cart {
* 2. Where a usage_limit_per_user is set (limits coupon usage to a number based on user ID and email).
*
* @param array $posted Post data.
+ * @return void
*/
public function check_customer_coupons( $posted ) {
foreach ( $this->get_applied_coupons() as $code ) {
@@ -2127,6 +2162,7 @@ class WC_Cart extends WC_Legacy_Cart {
* Remove coupons from the cart of a defined type. Type 1 is before tax, type 2 is after tax.
*
* @param null $deprecated No longer used.
+ * @return void
*/
public function remove_coupons( $deprecated = null ) {
$this->set_coupon_discount_totals( array() );
@@ -2163,6 +2199,7 @@ class WC_Cart extends WC_Legacy_Cart {
* Trigger an action so 3rd parties can add custom fees.
*
* @since 2.0.0
+ * @return void
*/
public function calculate_fees() {
do_action( 'woocommerce_cart_calculate_fees', $this );
@@ -2190,6 +2227,7 @@ class WC_Cart extends WC_Legacy_Cart {
* @param float $amount Fee amount (do not enter negative amounts).
* @param bool $taxable Is the fee taxable? (default: false).
* @param string $tax_class The tax class for the fee if taxable. A blank string is standard tax class. (default: '').
+ * @return void
*/
public function add_fee( $name, $amount, $taxable = false, $tax_class = '' ) {
$this->fees_api()->add_fee(
@@ -2385,6 +2423,8 @@ class WC_Cart extends WC_Legacy_Cart {
/**
* Reset cart totals to the defaults. Useful before running calculations.
+ *
+ * @return void
*/
private function reset_totals() {
$this->totals = $this->default_totals;
diff --git a/plugins/woocommerce/includes/class-wc-customer.php b/plugins/woocommerce/includes/class-wc-customer.php
index 203b9b7baa..fe40efceec 100644
--- a/plugins/woocommerce/includes/class-wc-customer.php
+++ b/plugins/woocommerce/includes/class-wc-customer.php
@@ -67,14 +67,14 @@ class WC_Customer extends WC_Legacy_Customer {
/**
* Stores if user is VAT exempt for this session.
*
- * @var string
+ * @var bool
*/
protected $is_vat_exempt = false;
/**
* Stores if user has calculated shipping in this session.
*
- * @var string
+ * @var bool
*/
protected $calculated_shipping = false;
@@ -171,7 +171,7 @@ class WC_Customer extends WC_Legacy_Customer {
* Return this customer's avatar.
*
* @since 3.0.0
- * @return string
+ * @return string|false
*/
public function get_avatar_url() {
return get_avatar_url( $this->get_email() );
@@ -363,6 +363,7 @@ class WC_Customer extends WC_Legacy_Customer {
* Set if customer has tax exemption.
*
* @param bool $is_vat_exempt If is vat exempt.
+ * @return void
*/
public function set_is_vat_exempt( $is_vat_exempt ) {
$this->is_vat_exempt = wc_string_to_bool( $is_vat_exempt );
@@ -372,6 +373,7 @@ class WC_Customer extends WC_Legacy_Customer {
* Calculated shipping?
*
* @param bool $calculated If shipping is calculated.
+ * @return void
*/
public function set_calculated_shipping( $calculated = true ) {
$this->calculated_shipping = wc_string_to_bool( $calculated );
@@ -382,6 +384,7 @@ class WC_Customer extends WC_Legacy_Customer {
*
* @since 3.0.0
* @param string $password Password.
+ * @return void
*/
public function set_password( $password ) {
$this->password = $password;
@@ -838,6 +841,7 @@ class WC_Customer extends WC_Legacy_Customer {
*
* @since 3.0.0
* @param string $username Username.
+ * @return void
*/
public function set_username( $username ) {
$this->set_prop( 'username', $username );
@@ -848,6 +852,7 @@ class WC_Customer extends WC_Legacy_Customer {
*
* @since 3.0.0
* @param string $value Email.
+ * @return void
*/
public function set_email( $value ) {
if ( $value && ! is_email( (string) $value ) ) {
@@ -861,6 +866,7 @@ class WC_Customer extends WC_Legacy_Customer {
*
* @since 3.0.0
* @param string $first_name First name.
+ * @return void
*/
public function set_first_name( $first_name ) {
$this->set_prop( 'first_name', $first_name );
@@ -871,6 +877,7 @@ class WC_Customer extends WC_Legacy_Customer {
*
* @since 3.0.0
* @param string $last_name Last name.
+ * @return void
*/
public function set_last_name( $last_name ) {
$this->set_prop( 'last_name', $last_name );
@@ -881,6 +888,7 @@ class WC_Customer extends WC_Legacy_Customer {
*
* @since 3.1.0
* @param string $display_name Display name.
+ * @return void
*/
public function set_display_name( $display_name ) {
/* translators: 1: first name 2: last name */
@@ -892,6 +900,7 @@ class WC_Customer extends WC_Legacy_Customer {
*
* @since 3.0.0
* @param mixed $role User role.
+ * @return void
*/
public function set_role( $role ) {
global $wp_roles;
@@ -907,6 +916,7 @@ class WC_Customer extends WC_Legacy_Customer {
*
* @since 3.0.0
* @param string|integer|null $date UTC timestamp, or ISO 8601 DateTime. If the DateTime string has no timezone or offset, WordPress site timezone will be assumed. Null if their is no date.
+ * @return void
*/
public function set_date_created( $date = null ) {
$this->set_date_prop( 'date_created', $date );
@@ -917,6 +927,7 @@ class WC_Customer extends WC_Legacy_Customer {
*
* @since 3.0.0
* @param string|integer|null $date UTC timestamp, or ISO 8601 DateTime. If the DateTime string has no timezone or offset, WordPress site timezone will be assumed. Null if their is no date.
+ * @return void
*/
public function set_date_modified( $date = null ) {
$this->set_date_prop( 'date_modified', $date );
@@ -926,6 +937,7 @@ class WC_Customer extends WC_Legacy_Customer {
* Set customer address to match shop base address.
*
* @since 3.0.0
+ * @return void
*/
public function set_billing_address_to_base() {
$base = wc_get_customer_default_location();
@@ -936,6 +948,7 @@ class WC_Customer extends WC_Legacy_Customer {
* Set customer shipping address to base address.
*
* @since 3.0.0
+ * @return void
*/
public function set_shipping_address_to_base() {
$base = wc_get_customer_default_location();
@@ -949,6 +962,7 @@ class WC_Customer extends WC_Legacy_Customer {
* @param string $state State.
* @param string $postcode Postcode.
* @param string $city City.
+ * @return void
*/
public function set_billing_location( $country, $state = '', $postcode = '', $city = '' ) {
$address_data = $this->get_prop( 'billing', 'edit' );
@@ -970,6 +984,7 @@ class WC_Customer extends WC_Legacy_Customer {
* @param string $state State.
* @param string $postcode Postcode.
* @param string $city City.
+ * @return void
*/
public function set_shipping_location( $country, $state = '', $postcode = '', $city = '' ) {
$address_data = $this->get_prop( 'shipping', 'edit' );
@@ -991,6 +1006,7 @@ class WC_Customer extends WC_Legacy_Customer {
* @param string $prop Name of prop to set.
* @param string $address_type Type of address; 'billing' or 'shipping'.
* @param mixed $value Value of the prop.
+ * @return void
*/
protected function set_address_prop( $prop, $address_type, $value ) {
if ( array_key_exists( $prop, $this->data[ $address_type ] ) ) {
@@ -1008,6 +1024,7 @@ class WC_Customer extends WC_Legacy_Customer {
* Set billing_first_name.
*
* @param string $value Billing first name.
+ * @return void
*/
public function set_billing_first_name( $value ) {
$this->set_address_prop( 'first_name', 'billing', $value );
@@ -1017,6 +1034,7 @@ class WC_Customer extends WC_Legacy_Customer {
* Set billing_last_name.
*
* @param string $value Billing last name.
+ * @return void
*/
public function set_billing_last_name( $value ) {
$this->set_address_prop( 'last_name', 'billing', $value );
@@ -1026,6 +1044,7 @@ class WC_Customer extends WC_Legacy_Customer {
* Set billing_company.
*
* @param string $value Billing company.
+ * @return void
*/
public function set_billing_company( $value ) {
$this->set_address_prop( 'company', 'billing', $value );
@@ -1035,6 +1054,7 @@ class WC_Customer extends WC_Legacy_Customer {
* Set billing_address_1.
*
* @param string $value Billing address line 1.
+ * @return void
*/
public function set_billing_address( $value ) {
$this->set_billing_address_1( $value );
@@ -1044,6 +1064,7 @@ class WC_Customer extends WC_Legacy_Customer {
* Set billing_address_1.
*
* @param string $value Billing address line 1.
+ * @return void
*/
public function set_billing_address_1( $value ) {
$this->set_address_prop( 'address_1', 'billing', $value );
@@ -1053,6 +1074,7 @@ class WC_Customer extends WC_Legacy_Customer {
* Set billing_address_2.
*
* @param string $value Billing address line 2.
+ * @return void
*/
public function set_billing_address_2( $value ) {
$this->set_address_prop( 'address_2', 'billing', $value );
@@ -1062,6 +1084,7 @@ class WC_Customer extends WC_Legacy_Customer {
* Set billing_city.
*
* @param string $value Billing city.
+ * @return void
*/
public function set_billing_city( $value ) {
$this->set_address_prop( 'city', 'billing', $value );
@@ -1071,6 +1094,7 @@ class WC_Customer extends WC_Legacy_Customer {
* Set billing_state.
*
* @param string $value Billing state.
+ * @return void
*/
public function set_billing_state( $value ) {
$this->set_address_prop( 'state', 'billing', $value );
@@ -1080,6 +1104,7 @@ class WC_Customer extends WC_Legacy_Customer {
* Set billing_postcode.
*
* @param string $value Billing postcode.
+ * @return void
*/
public function set_billing_postcode( $value ) {
$this->set_address_prop( 'postcode', 'billing', $value );
@@ -1089,6 +1114,7 @@ class WC_Customer extends WC_Legacy_Customer {
* Set billing_country.
*
* @param string $value Billing country.
+ * @return void
*/
public function set_billing_country( $value ) {
$this->set_address_prop( 'country', 'billing', $value );
@@ -1098,6 +1124,7 @@ class WC_Customer extends WC_Legacy_Customer {
* Set billing_email.
*
* @param string $value Billing email.
+ * @return void
*/
public function set_billing_email( $value ) {
if ( $value && ! is_email( (string) $value ) ) {
@@ -1110,6 +1137,7 @@ class WC_Customer extends WC_Legacy_Customer {
* Set billing_phone.
*
* @param string $value Billing phone.
+ * @return void
*/
public function set_billing_phone( $value ) {
$this->set_address_prop( 'phone', 'billing', $value );
@@ -1119,6 +1147,7 @@ class WC_Customer extends WC_Legacy_Customer {
* Set shipping_first_name.
*
* @param string $value Shipping first name.
+ * @return void
*/
public function set_shipping_first_name( $value ) {
$this->set_address_prop( 'first_name', 'shipping', $value );
@@ -1128,6 +1157,7 @@ class WC_Customer extends WC_Legacy_Customer {
* Set shipping_last_name.
*
* @param string $value Shipping last name.
+ * @return void
*/
public function set_shipping_last_name( $value ) {
$this->set_address_prop( 'last_name', 'shipping', $value );
@@ -1137,6 +1167,7 @@ class WC_Customer extends WC_Legacy_Customer {
* Set shipping_company.
*
* @param string $value Shipping company.
+ * @return void
*/
public function set_shipping_company( $value ) {
$this->set_address_prop( 'company', 'shipping', $value );
@@ -1146,6 +1177,7 @@ class WC_Customer extends WC_Legacy_Customer {
* Set shipping_address_1.
*
* @param string $value Shipping address line 1.
+ * @return void
*/
public function set_shipping_address( $value ) {
$this->set_shipping_address_1( $value );
@@ -1155,6 +1187,7 @@ class WC_Customer extends WC_Legacy_Customer {
* Set shipping_address_1.
*
* @param string $value Shipping address line 1.
+ * @return void
*/
public function set_shipping_address_1( $value ) {
$this->set_address_prop( 'address_1', 'shipping', $value );
@@ -1164,6 +1197,7 @@ class WC_Customer extends WC_Legacy_Customer {
* Set shipping_address_2.
*
* @param string $value Shipping address line 2.
+ * @return void
*/
public function set_shipping_address_2( $value ) {
$this->set_address_prop( 'address_2', 'shipping', $value );
@@ -1173,6 +1207,7 @@ class WC_Customer extends WC_Legacy_Customer {
* Set shipping_city.
*
* @param string $value Shipping city.
+ * @return void
*/
public function set_shipping_city( $value ) {
$this->set_address_prop( 'city', 'shipping', $value );
@@ -1182,6 +1217,7 @@ class WC_Customer extends WC_Legacy_Customer {
* Set shipping_state.
*
* @param string $value Shipping state.
+ * @return void
*/
public function set_shipping_state( $value ) {
$this->set_address_prop( 'state', 'shipping', $value );
@@ -1191,6 +1227,7 @@ class WC_Customer extends WC_Legacy_Customer {
* Set shipping_postcode.
*
* @param string $value Shipping postcode.
+ * @return void
*/
public function set_shipping_postcode( $value ) {
$this->set_address_prop( 'postcode', 'shipping', $value );
@@ -1200,6 +1237,7 @@ class WC_Customer extends WC_Legacy_Customer {
* Set shipping_country.
*
* @param string $value Shipping country.
+ * @return void
*/
public function set_shipping_country( $value ) {
$this->set_address_prop( 'country', 'shipping', $value );
@@ -1210,6 +1248,7 @@ class WC_Customer extends WC_Legacy_Customer {
*
* @since 5.6.0
* @param string $value Shipping phone.
+ * @return void
*/
public function set_shipping_phone( $value ) {
$this->set_address_prop( 'phone', 'shipping', $value );
@@ -1220,6 +1259,7 @@ class WC_Customer extends WC_Legacy_Customer {
*
* @since 3.0.0
* @param bool $is_paying_customer If is a paying customer.
+ * @return void
*/
public function set_is_paying_customer( $is_paying_customer ) {
$this->set_prop( 'is_paying_customer', (bool) $is_paying_customer );
diff --git a/plugins/woocommerce/includes/class-wc-install.php b/plugins/woocommerce/includes/class-wc-install.php
index 5971a15c29..307934ca9a 100644
--- a/plugins/woocommerce/includes/class-wc-install.php
+++ b/plugins/woocommerce/includes/class-wc-install.php
@@ -347,6 +347,8 @@ class WC_Install {
/**
* Hook in tabs.
+ *
+ * @return void
*/
public static function init() {
if ( ! empty( $GLOBALS['wc_uninstalling_plugin'] ) ) {
@@ -383,6 +385,8 @@ class WC_Install {
* @since 8.0.0
*
* @internal For exclusive usage of WooCommerce core, backwards compatibility not guaranteed.
+ *
+ * @return void
*/
public static function newly_installed() {
if ( 'yes' === get_option( self::NEWLY_INSTALLED_OPTION, false ) ) {
@@ -409,6 +413,8 @@ class WC_Install {
* Check WooCommerce version and run the updater is required.
*
* This check is done on all requests and runs if the versions do not match.
+ *
+ * @return void
*/
public static function check_version() {
$wc_version = get_option( 'woocommerce_version' );
@@ -430,6 +436,8 @@ class WC_Install {
* Performan manual database update when triggered by WooCommerce System Tools.
*
* @since 3.6.5
+ *
+ * @return void
*/
public static function manual_database_update() {
$blog_id = get_current_blog_id();
@@ -442,6 +450,8 @@ class WC_Install {
*
* @since 4.0.0
* @deprecated 10.3.0
+ *
+ * @return void
*/
public static function wc_admin_db_update_notice() {
if (
@@ -456,6 +466,8 @@ class WC_Install {
* Adds the db update notice.
*
* @since 10.3.0
+ *
+ * @return void
*/
private static function add_update_db_notice() {
if ( ! \WC_Admin_Notices::has_notice( 'update' ) ) {
@@ -475,6 +487,8 @@ class WC_Install {
* Removes the db update notice.
*
* @since 10.3.0
+ *
+ * @return void
*/
public static function remove_update_db_notice() {
if ( \WC_Admin_Notices::has_notice( 'update' ) ) {
@@ -492,6 +506,8 @@ class WC_Install {
/**
* Run manual database update.
+ *
+ * @return void
*/
public static function run_manual_database_update() {
self::update();
@@ -503,6 +519,8 @@ class WC_Install {
* @param string $update_callback Callback name.
*
* @since 3.6.0
+ *
+ * @return void
*/
public static function run_update_callback( $update_callback ) {
include_once __DIR__ . '/wc-update-functions.php';
@@ -519,6 +537,8 @@ class WC_Install {
*
* @since 3.6.0
* @param string $callback Callback name.
+ *
+ * @return void
*/
protected static function run_update_callback_start( $callback ) {
wc_maybe_define_constant( 'WC_UPDATING', true );
@@ -530,6 +550,8 @@ class WC_Install {
* @since 3.6.0
* @param string $callback Callback name.
* @param bool $result Return value from callback. Non-false need to run again.
+ *
+ * @return void
*/
protected static function run_update_callback_end( $callback, $result ) {
if ( $result ) {
@@ -547,6 +569,8 @@ class WC_Install {
* Install actions when a update button is clicked within the admin area.
*
* This function is hooked into admin_init to affect admin only.
+ *
+ * @return void
*/
public static function install_actions() {
if ( ! empty( $_GET['do_update_woocommerce'] ) ) { // WPCS: input var ok.
@@ -580,6 +604,8 @@ class WC_Install {
/**
* Install WC.
+ *
+ * @return void
*/
public static function install() {
if ( ! is_blog_installed() ) {
@@ -629,6 +655,8 @@ class WC_Install {
/**
* Core function that performs the WooCommerce install.
+ *
+ * @return void
*/
private static function install_core() {
if ( self::is_new_install() && ! get_option( self::NEWLY_INSTALLED_OPTION, false ) ) {
@@ -758,6 +786,8 @@ class WC_Install {
* Reset any notices added to admin.
*
* @since 3.2.0
+ *
+ * @return void
*/
private static function remove_admin_notices() {
include_once __DIR__ . '/admin/class-wc-admin-notices.php';
@@ -770,6 +800,8 @@ class WC_Install {
* Setup WC environment - post types, taxonomies, endpoints.
*
* @since 3.2.0
+ *
+ * @return void
*/
private static function setup_environment() {
WC_Post_types::register_post_types();
@@ -829,6 +861,8 @@ class WC_Install {
* See if we need to set redirect transients for activation or not.
*
* @since 4.6.0
+ *
+ * @return void
*/
private static function maybe_set_activation_transients() {
if ( self::is_new_install() ) {
@@ -840,6 +874,8 @@ class WC_Install {
* See if we need to show or run database updates during install.
*
* @since 3.2.0
+ *
+ * @return void
*/
private static function maybe_update_db_version() {
if ( self::needs_db_update() ) {
@@ -863,6 +899,8 @@ class WC_Install {
* Set the Store ID if not already present.
*
* @since 8.4.0
+ *
+ * @return void
*/
public static function maybe_set_store_id() {
if ( ! get_option( self::STORE_ID_OPTION, false ) ) {
@@ -872,6 +910,8 @@ class WC_Install {
/**
* Update WC version to current.
+ *
+ * @return void
*/
private static function update_wc_version() {
update_option( 'woocommerce_version', WC()->version );
@@ -889,6 +929,8 @@ class WC_Install {
/**
* Push all needed DB updates to the queue for processing.
+ *
+ * @return void
*/
private static function update() {
$current_db_version = get_option( 'woocommerce_db_version' );
@@ -979,6 +1021,8 @@ class WC_Install {
* Update DB version to current.
*
* @param string|null $version New WooCommerce DB version or null.
+ *
+ * @return void
*/
public static function update_db_version( $version = null ) {
if ( is_null( $version ) ) {
@@ -1010,6 +1054,8 @@ class WC_Install {
/**
* Removes old cron jobs now that we moved to Action Scheduler.
+ *
+ * @return void
*/
private static function clear_cron_jobs() {
wp_clear_scheduled_hook( 'woocommerce_scheduled_sales' );
@@ -1024,6 +1070,8 @@ class WC_Install {
/**
* Create pages on installation.
+ *
+ * @return void
*/
public static function maybe_create_pages() {
if ( empty( get_option( 'woocommerce_db_version' ) ) ) {
@@ -1033,6 +1081,8 @@ class WC_Install {
/**
* Create pages that the plugin relies on, storing page IDs in variables.
+ *
+ * @return void
*/
public static function create_pages() {
// WordPress sets fresh_site to 0 after a page gets published.
@@ -1127,6 +1177,8 @@ class WC_Install {
* Default options.
*
* Sets up the default options used on the settings page.
+ *
+ * @return void
*/
private static function create_options() {
// Include settings so that we can run through defaults.
@@ -1178,6 +1230,8 @@ class WC_Install {
* Enable HPOS by default for new shops.
*
* @since 8.2.0
+ *
+ * @return void
*/
public static function maybe_enable_hpos() {
if ( self::should_enable_hpos_for_new_shop() ) {
@@ -1192,6 +1246,8 @@ class WC_Install {
* Ensure that the options are set for all shops for performance even if core profiler is disabled on the host.
*
* @since 9.3.0
+ *
+ * @return void
*/
public static function add_coming_soon_option() {
add_option( 'woocommerce_coming_soon', 'yes' );
@@ -1202,6 +1258,8 @@ class WC_Install {
* Enable email improvements by default for new shops.
*
* @since 9.8.0
+ *
+ * @return void
*/
public static function enable_email_improvements_for_newly_installed() {
$feature_controller = wc_get_container()->get( FeaturesController::class );
@@ -1217,6 +1275,8 @@ class WC_Install {
* Enable customer stock notifications signups by default for new shops.
*
* @since 0.0.0
+ *
+ * @return void
*/
public static function enable_customer_stock_notifications_signups() {
update_option( 'woocommerce_back_in_stock_allow_signups', 'yes' );
@@ -1241,6 +1301,8 @@ class WC_Install {
* Enable email improvements by default for existing shops if conditions are met.
*
* @since 9.9.0
+ *
+ * @return void
*/
public static function enable_email_improvements_for_existing_merchants() {
if ( ! EmailImprovements::should_enable_email_improvements_for_existing_stores() ) {
@@ -1342,6 +1404,8 @@ class WC_Install {
/**
* Delete obsolete notes.
+ *
+ * @return void
*/
public static function delete_obsolete_notes() {
global $wpdb;
@@ -1436,6 +1500,8 @@ class WC_Install {
/**
* Migrate option values to their new keys/names.
+ *
+ * @return void
*/
public static function migrate_options() {
@@ -1478,6 +1544,8 @@ class WC_Install {
}
/**
* Add the default terms for WC taxonomies - product types and order statuses. Modify this at your own risk.
+ *
+ * @return void
*/
public static function create_terms() {
$taxonomies = array(
@@ -1543,6 +1611,8 @@ class WC_Install {
* In this case we check if the plugin was autoinstalled in such a way, and if so we activate it if the conditions are fulfilled.
*
* @internal For exclusive usage of WooCommerce core, backwards compatibility not guaranteed.
+ *
+ * @return void
*/
public static function maybe_install_legacy_api_plugin() {
if ( self::is_new_install() ) {
@@ -1691,6 +1761,8 @@ class WC_Install {
* If in a previous version of WooCommerce the Legacy REST API plugin was installed manually but the core Legacy REST API was kept disabled,
* now the Legacy API is still disabled and can't be manually enabled from settings UI (the plugin, which is now in control, won't allow that),
* which is weird and confusing. So we detect this case and explicitly enable it.
+ *
+ * @return void
*/
private static function maybe_activate_legacy_api_enabled_option() {
if ( ! self::is_new_install() && is_plugin_active( 'woocommerce-legacy-rest-api/woocommerce-legacy-rest-api.php' ) && 'yes' !== get_option( 'woocommerce_api_enabled' ) ) {
@@ -2262,6 +2334,8 @@ $stock_notifications_table_schema;
/**
* Create roles and capabilities.
+ *
+ * @return void
*/
public static function create_roles() {
global $wp_roles;
@@ -2393,6 +2467,8 @@ $stock_notifications_table_schema;
/**
* Remove WooCommerce roles.
+ *
+ * @return void
*/
public static function remove_roles() {
global $wp_roles;
@@ -2420,6 +2496,8 @@ $stock_notifications_table_schema;
/**
* Create files/directories.
+ *
+ * @return void
*/
private static function create_files() {
/**
@@ -2466,6 +2544,8 @@ $stock_notifications_table_schema;
* Create a placeholder image in the media library.
*
* @since 3.5.0
+ *
+ * @return void
*/
private static function create_placeholder_image() {
$placeholder_image = get_option( 'woocommerce_placeholder_image', 0 );
@@ -2591,6 +2671,8 @@ $stock_notifications_table_schema;
*
* @param array $plugins Associative array of plugin files to paths.
* @param string $key Plugin relative path. Example: woocommerce/woocommerce.php.
+ *
+ * @return array
*/
private static function associate_plugin_file( $plugins, $key ) {
$path = explode( '/', $key );
@@ -2608,6 +2690,8 @@ $stock_notifications_table_schema;
*
* @throws Exception If unable to proceed with plugin installation.
* @since 2.6.0
+ *
+ * @return void
*/
public static function background_installer( $plugin_to_install_id, $plugin_to_install ) {
// Explicitly clear the event.
@@ -2751,6 +2835,8 @@ $stock_notifications_table_schema;
*
* @param string $option Option name.
* @param string $value Option value.
+ *
+ * @return void
*/
public static function remove_mailchimps_redirect( $option, $value ) {
// Remove this action to prevent infinite looping.
@@ -2767,6 +2853,8 @@ $stock_notifications_table_schema;
*
* @throws Exception If unable to proceed with theme installation.
* @since 3.1.0
+ *
+ * @return void
*/
public static function theme_background_installer( $theme_slug ) {
// Explicitly clear the event.
@@ -2829,6 +2917,8 @@ $stock_notifications_table_schema;
* Sets whether PayPal Standard will be loaded on install.
*
* @since 5.5.0
+ *
+ * @return void
*/
private static function set_paypal_standard_load_eligibility() {
// Initiating the payment gateways sets the flag.
diff --git a/plugins/woocommerce/includes/class-wc-order.php b/plugins/woocommerce/includes/class-wc-order.php
index 2167e4daba..b433eac37c 100644
--- a/plugins/woocommerce/includes/class-wc-order.php
+++ b/plugins/woocommerce/includes/class-wc-order.php
@@ -293,6 +293,7 @@ class WC_Order extends WC_Abstract_Order {
* @param Exception $e Exception object.
* @param string $message Message regarding exception thrown.
* @since 3.7.0
+ * @return void
*/
protected function handle_exception( $e, $message = 'Error' ) {
wc_get_logger()->error(
@@ -348,6 +349,7 @@ class WC_Order extends WC_Abstract_Order {
* `payment_complete` method.
*
* @since 3.0.0
+ * @return void
*/
public function maybe_set_date_paid() {
// This logic only runs if the date_paid prop has not been set yet.
@@ -379,6 +381,7 @@ class WC_Order extends WC_Abstract_Order {
* Sets the date completed variable when transitioning to completed status.
*
* @since 3.0.0
+ * @return void
*/
protected function maybe_set_date_completed() {
if ( $this->has_status( OrderStatus::COMPLETED ) ) {
@@ -423,6 +426,8 @@ class WC_Order extends WC_Abstract_Order {
/**
* Handle the status transition.
+ *
+ * @return void
*/
protected function status_transition() {
$status_transition = $this->status_transition;
@@ -553,6 +558,8 @@ class WC_Order extends WC_Abstract_Order {
/**
* Expands the shipping and billing information in the changes array.
+ *
+ * @return array
*/
public function get_changes() {
$changed_props = parent::get_changes();
@@ -1163,6 +1170,7 @@ class WC_Order extends WC_Abstract_Order {
* @param string $prop Name of prop to set.
* @param string $address_type Type of address; 'billing' or 'shipping'.
* @param mixed $value Value of the prop.
+ * @return void
*/
protected function set_address_prop( $prop, $address_type, $value ) {
if ( array_key_exists( $prop, $this->data[ $address_type ] ) ) {
@@ -1231,6 +1239,7 @@ class WC_Order extends WC_Abstract_Order {
*
* @param string $value Max length 22 chars.
* @throws WC_Data_Exception Throws exception when invalid data is found.
+ * @return void
*/
public function set_order_key( $value ) {
$this->set_prop( 'order_key', substr( $value, 0, 22 ) );
@@ -1241,6 +1250,7 @@ class WC_Order extends WC_Abstract_Order {
*
* @param int $value Customer ID.
* @throws WC_Data_Exception Throws exception when invalid data is found.
+ * @return void
*/
public function set_customer_id( $value ) {
$this->set_prop( 'customer_id', absint( $value ) );
@@ -1251,6 +1261,7 @@ class WC_Order extends WC_Abstract_Order {
*
* @param string $value Billing first name.
* @throws WC_Data_Exception Throws exception when invalid data is found.
+ * @return void
*/
public function set_billing_first_name( $value ) {
$this->set_address_prop( 'first_name', 'billing', $value );
@@ -1261,6 +1272,7 @@ class WC_Order extends WC_Abstract_Order {
*
* @param string $value Billing last name.
* @throws WC_Data_Exception Throws exception when invalid data is found.
+ * @return void
*/
public function set_billing_last_name( $value ) {
$this->set_address_prop( 'last_name', 'billing', $value );
@@ -1271,6 +1283,7 @@ class WC_Order extends WC_Abstract_Order {
*
* @param string $value Billing company.
* @throws WC_Data_Exception Throws exception when invalid data is found.
+ * @return void
*/
public function set_billing_company( $value ) {
$this->set_address_prop( 'company', 'billing', $value );
@@ -1281,6 +1294,7 @@ class WC_Order extends WC_Abstract_Order {
*
* @param string $value Billing address line 1.
* @throws WC_Data_Exception Throws exception when invalid data is found.
+ * @return void
*/
public function set_billing_address_1( $value ) {
$this->set_address_prop( 'address_1', 'billing', $value );
@@ -1291,6 +1305,7 @@ class WC_Order extends WC_Abstract_Order {
*
* @param string $value Billing address line 2.
* @throws WC_Data_Exception Throws exception when invalid data is found.
+ * @return void
*/
public function set_billing_address_2( $value ) {
$this->set_address_prop( 'address_2', 'billing', $value );
@@ -1301,6 +1316,7 @@ class WC_Order extends WC_Abstract_Order {
*
* @param string $value Billing city.
* @throws WC_Data_Exception Throws exception when invalid data is found.
+ * @return void
*/
public function set_billing_city( $value ) {
$this->set_address_prop( 'city', 'billing', $value );
@@ -1311,6 +1327,7 @@ class WC_Order extends WC_Abstract_Order {
*
* @param string $value Billing state.
* @throws WC_Data_Exception Throws exception when invalid data is found.
+ * @return void
*/
public function set_billing_state( $value ) {
$this->set_address_prop( 'state', 'billing', $value );
@@ -1321,6 +1338,7 @@ class WC_Order extends WC_Abstract_Order {
*
* @param string $value Billing postcode.
* @throws WC_Data_Exception Throws exception when invalid data is found.
+ * @return void
*/
public function set_billing_postcode( $value ) {
$this->set_address_prop( 'postcode', 'billing', $value );
@@ -1331,6 +1349,7 @@ class WC_Order extends WC_Abstract_Order {
*
* @param string $value Billing country.
* @throws WC_Data_Exception Throws exception when invalid data is found.
+ * @return void
*/
public function set_billing_country( $value ) {
$this->set_address_prop( 'country', 'billing', $value );
@@ -1338,6 +1357,8 @@ class WC_Order extends WC_Abstract_Order {
/**
* Maybe set empty billing email to that of the user who owns the order.
+ *
+ * @return void
*/
protected function maybe_set_user_billing_email() {
$user = $this->get_user();
@@ -1355,6 +1376,7 @@ class WC_Order extends WC_Abstract_Order {
*
* @param string $value Billing email.
* @throws WC_Data_Exception Throws exception when invalid data is found.
+ * @return void
*/
public function set_billing_email( $value ) {
if ( $value && ! is_email( $value ) ) {
@@ -1368,6 +1390,7 @@ class WC_Order extends WC_Abstract_Order {
*
* @param string $value Billing phone.
* @throws WC_Data_Exception Throws exception when invalid data is found.
+ * @return void
*/
public function set_billing_phone( $value ) {
$this->set_address_prop( 'phone', 'billing', $value );
@@ -1378,6 +1401,7 @@ class WC_Order extends WC_Abstract_Order {
*
* @param string $value Shipping first name.
* @throws WC_Data_Exception Throws exception when invalid data is found.
+ * @return void
*/
public function set_shipping_first_name( $value ) {
$this->set_address_prop( 'first_name', 'shipping', $value );
@@ -1388,6 +1412,7 @@ class WC_Order extends WC_Abstract_Order {
*
* @param string $value Shipping last name.
* @throws WC_Data_Exception Throws exception when invalid data is found.
+ * @return void
*/
public function set_shipping_last_name( $value ) {
$this->set_address_prop( 'last_name', 'shipping', $value );
@@ -1398,6 +1423,7 @@ class WC_Order extends WC_Abstract_Order {
*
* @param string $value Shipping company.
* @throws WC_Data_Exception Throws exception when invalid data is found.
+ * @return void
*/
public function set_shipping_company( $value ) {
$this->set_address_prop( 'company', 'shipping', $value );
@@ -1408,6 +1434,7 @@ class WC_Order extends WC_Abstract_Order {
*
* @param string $value Shipping address line 1.
* @throws WC_Data_Exception Throws exception when invalid data is found.
+ * @return void
*/
public function set_shipping_address_1( $value ) {
$this->set_address_prop( 'address_1', 'shipping', $value );
@@ -1418,6 +1445,7 @@ class WC_Order extends WC_Abstract_Order {
*
* @param string $value Shipping address line 2.
* @throws WC_Data_Exception Throws exception when invalid data is found.
+ * @return void
*/
public function set_shipping_address_2( $value ) {
$this->set_address_prop( 'address_2', 'shipping', $value );
@@ -1428,6 +1456,7 @@ class WC_Order extends WC_Abstract_Order {
*
* @param string $value Shipping city.
* @throws WC_Data_Exception Throws exception when invalid data is found.
+ * @return void
*/
public function set_shipping_city( $value ) {
$this->set_address_prop( 'city', 'shipping', $value );
@@ -1438,6 +1467,7 @@ class WC_Order extends WC_Abstract_Order {
*
* @param string $value Shipping state.
* @throws WC_Data_Exception Throws exception when invalid data is found.
+ * @return void
*/
public function set_shipping_state( $value ) {
$this->set_address_prop( 'state', 'shipping', $value );
@@ -1448,6 +1478,7 @@ class WC_Order extends WC_Abstract_Order {
*
* @param string $value Shipping postcode.
* @throws WC_Data_Exception Throws exception when invalid data is found.
+ * @return void
*/
public function set_shipping_postcode( $value ) {
$this->set_address_prop( 'postcode', 'shipping', $value );
@@ -1458,6 +1489,7 @@ class WC_Order extends WC_Abstract_Order {
*
* @param string $value Shipping country.
* @throws WC_Data_Exception Throws exception when invalid data is found.
+ * @return void
*/
public function set_shipping_country( $value ) {
$this->set_address_prop( 'country', 'shipping', $value );
@@ -1469,6 +1501,7 @@ class WC_Order extends WC_Abstract_Order {
* @since 5.6.0
* @param string $value Shipping phone.
* @throws WC_Data_Exception Throws exception when invalid data is found.
+ * @return void
*/
public function set_shipping_phone( $value ) {
$this->set_address_prop( 'phone', 'shipping', $value );
@@ -1479,6 +1512,7 @@ class WC_Order extends WC_Abstract_Order {
*
* @param string $payment_method Supports WC_Payment_Gateway for bw compatibility with < 3.0.
* @throws WC_Data_Exception Throws exception when invalid data is found.
+ * @return void
*/
public function set_payment_method( $payment_method = '' ) {
if ( is_object( $payment_method ) ) {
@@ -1497,6 +1531,7 @@ class WC_Order extends WC_Abstract_Order {
*
* @param string $value Payment method title.
* @throws WC_Data_Exception Throws exception when invalid data is found.
+ * @return void
*/
public function set_payment_method_title( $value ) {
$this->set_prop( 'payment_method_title', $value );
@@ -1507,6 +1542,7 @@ class WC_Order extends WC_Abstract_Order {
*
* @param string $value Transaction id.
* @throws WC_Data_Exception Throws exception when invalid data is found.
+ * @return void
*/
public function set_transaction_id( $value ) {
$this->set_prop( 'transaction_id', $value );
@@ -1517,6 +1553,7 @@ class WC_Order extends WC_Abstract_Order {
*
* @param string $value Customer ip address.
* @throws WC_Data_Exception Throws exception when invalid data is found.
+ * @return void
*/
public function set_customer_ip_address( $value ) {
$this->set_prop( 'customer_ip_address', $value );
@@ -1527,6 +1564,7 @@ class WC_Order extends WC_Abstract_Order {
*
* @param string $value Customer user agent.
* @throws WC_Data_Exception Throws exception when invalid data is found.
+ * @return void
*/
public function set_customer_user_agent( $value ) {
$this->set_prop( 'customer_user_agent', $value );
@@ -1537,6 +1575,7 @@ class WC_Order extends WC_Abstract_Order {
*
* @param string $value Created via.
* @throws WC_Data_Exception Throws exception when invalid data is found.
+ * @return void
*/
public function set_created_via( $value ) {
$this->set_prop( 'created_via', $value );
@@ -1547,6 +1586,7 @@ class WC_Order extends WC_Abstract_Order {
*
* @param string $value Customer note.
* @throws WC_Data_Exception Throws exception when invalid data is found.
+ * @return void
*/
public function set_customer_note( $value ) {
$this->set_prop( 'customer_note', $value );
@@ -1557,6 +1597,7 @@ class WC_Order extends WC_Abstract_Order {
*
* @param string|integer|null $date UTC timestamp, or ISO 8601 DateTime. If the DateTime string has no timezone or offset, WordPress site timezone will be assumed. Null if their is no date.
* @throws WC_Data_Exception Throws exception when invalid data is found.
+ * @return void
*/
public function set_date_completed( $date = null ) {
$this->set_date_prop( 'date_completed', $date );
@@ -1567,6 +1608,7 @@ class WC_Order extends WC_Abstract_Order {
*
* @param string|integer|null $date UTC timestamp, or ISO 8601 DateTime. If the DateTime string has no timezone or offset, WordPress site timezone will be assumed. Null if their is no date.
* @throws WC_Data_Exception Throws exception when invalid data is found.
+ * @return void
*/
public function set_date_paid( $date = null ) {
$this->set_date_prop( 'date_paid', $date );
@@ -1577,6 +1619,7 @@ class WC_Order extends WC_Abstract_Order {
*
* @param string $value Cart hash.
* @throws WC_Data_Exception Throws exception when invalid data is found.
+ * @return void
*/
public function set_cart_hash( $value ) {
$this->set_prop( 'cart_hash', $value );
@@ -2438,6 +2481,7 @@ class WC_Order extends WC_Abstract_Order {
*
* @param array $total_rows Total rows.
* @param string $tax_display Tax to display.
+ * @return void
*/
protected function add_order_item_totals_payment_method_row( &$total_rows, $tax_display ) {
if ( $this->get_total() > 0 && $this->get_payment_method_title() && 'other' !== $this->get_payment_method() ) {
@@ -2461,6 +2505,7 @@ class WC_Order extends WC_Abstract_Order {
*
* @param array $total_rows Total rows.
* @param string $tax_display Tax to display.
+ * @return void
*/
protected function add_order_item_totals_refund_rows( &$total_rows, $tax_display ) {
$refunds = $this->get_refunds();
diff --git a/plugins/woocommerce/phpstan-baseline.neon b/plugins/woocommerce/phpstan-baseline.neon
index 4424d26346..c83435ea7e 100644
--- a/plugins/woocommerce/phpstan-baseline.neon
+++ b/plugins/woocommerce/phpstan-baseline.neon
@@ -1224,342 +1224,12 @@ parameters:
count: 1
path: includes/abstracts/abstract-wc-product.php
- -
- message: '#^Method WC_Product\:\:after_data_store_save_or_update\(\) has no return type specified\.$#'
- identifier: missingType.return
- count: 1
- path: includes/abstracts/abstract-wc-product.php
-
-
message: '#^Method WC_Product\:\:get_permalink\(\) should return string but returns string\|false\.$#'
identifier: return.type
count: 1
path: includes/abstracts/abstract-wc-product.php
- -
- message: '#^Method WC_Product\:\:maybe_defer_product_sync\(\) has no return type specified\.$#'
- identifier: missingType.return
- count: 1
- path: includes/abstracts/abstract-wc-product.php
-
- -
- message: '#^Method WC_Product\:\:set_attributes\(\) has no return type specified\.$#'
- identifier: missingType.return
- count: 1
- path: includes/abstracts/abstract-wc-product.php
-
- -
- message: '#^Method WC_Product\:\:set_average_rating\(\) has no return type specified\.$#'
- identifier: missingType.return
- count: 1
- path: includes/abstracts/abstract-wc-product.php
-
- -
- message: '#^Method WC_Product\:\:set_backorders\(\) has no return type specified\.$#'
- identifier: missingType.return
- count: 1
- path: includes/abstracts/abstract-wc-product.php
-
- -
- message: '#^Method WC_Product\:\:set_brand_ids\(\) has no return type specified\.$#'
- identifier: missingType.return
- count: 1
- path: includes/abstracts/abstract-wc-product.php
-
- -
- message: '#^Method WC_Product\:\:set_catalog_visibility\(\) has no return type specified\.$#'
- identifier: missingType.return
- count: 1
- path: includes/abstracts/abstract-wc-product.php
-
- -
- message: '#^Method WC_Product\:\:set_category_ids\(\) has no return type specified\.$#'
- identifier: missingType.return
- count: 1
- path: includes/abstracts/abstract-wc-product.php
-
- -
- message: '#^Method WC_Product\:\:set_cross_sell_ids\(\) has no return type specified\.$#'
- identifier: missingType.return
- count: 1
- path: includes/abstracts/abstract-wc-product.php
-
- -
- message: '#^Method WC_Product\:\:set_date_created\(\) has no return type specified\.$#'
- identifier: missingType.return
- count: 1
- path: includes/abstracts/abstract-wc-product.php
-
- -
- message: '#^Method WC_Product\:\:set_date_modified\(\) has no return type specified\.$#'
- identifier: missingType.return
- count: 1
- path: includes/abstracts/abstract-wc-product.php
-
- -
- message: '#^Method WC_Product\:\:set_date_on_sale_from\(\) has no return type specified\.$#'
- identifier: missingType.return
- count: 1
- path: includes/abstracts/abstract-wc-product.php
-
- -
- message: '#^Method WC_Product\:\:set_date_on_sale_to\(\) has no return type specified\.$#'
- identifier: missingType.return
- count: 1
- path: includes/abstracts/abstract-wc-product.php
-
- -
- message: '#^Method WC_Product\:\:set_default_attributes\(\) has no return type specified\.$#'
- identifier: missingType.return
- count: 1
- path: includes/abstracts/abstract-wc-product.php
-
- -
- message: '#^Method WC_Product\:\:set_description\(\) has no return type specified\.$#'
- identifier: missingType.return
- count: 1
- path: includes/abstracts/abstract-wc-product.php
-
- -
- message: '#^Method WC_Product\:\:set_download_expiry\(\) has no return type specified\.$#'
- identifier: missingType.return
- count: 1
- path: includes/abstracts/abstract-wc-product.php
-
- -
- message: '#^Method WC_Product\:\:set_download_limit\(\) has no return type specified\.$#'
- identifier: missingType.return
- count: 1
- path: includes/abstracts/abstract-wc-product.php
-
- -
- message: '#^Method WC_Product\:\:set_downloadable\(\) has no return type specified\.$#'
- identifier: missingType.return
- count: 1
- path: includes/abstracts/abstract-wc-product.php
-
- -
- message: '#^Method WC_Product\:\:set_downloads\(\) has no return type specified\.$#'
- identifier: missingType.return
- count: 1
- path: includes/abstracts/abstract-wc-product.php
-
- -
- message: '#^Method WC_Product\:\:set_featured\(\) has no return type specified\.$#'
- identifier: missingType.return
- count: 1
- path: includes/abstracts/abstract-wc-product.php
-
- -
- message: '#^Method WC_Product\:\:set_gallery_image_ids\(\) has no return type specified\.$#'
- identifier: missingType.return
- count: 1
- path: includes/abstracts/abstract-wc-product.php
-
- -
- message: '#^Method WC_Product\:\:set_global_unique_id\(\) has no return type specified\.$#'
- identifier: missingType.return
- count: 1
- path: includes/abstracts/abstract-wc-product.php
-
- -
- message: '#^Method WC_Product\:\:set_height\(\) has no return type specified\.$#'
- identifier: missingType.return
- count: 1
- path: includes/abstracts/abstract-wc-product.php
-
- -
- message: '#^Method WC_Product\:\:set_image_id\(\) has no return type specified\.$#'
- identifier: missingType.return
- count: 1
- path: includes/abstracts/abstract-wc-product.php
-
- -
- message: '#^Method WC_Product\:\:set_length\(\) has no return type specified\.$#'
- identifier: missingType.return
- count: 1
- path: includes/abstracts/abstract-wc-product.php
-
- -
- message: '#^Method WC_Product\:\:set_low_stock_amount\(\) has no return type specified\.$#'
- identifier: missingType.return
- count: 1
- path: includes/abstracts/abstract-wc-product.php
-
- -
- message: '#^Method WC_Product\:\:set_manage_stock\(\) has no return type specified\.$#'
- identifier: missingType.return
- count: 1
- path: includes/abstracts/abstract-wc-product.php
-
- -
- message: '#^Method WC_Product\:\:set_menu_order\(\) has no return type specified\.$#'
- identifier: missingType.return
- count: 1
- path: includes/abstracts/abstract-wc-product.php
-
- -
- message: '#^Method WC_Product\:\:set_name\(\) has no return type specified\.$#'
- identifier: missingType.return
- count: 1
- path: includes/abstracts/abstract-wc-product.php
-
- -
- message: '#^Method WC_Product\:\:set_parent_id\(\) has no return type specified\.$#'
- identifier: missingType.return
- count: 1
- path: includes/abstracts/abstract-wc-product.php
-
- -
- message: '#^Method WC_Product\:\:set_post_password\(\) has no return type specified\.$#'
- identifier: missingType.return
- count: 1
- path: includes/abstracts/abstract-wc-product.php
-
- -
- message: '#^Method WC_Product\:\:set_price\(\) has no return type specified\.$#'
- identifier: missingType.return
- count: 1
- path: includes/abstracts/abstract-wc-product.php
-
- -
- message: '#^Method WC_Product\:\:set_purchase_note\(\) has no return type specified\.$#'
- identifier: missingType.return
- count: 1
- path: includes/abstracts/abstract-wc-product.php
-
- -
- message: '#^Method WC_Product\:\:set_rating_counts\(\) has no return type specified\.$#'
- identifier: missingType.return
- count: 1
- path: includes/abstracts/abstract-wc-product.php
-
- -
- message: '#^Method WC_Product\:\:set_regular_price\(\) has no return type specified\.$#'
- identifier: missingType.return
- count: 1
- path: includes/abstracts/abstract-wc-product.php
-
- -
- message: '#^Method WC_Product\:\:set_review_count\(\) has no return type specified\.$#'
- identifier: missingType.return
- count: 1
- path: includes/abstracts/abstract-wc-product.php
-
- -
- message: '#^Method WC_Product\:\:set_reviews_allowed\(\) has no return type specified\.$#'
- identifier: missingType.return
- count: 1
- path: includes/abstracts/abstract-wc-product.php
-
- -
- message: '#^Method WC_Product\:\:set_sale_price\(\) has no return type specified\.$#'
- identifier: missingType.return
- count: 1
- path: includes/abstracts/abstract-wc-product.php
-
- -
- message: '#^Method WC_Product\:\:set_shipping_class_id\(\) has no return type specified\.$#'
- identifier: missingType.return
- count: 1
- path: includes/abstracts/abstract-wc-product.php
-
- -
- message: '#^Method WC_Product\:\:set_short_description\(\) has no return type specified\.$#'
- identifier: missingType.return
- count: 1
- path: includes/abstracts/abstract-wc-product.php
-
- -
- message: '#^Method WC_Product\:\:set_sku\(\) has no return type specified\.$#'
- identifier: missingType.return
- count: 1
- path: includes/abstracts/abstract-wc-product.php
-
- -
- message: '#^Method WC_Product\:\:set_slug\(\) has no return type specified\.$#'
- identifier: missingType.return
- count: 1
- path: includes/abstracts/abstract-wc-product.php
-
- -
- message: '#^Method WC_Product\:\:set_sold_individually\(\) has no return type specified\.$#'
- identifier: missingType.return
- count: 1
- path: includes/abstracts/abstract-wc-product.php
-
- -
- message: '#^Method WC_Product\:\:set_status\(\) has no return type specified\.$#'
- identifier: missingType.return
- count: 1
- path: includes/abstracts/abstract-wc-product.php
-
- -
- message: '#^Method WC_Product\:\:set_stock_quantity\(\) has no return type specified\.$#'
- identifier: missingType.return
- count: 1
- path: includes/abstracts/abstract-wc-product.php
-
- -
- message: '#^Method WC_Product\:\:set_stock_status\(\) has no return type specified\.$#'
- identifier: missingType.return
- count: 1
- path: includes/abstracts/abstract-wc-product.php
-
- -
- message: '#^Method WC_Product\:\:set_tag_ids\(\) has no return type specified\.$#'
- identifier: missingType.return
- count: 1
- path: includes/abstracts/abstract-wc-product.php
-
- -
- message: '#^Method WC_Product\:\:set_tax_class\(\) has no return type specified\.$#'
- identifier: missingType.return
- count: 1
- path: includes/abstracts/abstract-wc-product.php
-
- -
- message: '#^Method WC_Product\:\:set_tax_status\(\) has no return type specified\.$#'
- identifier: missingType.return
- count: 1
- path: includes/abstracts/abstract-wc-product.php
-
- -
- message: '#^Method WC_Product\:\:set_total_sales\(\) has no return type specified\.$#'
- identifier: missingType.return
- count: 1
- path: includes/abstracts/abstract-wc-product.php
-
- -
- message: '#^Method WC_Product\:\:set_upsell_ids\(\) has no return type specified\.$#'
- identifier: missingType.return
- count: 1
- path: includes/abstracts/abstract-wc-product.php
-
- -
- message: '#^Method WC_Product\:\:set_virtual\(\) has no return type specified\.$#'
- identifier: missingType.return
- count: 1
- path: includes/abstracts/abstract-wc-product.php
-
- -
- message: '#^Method WC_Product\:\:set_weight\(\) has no return type specified\.$#'
- identifier: missingType.return
- count: 1
- path: includes/abstracts/abstract-wc-product.php
-
- -
- message: '#^Method WC_Product\:\:set_width\(\) has no return type specified\.$#'
- identifier: missingType.return
- count: 1
- path: includes/abstracts/abstract-wc-product.php
-
- -
- message: '#^Method WC_Product\:\:validate_props\(\) has no return type specified\.$#'
- identifier: missingType.return
- count: 1
- path: includes/abstracts/abstract-wc-product.php
-
-
message: '#^PHPDoc tag @param has invalid value \(WC_Product \$this Product object\.\)\: Unexpected token "\$this", expected variable at offset 195 on line 7$#'
identifier: phpDoc.parseError
@@ -3768,294 +3438,6 @@ parameters:
count: 1
path: includes/admin/class-wc-admin-setup-wizard.php
- -
- message: '#^Method WC_Admin_Setup_Wizard\:\:admin_menus\(\) has no return type specified\.$#'
- identifier: missingType.return
- count: 1
- path: includes/admin/class-wc-admin-setup-wizard.php
-
- -
- message: '#^Method WC_Admin_Setup_Wizard\:\:close_http_connection\(\) has no return type specified\.$#'
- identifier: missingType.return
- count: 1
- path: includes/admin/class-wc-admin-setup-wizard.php
-
- -
- message: '#^Method WC_Admin_Setup_Wizard\:\:display_recommended_item\(\) has no return type specified\.$#'
- identifier: missingType.return
- count: 1
- path: includes/admin/class-wc-admin-setup-wizard.php
-
- -
- message: '#^Method WC_Admin_Setup_Wizard\:\:display_recommended_item\(\) has parameter \$item_info with no type specified\.$#'
- identifier: missingType.parameter
- count: 1
- path: includes/admin/class-wc-admin-setup-wizard.php
-
- -
- message: '#^Method WC_Admin_Setup_Wizard\:\:display_service_item\(\) has no return type specified\.$#'
- identifier: missingType.return
- count: 1
- path: includes/admin/class-wc-admin-setup-wizard.php
-
- -
- message: '#^Method WC_Admin_Setup_Wizard\:\:enqueue_scripts\(\) has no return type specified\.$#'
- identifier: missingType.return
- count: 1
- path: includes/admin/class-wc-admin-setup-wizard.php
-
- -
- message: '#^Method WC_Admin_Setup_Wizard\:\:get_activate_error_message\(\) has no return type specified\.$#'
- identifier: missingType.return
- count: 1
- path: includes/admin/class-wc-admin-setup-wizard.php
-
- -
- message: '#^Method WC_Admin_Setup_Wizard\:\:get_activate_error_message\(\) has parameter \$code with no type specified\.$#'
- identifier: missingType.parameter
- count: 1
- path: includes/admin/class-wc-admin-setup-wizard.php
-
- -
- message: '#^Method WC_Admin_Setup_Wizard\:\:get_all_activate_errors\(\) has no return type specified\.$#'
- identifier: missingType.return
- count: 1
- path: includes/admin/class-wc-admin-setup-wizard.php
-
- -
- message: '#^Method WC_Admin_Setup_Wizard\:\:get_product_dimension_selection\(\) should return string but returns string\|false\.$#'
- identifier: return.type
- count: 1
- path: includes/admin/class-wc-admin-setup-wizard.php
-
- -
- message: '#^Method WC_Admin_Setup_Wizard\:\:get_product_weight_selection\(\) should return string but returns string\|false\.$#'
- identifier: return.type
- count: 1
- path: includes/admin/class-wc-admin-setup-wizard.php
-
- -
- message: '#^Method WC_Admin_Setup_Wizard\:\:install_jetpack\(\) has no return type specified\.$#'
- identifier: missingType.return
- count: 1
- path: includes/admin/class-wc-admin-setup-wizard.php
-
- -
- message: '#^Method WC_Admin_Setup_Wizard\:\:install_plugin\(\) has no return type specified\.$#'
- identifier: missingType.return
- count: 1
- path: includes/admin/class-wc-admin-setup-wizard.php
-
- -
- message: '#^Method WC_Admin_Setup_Wizard\:\:install_theme\(\) has no return type specified\.$#'
- identifier: missingType.return
- count: 1
- path: includes/admin/class-wc-admin-setup-wizard.php
-
- -
- message: '#^Method WC_Admin_Setup_Wizard\:\:install_woocommerce_services\(\) has no return type specified\.$#'
- identifier: missingType.return
- count: 1
- path: includes/admin/class-wc-admin-setup-wizard.php
-
- -
- message: '#^Method WC_Admin_Setup_Wizard\:\:is_eway_payments_supported_country\(\) has no return type specified\.$#'
- identifier: missingType.return
- count: 1
- path: includes/admin/class-wc-admin-setup-wizard.php
-
- -
- message: '#^Method WC_Admin_Setup_Wizard\:\:is_klarna_checkout_supported_country\(\) has no return type specified\.$#'
- identifier: missingType.return
- count: 1
- path: includes/admin/class-wc-admin-setup-wizard.php
-
- -
- message: '#^Method WC_Admin_Setup_Wizard\:\:is_klarna_payments_supported_country\(\) has no return type specified\.$#'
- identifier: missingType.return
- count: 1
- path: includes/admin/class-wc-admin-setup-wizard.php
-
- -
- message: '#^Method WC_Admin_Setup_Wizard\:\:is_shipstation_supported_country\(\) has no return type specified\.$#'
- identifier: missingType.return
- count: 1
- path: includes/admin/class-wc-admin-setup-wizard.php
-
- -
- message: '#^Method WC_Admin_Setup_Wizard\:\:is_square_supported_country\(\) has no return type specified\.$#'
- identifier: missingType.return
- count: 1
- path: includes/admin/class-wc-admin-setup-wizard.php
-
- -
- message: '#^Method WC_Admin_Setup_Wizard\:\:is_stripe_supported_country\(\) has no return type specified\.$#'
- identifier: missingType.return
- count: 1
- path: includes/admin/class-wc-admin-setup-wizard.php
-
- -
- message: '#^Method WC_Admin_Setup_Wizard\:\:is_wcs_shipping_labels_supported_country\(\) has no return type specified\.$#'
- identifier: missingType.return
- count: 1
- path: includes/admin/class-wc-admin-setup-wizard.php
-
- -
- message: '#^Method WC_Admin_Setup_Wizard\:\:plugin_install_info\(\) has no return type specified\.$#'
- identifier: missingType.return
- count: 1
- path: includes/admin/class-wc-admin-setup-wizard.php
-
- -
- message: '#^Method WC_Admin_Setup_Wizard\:\:run_deferred_actions\(\) has no return type specified\.$#'
- identifier: missingType.return
- count: 1
- path: includes/admin/class-wc-admin-setup-wizard.php
-
- -
- message: '#^Method WC_Admin_Setup_Wizard\:\:setup_wizard\(\) has no return type specified\.$#'
- identifier: missingType.return
- count: 1
- path: includes/admin/class-wc-admin-setup-wizard.php
-
- -
- message: '#^Method WC_Admin_Setup_Wizard\:\:setup_wizard_content\(\) has no return type specified\.$#'
- identifier: missingType.return
- count: 1
- path: includes/admin/class-wc-admin-setup-wizard.php
-
- -
- message: '#^Method WC_Admin_Setup_Wizard\:\:setup_wizard_footer\(\) has no return type specified\.$#'
- identifier: missingType.return
- count: 1
- path: includes/admin/class-wc-admin-setup-wizard.php
-
- -
- message: '#^Method WC_Admin_Setup_Wizard\:\:setup_wizard_header\(\) has no return type specified\.$#'
- identifier: missingType.return
- count: 1
- path: includes/admin/class-wc-admin-setup-wizard.php
-
- -
- message: '#^Method WC_Admin_Setup_Wizard\:\:setup_wizard_steps\(\) has no return type specified\.$#'
- identifier: missingType.return
- count: 1
- path: includes/admin/class-wc-admin-setup-wizard.php
-
- -
- message: '#^Method WC_Admin_Setup_Wizard\:\:shipping_method_selection_form\(\) has no return type specified\.$#'
- identifier: missingType.return
- count: 1
- path: includes/admin/class-wc-admin-setup-wizard.php
-
- -
- message: '#^Method WC_Admin_Setup_Wizard\:\:should_show_automated_tax\(\) has no return type specified\.$#'
- identifier: missingType.return
- count: 1
- path: includes/admin/class-wc-admin-setup-wizard.php
-
- -
- message: '#^Method WC_Admin_Setup_Wizard\:\:tracking_modal\(\) has no return type specified\.$#'
- identifier: missingType.return
- count: 1
- path: includes/admin/class-wc-admin-setup-wizard.php
-
- -
- message: '#^Method WC_Admin_Setup_Wizard\:\:wc_setup_activate\(\) has no return type specified\.$#'
- identifier: missingType.return
- count: 1
- path: includes/admin/class-wc-admin-setup-wizard.php
-
- -
- message: '#^Method WC_Admin_Setup_Wizard\:\:wc_setup_activate_actions\(\) has no return type specified\.$#'
- identifier: missingType.return
- count: 1
- path: includes/admin/class-wc-admin-setup-wizard.php
-
- -
- message: '#^Method WC_Admin_Setup_Wizard\:\:wc_setup_activate_get_feature_list\(\) has no return type specified\.$#'
- identifier: missingType.return
- count: 1
- path: includes/admin/class-wc-admin-setup-wizard.php
-
- -
- message: '#^Method WC_Admin_Setup_Wizard\:\:wc_setup_activate_get_feature_list_str\(\) has no return type specified\.$#'
- identifier: missingType.return
- count: 1
- path: includes/admin/class-wc-admin-setup-wizard.php
-
- -
- message: '#^Method WC_Admin_Setup_Wizard\:\:wc_setup_activate_save\(\) has no return type specified\.$#'
- identifier: missingType.return
- count: 1
- path: includes/admin/class-wc-admin-setup-wizard.php
-
- -
- message: '#^Method WC_Admin_Setup_Wizard\:\:wc_setup_new_onboarding\(\) has no return type specified\.$#'
- identifier: missingType.return
- count: 1
- path: includes/admin/class-wc-admin-setup-wizard.php
-
- -
- message: '#^Method WC_Admin_Setup_Wizard\:\:wc_setup_new_onboarding_save\(\) has no return type specified\.$#'
- identifier: missingType.return
- count: 1
- path: includes/admin/class-wc-admin-setup-wizard.php
-
- -
- message: '#^Method WC_Admin_Setup_Wizard\:\:wc_setup_payment\(\) has no return type specified\.$#'
- identifier: missingType.return
- count: 1
- path: includes/admin/class-wc-admin-setup-wizard.php
-
- -
- message: '#^Method WC_Admin_Setup_Wizard\:\:wc_setup_payment_save\(\) has no return type specified\.$#'
- identifier: missingType.return
- count: 1
- path: includes/admin/class-wc-admin-setup-wizard.php
-
- -
- message: '#^Method WC_Admin_Setup_Wizard\:\:wc_setup_ready\(\) has no return type specified\.$#'
- identifier: missingType.return
- count: 1
- path: includes/admin/class-wc-admin-setup-wizard.php
-
- -
- message: '#^Method WC_Admin_Setup_Wizard\:\:wc_setup_recommended\(\) has no return type specified\.$#'
- identifier: missingType.return
- count: 1
- path: includes/admin/class-wc-admin-setup-wizard.php
-
- -
- message: '#^Method WC_Admin_Setup_Wizard\:\:wc_setup_recommended_save\(\) has no return type specified\.$#'
- identifier: missingType.return
- count: 1
- path: includes/admin/class-wc-admin-setup-wizard.php
-
- -
- message: '#^Method WC_Admin_Setup_Wizard\:\:wc_setup_shipping\(\) has no return type specified\.$#'
- identifier: missingType.return
- count: 1
- path: includes/admin/class-wc-admin-setup-wizard.php
-
- -
- message: '#^Method WC_Admin_Setup_Wizard\:\:wc_setup_shipping_save\(\) has no return type specified\.$#'
- identifier: missingType.return
- count: 1
- path: includes/admin/class-wc-admin-setup-wizard.php
-
- -
- message: '#^Method WC_Admin_Setup_Wizard\:\:wc_setup_store_setup\(\) has no return type specified\.$#'
- identifier: missingType.return
- count: 1
- path: includes/admin/class-wc-admin-setup-wizard.php
-
- -
- message: '#^Method WC_Admin_Setup_Wizard\:\:wc_setup_store_setup_save\(\) has no return type specified\.$#'
- identifier: missingType.return
- count: 1
- path: includes/admin/class-wc-admin-setup-wizard.php
-
-
message: '#^Parameter \#1 \$json of function wc_esc_json expects string, string\|false given\.$#'
identifier: argument.type
@@ -11844,6 +11226,12 @@ parameters:
count: 2
path: includes/class-wc-cart.php
+ -
+ message: '#^Method WC_Cart\:\:check_cart_items\(\) has no return type specified\.$#'
+ identifier: missingType.return
+ count: 1
+ path: includes/class-wc-cart.php
+
-
message: '#^Binary operation "\+" between float\|int\|string and float results in an error\.$#'
identifier: binaryOp.invalid
@@ -11892,216 +11280,6 @@ parameters:
count: 2
path: includes/class-wc-cart.php
- -
- message: '#^Method WC_Cart\:\:add_fee\(\) has no return type specified\.$#'
- identifier: missingType.return
- count: 1
- path: includes/class-wc-cart.php
-
- -
- message: '#^Method WC_Cart\:\:calculate_fees\(\) has no return type specified\.$#'
- identifier: missingType.return
- count: 1
- path: includes/class-wc-cart.php
-
- -
- message: '#^Method WC_Cart\:\:calculate_shipping\(\) has no return type specified\.$#'
- identifier: missingType.return
- count: 1
- path: includes/class-wc-cart.php
-
- -
- message: '#^Method WC_Cart\:\:calculate_totals\(\) has no return type specified\.$#'
- identifier: missingType.return
- count: 1
- path: includes/class-wc-cart.php
-
- -
- message: '#^Method WC_Cart\:\:check_cart_coupons\(\) has no return type specified\.$#'
- identifier: missingType.return
- count: 1
- path: includes/class-wc-cart.php
-
- -
- message: '#^Method WC_Cart\:\:check_cart_items\(\) has no return type specified\.$#'
- identifier: missingType.return
- count: 1
- path: includes/class-wc-cart.php
-
- -
- message: '#^Method WC_Cart\:\:check_customer_coupons\(\) has no return type specified\.$#'
- identifier: missingType.return
- count: 1
- path: includes/class-wc-cart.php
-
- -
- message: '#^Method WC_Cart\:\:empty_cart\(\) has no return type specified\.$#'
- identifier: missingType.return
- count: 1
- path: includes/class-wc-cart.php
-
- -
- message: '#^Method WC_Cart\:\:get_cart_contents_taxes\(\) has no return type specified\.$#'
- identifier: missingType.return
- count: 1
- path: includes/class-wc-cart.php
-
- -
- message: '#^Method WC_Cart\:\:get_displayed_subtotal\(\) should return string but returns float\.$#'
- identifier: return.type
- count: 1
- path: includes/class-wc-cart.php
-
- -
- message: '#^Method WC_Cart\:\:get_fee_taxes\(\) has no return type specified\.$#'
- identifier: missingType.return
- count: 1
- path: includes/class-wc-cart.php
-
- -
- message: '#^Method WC_Cart\:\:get_shipping_taxes\(\) has no return type specified\.$#'
- identifier: missingType.return
- count: 1
- path: includes/class-wc-cart.php
-
- -
- message: '#^Method WC_Cart\:\:remove_coupons\(\) has no return type specified\.$#'
- identifier: missingType.return
- count: 1
- path: includes/class-wc-cart.php
-
- -
- message: '#^Method WC_Cart\:\:reset_totals\(\) has no return type specified\.$#'
- identifier: missingType.return
- count: 1
- path: includes/class-wc-cart.php
-
- -
- message: '#^Method WC_Cart\:\:set_applied_coupons\(\) has no return type specified\.$#'
- identifier: missingType.return
- count: 1
- path: includes/class-wc-cart.php
-
- -
- message: '#^Method WC_Cart\:\:set_cart_contents\(\) has no return type specified\.$#'
- identifier: missingType.return
- count: 1
- path: includes/class-wc-cart.php
-
- -
- message: '#^Method WC_Cart\:\:set_cart_contents_tax\(\) has no return type specified\.$#'
- identifier: missingType.return
- count: 1
- path: includes/class-wc-cart.php
-
- -
- message: '#^Method WC_Cart\:\:set_cart_contents_taxes\(\) has no return type specified\.$#'
- identifier: missingType.return
- count: 1
- path: includes/class-wc-cart.php
-
- -
- message: '#^Method WC_Cart\:\:set_cart_contents_total\(\) has no return type specified\.$#'
- identifier: missingType.return
- count: 1
- path: includes/class-wc-cart.php
-
- -
- message: '#^Method WC_Cart\:\:set_coupon_discount_tax_totals\(\) has no return type specified\.$#'
- identifier: missingType.return
- count: 1
- path: includes/class-wc-cart.php
-
- -
- message: '#^Method WC_Cart\:\:set_coupon_discount_totals\(\) has no return type specified\.$#'
- identifier: missingType.return
- count: 1
- path: includes/class-wc-cart.php
-
- -
- message: '#^Method WC_Cart\:\:set_discount_tax\(\) has no return type specified\.$#'
- identifier: missingType.return
- count: 1
- path: includes/class-wc-cart.php
-
- -
- message: '#^Method WC_Cart\:\:set_discount_total\(\) has no return type specified\.$#'
- identifier: missingType.return
- count: 1
- path: includes/class-wc-cart.php
-
- -
- message: '#^Method WC_Cart\:\:set_fee_tax\(\) has no return type specified\.$#'
- identifier: missingType.return
- count: 1
- path: includes/class-wc-cart.php
-
- -
- message: '#^Method WC_Cart\:\:set_fee_taxes\(\) has no return type specified\.$#'
- identifier: missingType.return
- count: 1
- path: includes/class-wc-cart.php
-
- -
- message: '#^Method WC_Cart\:\:set_fee_total\(\) has no return type specified\.$#'
- identifier: missingType.return
- count: 1
- path: includes/class-wc-cart.php
-
- -
- message: '#^Method WC_Cart\:\:set_removed_cart_contents\(\) has no return type specified\.$#'
- identifier: missingType.return
- count: 1
- path: includes/class-wc-cart.php
-
- -
- message: '#^Method WC_Cart\:\:set_shipping_tax\(\) has no return type specified\.$#'
- identifier: missingType.return
- count: 1
- path: includes/class-wc-cart.php
-
- -
- message: '#^Method WC_Cart\:\:set_shipping_taxes\(\) has no return type specified\.$#'
- identifier: missingType.return
- count: 1
- path: includes/class-wc-cart.php
-
- -
- message: '#^Method WC_Cart\:\:set_shipping_total\(\) has no return type specified\.$#'
- identifier: missingType.return
- count: 1
- path: includes/class-wc-cart.php
-
- -
- message: '#^Method WC_Cart\:\:set_subtotal\(\) has no return type specified\.$#'
- identifier: missingType.return
- count: 1
- path: includes/class-wc-cart.php
-
- -
- message: '#^Method WC_Cart\:\:set_subtotal_tax\(\) has no return type specified\.$#'
- identifier: missingType.return
- count: 1
- path: includes/class-wc-cart.php
-
- -
- message: '#^Method WC_Cart\:\:set_total\(\) has no return type specified\.$#'
- identifier: missingType.return
- count: 1
- path: includes/class-wc-cart.php
-
- -
- message: '#^Method WC_Cart\:\:set_total_tax\(\) has no return type specified\.$#'
- identifier: missingType.return
- count: 1
- path: includes/class-wc-cart.php
-
- -
- message: '#^Method WC_Cart\:\:set_totals\(\) has no return type specified\.$#'
- identifier: missingType.return
- count: 1
- path: includes/class-wc-cart.php
-
-
message: '#^Parameter \#1 \$price of function wc_price expects float, float\|string given\.$#'
identifier: argument.type
@@ -13032,294 +12210,12 @@ parameters:
count: 1
path: includes/class-wc-customer.php
- -
- message: '#^Method WC_Customer\:\:get_avatar_url\(\) should return string but returns string\|false\.$#'
- identifier: return.type
- count: 1
- path: includes/class-wc-customer.php
-
- -
- message: '#^Method WC_Customer\:\:get_calculated_shipping\(\) should return bool but returns string\.$#'
- identifier: return.type
- count: 1
- path: includes/class-wc-customer.php
-
- -
- message: '#^Method WC_Customer\:\:get_is_vat_exempt\(\) should return bool but returns string\.$#'
- identifier: return.type
- count: 1
- path: includes/class-wc-customer.php
-
- -
- message: '#^Method WC_Customer\:\:set_address_prop\(\) has no return type specified\.$#'
- identifier: missingType.return
- count: 1
- path: includes/class-wc-customer.php
-
- -
- message: '#^Method WC_Customer\:\:set_billing_address\(\) has no return type specified\.$#'
- identifier: missingType.return
- count: 1
- path: includes/class-wc-customer.php
-
- -
- message: '#^Method WC_Customer\:\:set_billing_address_1\(\) has no return type specified\.$#'
- identifier: missingType.return
- count: 1
- path: includes/class-wc-customer.php
-
- -
- message: '#^Method WC_Customer\:\:set_billing_address_2\(\) has no return type specified\.$#'
- identifier: missingType.return
- count: 1
- path: includes/class-wc-customer.php
-
- -
- message: '#^Method WC_Customer\:\:set_billing_address_to_base\(\) has no return type specified\.$#'
- identifier: missingType.return
- count: 1
- path: includes/class-wc-customer.php
-
- -
- message: '#^Method WC_Customer\:\:set_billing_city\(\) has no return type specified\.$#'
- identifier: missingType.return
- count: 1
- path: includes/class-wc-customer.php
-
- -
- message: '#^Method WC_Customer\:\:set_billing_company\(\) has no return type specified\.$#'
- identifier: missingType.return
- count: 1
- path: includes/class-wc-customer.php
-
- -
- message: '#^Method WC_Customer\:\:set_billing_country\(\) has no return type specified\.$#'
- identifier: missingType.return
- count: 1
- path: includes/class-wc-customer.php
-
- -
- message: '#^Method WC_Customer\:\:set_billing_email\(\) has no return type specified\.$#'
- identifier: missingType.return
- count: 1
- path: includes/class-wc-customer.php
-
- -
- message: '#^Method WC_Customer\:\:set_billing_first_name\(\) has no return type specified\.$#'
- identifier: missingType.return
- count: 1
- path: includes/class-wc-customer.php
-
- -
- message: '#^Method WC_Customer\:\:set_billing_last_name\(\) has no return type specified\.$#'
- identifier: missingType.return
- count: 1
- path: includes/class-wc-customer.php
-
- -
- message: '#^Method WC_Customer\:\:set_billing_location\(\) has no return type specified\.$#'
- identifier: missingType.return
- count: 1
- path: includes/class-wc-customer.php
-
- -
- message: '#^Method WC_Customer\:\:set_billing_phone\(\) has no return type specified\.$#'
- identifier: missingType.return
- count: 1
- path: includes/class-wc-customer.php
-
- -
- message: '#^Method WC_Customer\:\:set_billing_postcode\(\) has no return type specified\.$#'
- identifier: missingType.return
- count: 1
- path: includes/class-wc-customer.php
-
- -
- message: '#^Method WC_Customer\:\:set_billing_state\(\) has no return type specified\.$#'
- identifier: missingType.return
- count: 1
- path: includes/class-wc-customer.php
-
- -
- message: '#^Method WC_Customer\:\:set_calculated_shipping\(\) has no return type specified\.$#'
- identifier: missingType.return
- count: 1
- path: includes/class-wc-customer.php
-
- -
- message: '#^Method WC_Customer\:\:set_date_created\(\) has no return type specified\.$#'
- identifier: missingType.return
- count: 1
- path: includes/class-wc-customer.php
-
- -
- message: '#^Method WC_Customer\:\:set_date_modified\(\) has no return type specified\.$#'
- identifier: missingType.return
- count: 1
- path: includes/class-wc-customer.php
-
- -
- message: '#^Method WC_Customer\:\:set_display_name\(\) has no return type specified\.$#'
- identifier: missingType.return
- count: 1
- path: includes/class-wc-customer.php
-
- -
- message: '#^Method WC_Customer\:\:set_email\(\) has no return type specified\.$#'
- identifier: missingType.return
- count: 1
- path: includes/class-wc-customer.php
-
- -
- message: '#^Method WC_Customer\:\:set_first_name\(\) has no return type specified\.$#'
- identifier: missingType.return
- count: 1
- path: includes/class-wc-customer.php
-
- -
- message: '#^Method WC_Customer\:\:set_is_paying_customer\(\) has no return type specified\.$#'
- identifier: missingType.return
- count: 1
- path: includes/class-wc-customer.php
-
- -
- message: '#^Method WC_Customer\:\:set_is_vat_exempt\(\) has no return type specified\.$#'
- identifier: missingType.return
- count: 1
- path: includes/class-wc-customer.php
-
- -
- message: '#^Method WC_Customer\:\:set_last_name\(\) has no return type specified\.$#'
- identifier: missingType.return
- count: 1
- path: includes/class-wc-customer.php
-
- -
- message: '#^Method WC_Customer\:\:set_password\(\) has no return type specified\.$#'
- identifier: missingType.return
- count: 1
- path: includes/class-wc-customer.php
-
- -
- message: '#^Method WC_Customer\:\:set_role\(\) has no return type specified\.$#'
- identifier: missingType.return
- count: 1
- path: includes/class-wc-customer.php
-
- -
- message: '#^Method WC_Customer\:\:set_shipping_address\(\) has no return type specified\.$#'
- identifier: missingType.return
- count: 1
- path: includes/class-wc-customer.php
-
- -
- message: '#^Method WC_Customer\:\:set_shipping_address_1\(\) has no return type specified\.$#'
- identifier: missingType.return
- count: 1
- path: includes/class-wc-customer.php
-
- -
- message: '#^Method WC_Customer\:\:set_shipping_address_2\(\) has no return type specified\.$#'
- identifier: missingType.return
- count: 1
- path: includes/class-wc-customer.php
-
- -
- message: '#^Method WC_Customer\:\:set_shipping_address_to_base\(\) has no return type specified\.$#'
- identifier: missingType.return
- count: 1
- path: includes/class-wc-customer.php
-
- -
- message: '#^Method WC_Customer\:\:set_shipping_city\(\) has no return type specified\.$#'
- identifier: missingType.return
- count: 1
- path: includes/class-wc-customer.php
-
- -
- message: '#^Method WC_Customer\:\:set_shipping_company\(\) has no return type specified\.$#'
- identifier: missingType.return
- count: 1
- path: includes/class-wc-customer.php
-
- -
- message: '#^Method WC_Customer\:\:set_shipping_country\(\) has no return type specified\.$#'
- identifier: missingType.return
- count: 1
- path: includes/class-wc-customer.php
-
- -
- message: '#^Method WC_Customer\:\:set_shipping_first_name\(\) has no return type specified\.$#'
- identifier: missingType.return
- count: 1
- path: includes/class-wc-customer.php
-
- -
- message: '#^Method WC_Customer\:\:set_shipping_last_name\(\) has no return type specified\.$#'
- identifier: missingType.return
- count: 1
- path: includes/class-wc-customer.php
-
- -
- message: '#^Method WC_Customer\:\:set_shipping_location\(\) has no return type specified\.$#'
- identifier: missingType.return
- count: 1
- path: includes/class-wc-customer.php
-
- -
- message: '#^Method WC_Customer\:\:set_shipping_phone\(\) has no return type specified\.$#'
- identifier: missingType.return
- count: 1
- path: includes/class-wc-customer.php
-
- -
- message: '#^Method WC_Customer\:\:set_shipping_postcode\(\) has no return type specified\.$#'
- identifier: missingType.return
- count: 1
- path: includes/class-wc-customer.php
-
- -
- message: '#^Method WC_Customer\:\:set_shipping_state\(\) has no return type specified\.$#'
- identifier: missingType.return
- count: 1
- path: includes/class-wc-customer.php
-
- -
- message: '#^Method WC_Customer\:\:set_username\(\) has no return type specified\.$#'
- identifier: missingType.return
- count: 1
- path: includes/class-wc-customer.php
-
-
message: '#^Parameter \#2 \$value of method WC_Data\:\:set_date_prop\(\) expects int\|string, int\|string\|null given\.$#'
identifier: argument.type
count: 2
path: includes/class-wc-customer.php
- -
- message: '#^Property WC_Customer\:\:\$calculated_shipping \(string\) does not accept bool\.$#'
- identifier: assign.propertyType
- count: 1
- path: includes/class-wc-customer.php
-
- -
- message: '#^Property WC_Customer\:\:\$calculated_shipping \(string\) does not accept default value of type false\.$#'
- identifier: property.defaultValue
- count: 1
- path: includes/class-wc-customer.php
-
- -
- message: '#^Property WC_Customer\:\:\$is_vat_exempt \(string\) does not accept bool\.$#'
- identifier: assign.propertyType
- count: 1
- path: includes/class-wc-customer.php
-
- -
- message: '#^Property WC_Customer\:\:\$is_vat_exempt \(string\) does not accept default value of type false\.$#'
- identifier: property.defaultValue
- count: 1
- path: includes/class-wc-customer.php
-
-
message: '#^Property WooCommerce\:\:\$session \(WC_Session\) in isset\(\) is not nullable\.$#'
identifier: isset.property
@@ -14640,276 +13536,6 @@ parameters:
count: 2
path: includes/class-wc-install.php
- -
- message: '#^Method WC_Install\:\:add_coming_soon_option\(\) has no return type specified\.$#'
- identifier: missingType.return
- count: 1
- path: includes/class-wc-install.php
-
- -
- message: '#^Method WC_Install\:\:add_update_db_notice\(\) has no return type specified\.$#'
- identifier: missingType.return
- count: 1
- path: includes/class-wc-install.php
-
- -
- message: '#^Method WC_Install\:\:associate_plugin_file\(\) has no return type specified\.$#'
- identifier: missingType.return
- count: 1
- path: includes/class-wc-install.php
-
- -
- message: '#^Method WC_Install\:\:background_installer\(\) has no return type specified\.$#'
- identifier: missingType.return
- count: 1
- path: includes/class-wc-install.php
-
- -
- message: '#^Method WC_Install\:\:check_version\(\) has no return type specified\.$#'
- identifier: missingType.return
- count: 1
- path: includes/class-wc-install.php
-
- -
- message: '#^Method WC_Install\:\:clear_cron_jobs\(\) has no return type specified\.$#'
- identifier: missingType.return
- count: 1
- path: includes/class-wc-install.php
-
- -
- message: '#^Method WC_Install\:\:create_files\(\) has no return type specified\.$#'
- identifier: missingType.return
- count: 1
- path: includes/class-wc-install.php
-
- -
- message: '#^Method WC_Install\:\:create_options\(\) has no return type specified\.$#'
- identifier: missingType.return
- count: 1
- path: includes/class-wc-install.php
-
- -
- message: '#^Method WC_Install\:\:create_pages\(\) has no return type specified\.$#'
- identifier: missingType.return
- count: 1
- path: includes/class-wc-install.php
-
- -
- message: '#^Method WC_Install\:\:create_placeholder_image\(\) has no return type specified\.$#'
- identifier: missingType.return
- count: 1
- path: includes/class-wc-install.php
-
- -
- message: '#^Method WC_Install\:\:create_roles\(\) has no return type specified\.$#'
- identifier: missingType.return
- count: 1
- path: includes/class-wc-install.php
-
- -
- message: '#^Method WC_Install\:\:create_terms\(\) has no return type specified\.$#'
- identifier: missingType.return
- count: 1
- path: includes/class-wc-install.php
-
- -
- message: '#^Method WC_Install\:\:delete_obsolete_notes\(\) has no return type specified\.$#'
- identifier: missingType.return
- count: 1
- path: includes/class-wc-install.php
-
- -
- message: '#^Method WC_Install\:\:enable_customer_stock_notifications_signups\(\) has no return type specified\.$#'
- identifier: missingType.return
- count: 1
- path: includes/class-wc-install.php
-
- -
- message: '#^Method WC_Install\:\:enable_email_improvements_for_existing_merchants\(\) has no return type specified\.$#'
- identifier: missingType.return
- count: 1
- path: includes/class-wc-install.php
-
- -
- message: '#^Method WC_Install\:\:enable_email_improvements_for_newly_installed\(\) has no return type specified\.$#'
- identifier: missingType.return
- count: 1
- path: includes/class-wc-install.php
-
- -
- message: '#^Method WC_Install\:\:init\(\) has no return type specified\.$#'
- identifier: missingType.return
- count: 1
- path: includes/class-wc-install.php
-
- -
- message: '#^Method WC_Install\:\:install\(\) has no return type specified\.$#'
- identifier: missingType.return
- count: 1
- path: includes/class-wc-install.php
-
- -
- message: '#^Method WC_Install\:\:install_actions\(\) has no return type specified\.$#'
- identifier: missingType.return
- count: 1
- path: includes/class-wc-install.php
-
- -
- message: '#^Method WC_Install\:\:install_core\(\) has no return type specified\.$#'
- identifier: missingType.return
- count: 1
- path: includes/class-wc-install.php
-
- -
- message: '#^Method WC_Install\:\:manual_database_update\(\) has no return type specified\.$#'
- identifier: missingType.return
- count: 1
- path: includes/class-wc-install.php
-
- -
- message: '#^Method WC_Install\:\:maybe_activate_legacy_api_enabled_option\(\) has no return type specified\.$#'
- identifier: missingType.return
- count: 1
- path: includes/class-wc-install.php
-
- -
- message: '#^Method WC_Install\:\:maybe_create_pages\(\) has no return type specified\.$#'
- identifier: missingType.return
- count: 1
- path: includes/class-wc-install.php
-
- -
- message: '#^Method WC_Install\:\:maybe_enable_hpos\(\) has no return type specified\.$#'
- identifier: missingType.return
- count: 1
- path: includes/class-wc-install.php
-
- -
- message: '#^Method WC_Install\:\:maybe_install_legacy_api_plugin\(\) has no return type specified\.$#'
- identifier: missingType.return
- count: 1
- path: includes/class-wc-install.php
-
- -
- message: '#^Method WC_Install\:\:maybe_set_activation_transients\(\) has no return type specified\.$#'
- identifier: missingType.return
- count: 1
- path: includes/class-wc-install.php
-
- -
- message: '#^Method WC_Install\:\:maybe_set_store_id\(\) has no return type specified\.$#'
- identifier: missingType.return
- count: 1
- path: includes/class-wc-install.php
-
- -
- message: '#^Method WC_Install\:\:maybe_update_db_version\(\) has no return type specified\.$#'
- identifier: missingType.return
- count: 1
- path: includes/class-wc-install.php
-
- -
- message: '#^Method WC_Install\:\:migrate_options\(\) has no return type specified\.$#'
- identifier: missingType.return
- count: 1
- path: includes/class-wc-install.php
-
- -
- message: '#^Method WC_Install\:\:newly_installed\(\) has no return type specified\.$#'
- identifier: missingType.return
- count: 1
- path: includes/class-wc-install.php
-
- -
- message: '#^Method WC_Install\:\:remove_admin_notices\(\) has no return type specified\.$#'
- identifier: missingType.return
- count: 1
- path: includes/class-wc-install.php
-
- -
- message: '#^Method WC_Install\:\:remove_mailchimps_redirect\(\) has no return type specified\.$#'
- identifier: missingType.return
- count: 1
- path: includes/class-wc-install.php
-
- -
- message: '#^Method WC_Install\:\:remove_roles\(\) has no return type specified\.$#'
- identifier: missingType.return
- count: 1
- path: includes/class-wc-install.php
-
- -
- message: '#^Method WC_Install\:\:remove_update_db_notice\(\) has no return type specified\.$#'
- identifier: missingType.return
- count: 1
- path: includes/class-wc-install.php
-
- -
- message: '#^Method WC_Install\:\:run_manual_database_update\(\) has no return type specified\.$#'
- identifier: missingType.return
- count: 1
- path: includes/class-wc-install.php
-
- -
- message: '#^Method WC_Install\:\:run_update_callback\(\) has no return type specified\.$#'
- identifier: missingType.return
- count: 1
- path: includes/class-wc-install.php
-
- -
- message: '#^Method WC_Install\:\:run_update_callback_end\(\) has no return type specified\.$#'
- identifier: missingType.return
- count: 1
- path: includes/class-wc-install.php
-
- -
- message: '#^Method WC_Install\:\:run_update_callback_start\(\) has no return type specified\.$#'
- identifier: missingType.return
- count: 1
- path: includes/class-wc-install.php
-
- -
- message: '#^Method WC_Install\:\:set_paypal_standard_load_eligibility\(\) has no return type specified\.$#'
- identifier: missingType.return
- count: 1
- path: includes/class-wc-install.php
-
- -
- message: '#^Method WC_Install\:\:setup_environment\(\) has no return type specified\.$#'
- identifier: missingType.return
- count: 1
- path: includes/class-wc-install.php
-
- -
- message: '#^Method WC_Install\:\:theme_background_installer\(\) has no return type specified\.$#'
- identifier: missingType.return
- count: 1
- path: includes/class-wc-install.php
-
- -
- message: '#^Method WC_Install\:\:update\(\) has no return type specified\.$#'
- identifier: missingType.return
- count: 1
- path: includes/class-wc-install.php
-
- -
- message: '#^Method WC_Install\:\:update_db_version\(\) has no return type specified\.$#'
- identifier: missingType.return
- count: 1
- path: includes/class-wc-install.php
-
- -
- message: '#^Method WC_Install\:\:update_wc_version\(\) has no return type specified\.$#'
- identifier: missingType.return
- count: 1
- path: includes/class-wc-install.php
-
- -
- message: '#^Method WC_Install\:\:wc_admin_db_update_notice\(\) has no return type specified\.$#'
- identifier: missingType.return
- count: 1
- path: includes/class-wc-install.php
-
-
message: '#^Parameter \#1 \$post of function wp_attachment_is_image expects int\|WP_Post\|null, float\|int\<min, \-1\>\|int\<1, max\>\|string given\.$#'
identifier: argument.type
@@ -15840,258 +14466,12 @@ parameters:
count: 1
path: includes/class-wc-order.php
- -
- message: '#^Method WC_Order\:\:add_order_item_totals_payment_method_row\(\) has no return type specified\.$#'
- identifier: missingType.return
- count: 1
- path: includes/class-wc-order.php
-
- -
- message: '#^Method WC_Order\:\:add_order_item_totals_refund_rows\(\) has no return type specified\.$#'
- identifier: missingType.return
- count: 1
- path: includes/class-wc-order.php
-
-
message: '#^Method WC_Order\:\:add_order_note\(\) should return int but returns int\|false\.$#'
identifier: return.type
count: 1
path: includes/class-wc-order.php
- -
- message: '#^Method WC_Order\:\:handle_exception\(\) has no return type specified\.$#'
- identifier: missingType.return
- count: 1
- path: includes/class-wc-order.php
-
- -
- message: '#^Method WC_Order\:\:maybe_set_date_completed\(\) has no return type specified\.$#'
- identifier: missingType.return
- count: 1
- path: includes/class-wc-order.php
-
- -
- message: '#^Method WC_Order\:\:maybe_set_date_paid\(\) has no return type specified\.$#'
- identifier: missingType.return
- count: 1
- path: includes/class-wc-order.php
-
- -
- message: '#^Method WC_Order\:\:maybe_set_user_billing_email\(\) has no return type specified\.$#'
- identifier: missingType.return
- count: 1
- path: includes/class-wc-order.php
-
- -
- message: '#^Method WC_Order\:\:set_address_prop\(\) has no return type specified\.$#'
- identifier: missingType.return
- count: 1
- path: includes/class-wc-order.php
-
- -
- message: '#^Method WC_Order\:\:set_billing_address_1\(\) has no return type specified\.$#'
- identifier: missingType.return
- count: 1
- path: includes/class-wc-order.php
-
- -
- message: '#^Method WC_Order\:\:set_billing_address_2\(\) has no return type specified\.$#'
- identifier: missingType.return
- count: 1
- path: includes/class-wc-order.php
-
- -
- message: '#^Method WC_Order\:\:set_billing_city\(\) has no return type specified\.$#'
- identifier: missingType.return
- count: 1
- path: includes/class-wc-order.php
-
- -
- message: '#^Method WC_Order\:\:set_billing_company\(\) has no return type specified\.$#'
- identifier: missingType.return
- count: 1
- path: includes/class-wc-order.php
-
- -
- message: '#^Method WC_Order\:\:set_billing_country\(\) has no return type specified\.$#'
- identifier: missingType.return
- count: 1
- path: includes/class-wc-order.php
-
- -
- message: '#^Method WC_Order\:\:set_billing_email\(\) has no return type specified\.$#'
- identifier: missingType.return
- count: 1
- path: includes/class-wc-order.php
-
- -
- message: '#^Method WC_Order\:\:set_billing_first_name\(\) has no return type specified\.$#'
- identifier: missingType.return
- count: 1
- path: includes/class-wc-order.php
-
- -
- message: '#^Method WC_Order\:\:set_billing_last_name\(\) has no return type specified\.$#'
- identifier: missingType.return
- count: 1
- path: includes/class-wc-order.php
-
- -
- message: '#^Method WC_Order\:\:set_billing_phone\(\) has no return type specified\.$#'
- identifier: missingType.return
- count: 1
- path: includes/class-wc-order.php
-
- -
- message: '#^Method WC_Order\:\:set_billing_postcode\(\) has no return type specified\.$#'
- identifier: missingType.return
- count: 1
- path: includes/class-wc-order.php
-
- -
- message: '#^Method WC_Order\:\:set_billing_state\(\) has no return type specified\.$#'
- identifier: missingType.return
- count: 1
- path: includes/class-wc-order.php
-
- -
- message: '#^Method WC_Order\:\:set_cart_hash\(\) has no return type specified\.$#'
- identifier: missingType.return
- count: 1
- path: includes/class-wc-order.php
-
- -
- message: '#^Method WC_Order\:\:set_created_via\(\) has no return type specified\.$#'
- identifier: missingType.return
- count: 1
- path: includes/class-wc-order.php
-
- -
- message: '#^Method WC_Order\:\:set_customer_id\(\) has no return type specified\.$#'
- identifier: missingType.return
- count: 1
- path: includes/class-wc-order.php
-
- -
- message: '#^Method WC_Order\:\:set_customer_ip_address\(\) has no return type specified\.$#'
- identifier: missingType.return
- count: 1
- path: includes/class-wc-order.php
-
- -
- message: '#^Method WC_Order\:\:set_customer_note\(\) has no return type specified\.$#'
- identifier: missingType.return
- count: 1
- path: includes/class-wc-order.php
-
- -
- message: '#^Method WC_Order\:\:set_customer_user_agent\(\) has no return type specified\.$#'
- identifier: missingType.return
- count: 1
- path: includes/class-wc-order.php
-
- -
- message: '#^Method WC_Order\:\:set_date_completed\(\) has no return type specified\.$#'
- identifier: missingType.return
- count: 1
- path: includes/class-wc-order.php
-
- -
- message: '#^Method WC_Order\:\:set_date_paid\(\) has no return type specified\.$#'
- identifier: missingType.return
- count: 1
- path: includes/class-wc-order.php
-
- -
- message: '#^Method WC_Order\:\:set_order_key\(\) has no return type specified\.$#'
- identifier: missingType.return
- count: 1
- path: includes/class-wc-order.php
-
- -
- message: '#^Method WC_Order\:\:set_payment_method\(\) has no return type specified\.$#'
- identifier: missingType.return
- count: 1
- path: includes/class-wc-order.php
-
- -
- message: '#^Method WC_Order\:\:set_payment_method_title\(\) has no return type specified\.$#'
- identifier: missingType.return
- count: 1
- path: includes/class-wc-order.php
-
- -
- message: '#^Method WC_Order\:\:set_shipping_address_1\(\) has no return type specified\.$#'
- identifier: missingType.return
- count: 1
- path: includes/class-wc-order.php
-
- -
- message: '#^Method WC_Order\:\:set_shipping_address_2\(\) has no return type specified\.$#'
- identifier: missingType.return
- count: 1
- path: includes/class-wc-order.php
-
- -
- message: '#^Method WC_Order\:\:set_shipping_city\(\) has no return type specified\.$#'
- identifier: missingType.return
- count: 1
- path: includes/class-wc-order.php
-
- -
- message: '#^Method WC_Order\:\:set_shipping_company\(\) has no return type specified\.$#'
- identifier: missingType.return
- count: 1
- path: includes/class-wc-order.php
-
- -
- message: '#^Method WC_Order\:\:set_shipping_country\(\) has no return type specified\.$#'
- identifier: missingType.return
- count: 1
- path: includes/class-wc-order.php
-
- -
- message: '#^Method WC_Order\:\:set_shipping_first_name\(\) has no return type specified\.$#'
- identifier: missingType.return
- count: 1
- path: includes/class-wc-order.php
-
- -
- message: '#^Method WC_Order\:\:set_shipping_last_name\(\) has no return type specified\.$#'
- identifier: missingType.return
- count: 1
- path: includes/class-wc-order.php
-
- -
- message: '#^Method WC_Order\:\:set_shipping_phone\(\) has no return type specified\.$#'
- identifier: missingType.return
- count: 1
- path: includes/class-wc-order.php
-
- -
- message: '#^Method WC_Order\:\:set_shipping_postcode\(\) has no return type specified\.$#'
- identifier: missingType.return
- count: 1
- path: includes/class-wc-order.php
-
- -
- message: '#^Method WC_Order\:\:set_shipping_state\(\) has no return type specified\.$#'
- identifier: missingType.return
- count: 1
- path: includes/class-wc-order.php
-
- -
- message: '#^Method WC_Order\:\:set_transaction_id\(\) has no return type specified\.$#'
- identifier: missingType.return
- count: 1
- path: includes/class-wc-order.php
-
- -
- message: '#^Method WC_Order\:\:status_transition\(\) has no return type specified\.$#'
- identifier: missingType.return
- count: 1
- path: includes/class-wc-order.php
-
-
message: '#^One or more @param tags has an invalid name or invalid syntax\.$#'
identifier: phpDoc.parseError
@@ -16932,36 +15312,18 @@ parameters:
count: 1
path: includes/class-wc-product-download.php
- -
- message: '#^Method WC_Product_External\:\:set_backorders\(\) has no return type specified\.$#'
- identifier: missingType.return
- count: 1
- path: includes/class-wc-product-external.php
-
-
message: '#^Method WC_Product_External\:\:set_button_text\(\) has no return type specified\.$#'
identifier: missingType.return
count: 1
path: includes/class-wc-product-external.php
- -
- message: '#^Method WC_Product_External\:\:set_manage_stock\(\) has no return type specified\.$#'
- identifier: missingType.return
- count: 1
- path: includes/class-wc-product-external.php
-
-
message: '#^Method WC_Product_External\:\:set_product_url\(\) has no return type specified\.$#'
identifier: missingType.return
count: 1
path: includes/class-wc-product-external.php
- -
- message: '#^Method WC_Product_External\:\:set_stock_status\(\) has no return type specified\.$#'
- identifier: missingType.return
- count: 1
- path: includes/class-wc-product-external.php
-
-
message: '#^@param string \$classname does not accept actual type of parameter\: string\|false\.$#'
identifier: parameter.phpDocType
@@ -17190,12 +15552,6 @@ parameters:
count: 2
path: includes/class-wc-product-variable.php
- -
- message: '#^Method WC_Product_Variable\:\:after_data_store_save_or_update\(\) has no return type specified\.$#'
- identifier: missingType.return
- count: 1
- path: includes/class-wc-product-variable.php
-
-
message: '#^Method WC_Product_Variable\:\:get_available_variations\(\) should return array\<array\|WC_Product_Variation\> but returns list\<array\|bool\|WC_Product\>\.$#'
identifier: return.type
@@ -17232,12 +15588,6 @@ parameters:
count: 1
path: includes/class-wc-product-variable.php
- -
- message: '#^Method WC_Product_Variable\:\:validate_props\(\) has no return type specified\.$#'
- identifier: missingType.return
- count: 1
- path: includes/class-wc-product-variable.php
-
-
message: '#^Parameter \#1 \$attachment_id of function wc_get_product_attachment_props expects int\|null, string given\.$#'
identifier: argument.type
@@ -17280,12 +15630,6 @@ parameters:
count: 1
path: includes/class-wc-product-variation.php
- -
- message: '#^Method WC_Product_Variation\:\:set_attributes\(\) has no return type specified\.$#'
- identifier: missingType.return
- count: 1
- path: includes/class-wc-product-variation.php
-
-
message: '#^Method WC_Product_Variation\:\:set_parent_data\(\) has no return type specified\.$#'
identifier: missingType.return
@@ -35121,12 +33465,6 @@ parameters:
count: 1
path: includes/shipping/free-shipping/class-wc-shipping-free-shipping.php
- -
- message: '#^Binary operation "\-" between string and float results in an error\.$#'
- identifier: binaryOp.invalid
- count: 1
- path: includes/shipping/free-shipping/class-wc-shipping-free-shipping.php
-
-
message: '#^Method WC_Shipping_Free_Shipping\:\:calculate_shipping\(\) has no return type specified\.$#'
identifier: missingType.return
@@ -35259,12 +33597,6 @@ parameters:
count: 1
path: includes/shipping/legacy-free-shipping/class-wc-shipping-legacy-free-shipping.php
- -
- message: '#^Binary operation "\-" between string and float results in an error\.$#'
- identifier: binaryOp.invalid
- count: 2
- path: includes/shipping/legacy-free-shipping/class-wc-shipping-legacy-free-shipping.php
-
-
message: '#^Method WC_Shipping_Legacy_Free_Shipping\:\:calculate_shipping\(\) has no return type specified\.$#'
identifier: missingType.return
@@ -55893,12 +54225,6 @@ parameters:
count: 1
path: src/Blocks/BlockTypes/MiniCart.php
- -
- message: '#^Parameter \#1 \$price of function wc_price expects float, string given\.$#'
- identifier: argument.type
- count: 1
- path: src/Blocks/BlockTypes/MiniCart.php
-
-
message: '#^Parameter \#1 \$query of method WP_HTML_Tag_Processor\:\:next_tag\(\) expects array\{tag_name\?\: string\|null, match_offset\?\: int\|null, class_name\?\: string\|null, tag_closers\?\: string\|null\}\|null, ''bdi'' given\.$#'
identifier: argument.type