Commit 75052b5052 for woocommerce

commit 75052b50522bc93674cc10a576f8dcf3ce628782
Author: woocommercebot <30233865+woocommercebot@users.noreply.github.com>
Date:   Mon Dec 29 12:44:05 2025 +0000

    [Backport to trunk] Apply patch 438 (#62559)

    * Apply patch 438 (#62557)

    * Apply patch 438

    * Escape errors

    * Lint fixes

    * fix phpstan errors

    * update baseline

    * refresh baseline after rebase

    ---------

    Co-authored-by: Thomas Roberts <5656702+opr@users.noreply.github.com>
    Co-authored-by: Nadir Seghir <nadir.seghir@gmail.com>

diff --git a/plugins/woocommerce/changelog/fix-order-view b/plugins/woocommerce/changelog/fix-order-view
new file mode 100644
index 0000000000..768c8a4912
--- /dev/null
+++ b/plugins/woocommerce/changelog/fix-order-view
@@ -0,0 +1,4 @@
+Significance: patch
+Type: fix
+
+Ensure guest orders cannot be read by customers without providing the key and billing address.
diff --git a/plugins/woocommerce/includes/class-wc-order-factory.php b/plugins/woocommerce/includes/class-wc-order-factory.php
index 66cd1215e7..be167b6a53 100644
--- a/plugins/woocommerce/includes/class-wc-order-factory.php
+++ b/plugins/woocommerce/includes/class-wc-order-factory.php
@@ -22,7 +22,7 @@ class WC_Order_Factory {
 	 * Get order.
 	 *
 	 * @param  mixed $order_id (default: false) Order ID to get.
-	 * @return \WC_Order|bool
+	 * @return \WC_Order|false
 	 */
 	public static function get_order( $order_id = false ) {
 		$order_id = self::get_order_id( $order_id );
@@ -303,5 +303,4 @@ class WC_Order_Factory {
 		$classname = self::get_class_names_for_order_ids( array( $order_id ) );
 		return $classname[ $order_id ] ?? false;
 	}
-
 }
diff --git a/plugins/woocommerce/includes/wc-order-functions.php b/plugins/woocommerce/includes/wc-order-functions.php
index eb3b6a8669..177c160149 100644
--- a/plugins/woocommerce/includes/wc-order-functions.php
+++ b/plugins/woocommerce/includes/wc-order-functions.php
@@ -84,7 +84,7 @@ function wc_get_orders( $args ) {
  *
  * @param mixed $the_order       Post object or post ID of the order.
  *
- * @return bool|WC_Order|WC_Order_Refund
+ * @return false|WC_Order|WC_Order_Refund
  */
 function wc_get_order( $the_order = false ) {
 	if ( ! did_action( 'woocommerce_after_register_post_type' ) ) {
diff --git a/plugins/woocommerce/phpstan-baseline.neon b/plugins/woocommerce/phpstan-baseline.neon
index 7fe8aaa897..53e75e1a54 100644
--- a/plugins/woocommerce/phpstan-baseline.neon
+++ b/plugins/woocommerce/phpstan-baseline.neon
@@ -1050,12 +1050,6 @@ parameters:
 			count: 1
 			path: includes/abstracts/abstract-wc-payment-gateway.php

-		-
-			message: '#^Cannot call method get_total\(\) on WC_Order\|WC_Order_Refund\|true\.$#'
-			identifier: method.nonObject
-			count: 1
-			path: includes/abstracts/abstract-wc-payment-gateway.php
-
 		-
 			message: '#^Expected 3 @param tags, found 2\.$#'
 			identifier: paramTag.count
@@ -6049,7 +6043,7 @@ parameters:
 			path: includes/admin/list-tables/class-wc-admin-list-table-orders.php

 		-
-			message: '#^Cannot call method update_status\(\) on bool\|WC_Order\|WC_Order_Refund\.$#'
+			message: '#^Cannot call method update_status\(\) on WC_Order\|WC_Order_Refund\|false\.$#'
 			identifier: method.nonObject
 			count: 1
 			path: includes/admin/list-tables/class-wc-admin-list-table-orders.php
@@ -6205,7 +6199,7 @@ parameters:
 			path: includes/admin/list-tables/class-wc-admin-list-table-orders.php

 		-
-			message: '#^Property WC_Admin_List_Table\:\:\$object \(object\|null\) does not accept bool\|WC_Order\|WC_Order_Refund\.$#'
+			message: '#^Property WC_Admin_List_Table\:\:\$object \(object\|null\) does not accept WC_Order\|WC_Order_Refund\|false\.$#'
 			identifier: assign.propertyType
 			count: 1
 			path: includes/admin/list-tables/class-wc-admin-list-table-orders.php
@@ -6715,19 +6709,19 @@ parameters:
 			path: includes/admin/meta-boxes/class-wc-meta-box-order-actions.php

 		-
-			message: '#^Cannot call method add_order_note\(\) on bool\|WC_Order\|WC_Order_Refund\.$#'
+			message: '#^Cannot call method add_order_note\(\) on WC_Order\|WC_Order_Refund\|false\.$#'
 			identifier: method.nonObject
 			count: 1
 			path: includes/admin/meta-boxes/class-wc-meta-box-order-actions.php

 		-
-			message: '#^Cannot call method get_id\(\) on bool\|WC_Order\|WC_Order_Refund\.$#'
+			message: '#^Cannot call method get_id\(\) on WC_Order\|WC_Order_Refund\|false\.$#'
 			identifier: method.nonObject
 			count: 1
 			path: includes/admin/meta-boxes/class-wc-meta-box-order-actions.php

 		-
-			message: '#^Cannot call method get_type\(\) on bool\|WC_Order\|WC_Order_Refund\.$#'
+			message: '#^Cannot call method get_type\(\) on WC_Order\|WC_Order_Refund\|false\.$#'
 			identifier: method.nonObject
 			count: 1
 			path: includes/admin/meta-boxes/class-wc-meta-box-order-actions.php
@@ -6751,7 +6745,7 @@ parameters:
 			path: includes/admin/meta-boxes/class-wc-meta-box-order-actions.php

 		-
-			message: '#^Parameter \#1 \$order of method WC_Emails\:\:customer_invoice\(\) expects int\|WC_Order, bool\|WC_Order\|WC_Order_Refund given\.$#'
+			message: '#^Parameter \#1 \$order of method WC_Emails\:\:customer_invoice\(\) expects int\|WC_Order, WC_Order\|WC_Order_Refund\|false given\.$#'
 			identifier: argument.type
 			count: 1
 			path: includes/admin/meta-boxes/class-wc-meta-box-order-actions.php
@@ -6775,43 +6769,43 @@ parameters:
 			path: includes/admin/meta-boxes/class-wc-meta-box-order-data.php

 		-
-			message: '#^Cannot call method get_customer_id\(\) on bool\|WC_Order\|WC_Order_Refund\.$#'
+			message: '#^Cannot call method get_customer_id\(\) on WC_Order\|WC_Order_Refund\|false\.$#'
 			identifier: method.nonObject
 			count: 1
 			path: includes/admin/meta-boxes/class-wc-meta-box-order-data.php

 		-
-			message: '#^Cannot call method get_order_key\(\) on bool\|WC_Order\|WC_Order_Refund\.$#'
+			message: '#^Cannot call method get_order_key\(\) on WC_Order\|WC_Order_Refund\|false\.$#'
 			identifier: method.nonObject
 			count: 1
 			path: includes/admin/meta-boxes/class-wc-meta-box-order-data.php

 		-
-			message: '#^Cannot call method get_payment_method\(\) on bool\|WC_Order\|WC_Order_Refund\.$#'
+			message: '#^Cannot call method get_payment_method\(\) on WC_Order\|WC_Order_Refund\|false\.$#'
 			identifier: method.nonObject
 			count: 1
 			path: includes/admin/meta-boxes/class-wc-meta-box-order-data.php

 		-
-			message: '#^Cannot call method save\(\) on bool\|WC_Order\|WC_Order_Refund\.$#'
+			message: '#^Cannot call method save\(\) on WC_Order\|WC_Order_Refund\|false\.$#'
 			identifier: method.nonObject
 			count: 1
 			path: includes/admin/meta-boxes/class-wc-meta-box-order-data.php

 		-
-			message: '#^Cannot call method set_props\(\) on bool\|WC_Order\|WC_Order_Refund\.$#'
+			message: '#^Cannot call method set_props\(\) on WC_Order\|WC_Order_Refund\|false\.$#'
 			identifier: method.nonObject
 			count: 1
 			path: includes/admin/meta-boxes/class-wc-meta-box-order-data.php

 		-
-			message: '#^Cannot call method set_status\(\) on bool\|WC_Order\|WC_Order_Refund\.$#'
+			message: '#^Cannot call method set_status\(\) on WC_Order\|WC_Order_Refund\|false\.$#'
 			identifier: method.nonObject
 			count: 1
 			path: includes/admin/meta-boxes/class-wc-meta-box-order-data.php

 		-
-			message: '#^Cannot call method update_meta_data\(\) on bool\|WC_Order\|WC_Order_Refund\.$#'
+			message: '#^Cannot call method update_meta_data\(\) on WC_Order\|WC_Order_Refund\|false\.$#'
 			identifier: method.nonObject
 			count: 2
 			path: includes/admin/meta-boxes/class-wc-meta-box-order-data.php
@@ -6889,13 +6883,13 @@ parameters:
 			path: includes/admin/meta-boxes/class-wc-meta-box-order-data.php

 		-
-			message: '#^Parameter \#1 \$order of static method WC_Meta_Box_Order_Data\:\:get_billing_fields\(\) expects WC_Order, bool\|WC_Order\|WC_Order_Refund given\.$#'
+			message: '#^Parameter \#1 \$order of static method WC_Meta_Box_Order_Data\:\:get_billing_fields\(\) expects WC_Order, WC_Order\|WC_Order_Refund\|false given\.$#'
 			identifier: argument.type
 			count: 1
 			path: includes/admin/meta-boxes/class-wc-meta-box-order-data.php

 		-
-			message: '#^Parameter \#1 \$order of static method WC_Meta_Box_Order_Data\:\:get_shipping_fields\(\) expects WC_Order, bool\|WC_Order\|WC_Order_Refund given\.$#'
+			message: '#^Parameter \#1 \$order of static method WC_Meta_Box_Order_Data\:\:get_shipping_fields\(\) expects WC_Order, WC_Order\|WC_Order_Refund\|false given\.$#'
 			identifier: argument.type
 			count: 1
 			path: includes/admin/meta-boxes/class-wc-meta-box-order-data.php
@@ -8443,13 +8437,13 @@ parameters:
 			path: includes/admin/reports/class-wc-report-downloads.php

 		-
-			message: '#^Cannot call method get_file\(\) on array\.$#'
-			identifier: method.nonObject
-			count: 1
+			message: '#^Call to an undefined method WC_Order\|WC_Order_Refund\:\:get_order_number\(\)\.$#'
+			identifier: method.notFound
+			count: 2
 			path: includes/admin/reports/class-wc-report-downloads.php

 		-
-			message: '#^Cannot call method get_id\(\) on WC_Order\|WC_Order_Refund\|true\.$#'
+			message: '#^Cannot call method get_file\(\) on array\.$#'
 			identifier: method.nonObject
 			count: 1
 			path: includes/admin/reports/class-wc-report-downloads.php
@@ -8460,12 +8454,6 @@ parameters:
 			count: 1
 			path: includes/admin/reports/class-wc-report-downloads.php

-		-
-			message: '#^Cannot call method get_order_number\(\) on WC_Order\|WC_Order_Refund\|true\.$#'
-			identifier: method.nonObject
-			count: 2
-			path: includes/admin/reports/class-wc-report-downloads.php
-
 		-
 			message: '#^Method WC_Report_Downloads\:\:column_default\(\) has no return type specified\.$#'
 			identifier: missingType.return
@@ -8820,30 +8808,6 @@ parameters:
 			count: 2
 			path: includes/admin/reports/class-wc-report-taxes-by-date.php

-		-
-			message: '#^Cannot call method get_cart_tax\(\) on WC_Order\|WC_Order_Refund\|true\.$#'
-			identifier: method.nonObject
-			count: 1
-			path: includes/admin/reports/class-wc-report-taxes-by-date.php
-
-		-
-			message: '#^Cannot call method get_shipping_tax\(\) on WC_Order\|WC_Order_Refund\|true\.$#'
-			identifier: method.nonObject
-			count: 1
-			path: includes/admin/reports/class-wc-report-taxes-by-date.php
-
-		-
-			message: '#^Cannot call method get_shipping_total\(\) on WC_Order\|WC_Order_Refund\|true\.$#'
-			identifier: method.nonObject
-			count: 1
-			path: includes/admin/reports/class-wc-report-taxes-by-date.php
-
-		-
-			message: '#^Cannot call method get_total\(\) on WC_Order\|WC_Order_Refund\|true\.$#'
-			identifier: method.nonObject
-			count: 1
-			path: includes/admin/reports/class-wc-report-taxes-by-date.php
-
 		-
 			message: '#^Method WC_Report_Taxes_By_Date\:\:get_export_button\(\) has no return type specified\.$#'
 			identifier: missingType.return
@@ -9787,25 +9751,25 @@ parameters:
 			path: includes/admin/wc-admin-functions.php

 		-
-			message: '#^Cannot call method add_order_note\(\) on bool\|WC_Order\|WC_Order_Refund\.$#'
+			message: '#^Cannot call method add_order_note\(\) on WC_Order\|WC_Order_Refund\|false\.$#'
 			identifier: method.nonObject
 			count: 1
 			path: includes/admin/wc-admin-functions.php

 		-
-			message: '#^Cannot call method calculate_totals\(\) on bool\|WC_Order\|WC_Order_Refund\.$#'
+			message: '#^Cannot call method calculate_totals\(\) on WC_Order\|WC_Order_Refund\|false\.$#'
 			identifier: method.nonObject
 			count: 1
 			path: includes/admin/wc-admin-functions.php

 		-
-			message: '#^Cannot call method get_status\(\) on bool\|WC_Order\|WC_Order_Refund\.$#'
+			message: '#^Cannot call method get_status\(\) on WC_Order\|WC_Order_Refund\|false\.$#'
 			identifier: method.nonObject
 			count: 1
 			path: includes/admin/wc-admin-functions.php

 		-
-			message: '#^Cannot call method update_taxes\(\) on bool\|WC_Order\|WC_Order_Refund\.$#'
+			message: '#^Cannot call method update_taxes\(\) on WC_Order\|WC_Order_Refund\|false\.$#'
 			identifier: method.nonObject
 			count: 1
 			path: includes/admin/wc-admin-functions.php
@@ -10014,6 +9978,18 @@ parameters:
 			count: 1
 			path: includes/class-wc-ajax.php

+		-
+			message: '#^Call to an undefined method WC_Order\|WC_Order_Refund\:\:add_order_note\(\)\.$#'
+			identifier: method.notFound
+			count: 4
+			path: includes/class-wc-ajax.php
+
+		-
+			message: '#^Call to an undefined method WC_Order\|WC_Order_Refund\:\:update_status\(\)\.$#'
+			identifier: method.notFound
+			count: 1
+			path: includes/class-wc-ajax.php
+
 		-
 			message: '#^Call to an undefined method WC_Product\:\:get_available_variation\(\)\.$#'
 			identifier: method.notFound
@@ -10117,55 +10093,31 @@ parameters:
 			path: includes/class-wc-ajax.php

 		-
-			message: '#^Cannot call method add_item\(\) on WC_Order\|WC_Order_Refund\|true\.$#'
-			identifier: method.nonObject
-			count: 1
-			path: includes/class-wc-ajax.php
-
-		-
-			message: '#^Cannot call method add_order_note\(\) on WC_Order\|WC_Order_Refund\|true\.$#'
-			identifier: method.nonObject
-			count: 4
-			path: includes/class-wc-ajax.php
-
-		-
-			message: '#^Cannot call method add_order_note\(\) on bool\|WC_Order\|WC_Order_Refund\.$#'
+			message: '#^Cannot call method add_order_note\(\) on WC_Order\|WC_Order_Refund\|false\.$#'
 			identifier: method.nonObject
 			count: 1
 			path: includes/class-wc-ajax.php

 		-
-			message: '#^Cannot call method add_product\(\) on WC_Order\|WC_Order_Refund\|true\.$#'
+			message: '#^Cannot call method calculate_taxes\(\) on WC_Order\|WC_Order_Refund\|false\.$#'
 			identifier: method.nonObject
 			count: 1
 			path: includes/class-wc-ajax.php

 		-
-			message: '#^Cannot call method calculate_taxes\(\) on WC_Order\|WC_Order_Refund\|true\.$#'
+			message: '#^Cannot call method calculate_totals\(\) on WC_Order\|WC_Order_Refund\|false\.$#'
 			identifier: method.nonObject
 			count: 2
 			path: includes/class-wc-ajax.php

 		-
-			message: '#^Cannot call method calculate_taxes\(\) on bool\|WC_Order\|WC_Order_Refund\.$#'
+			message: '#^Cannot call method create_all_product_variations\(\) on class\-string\|object\.$#'
 			identifier: method.nonObject
 			count: 1
 			path: includes/class-wc-ajax.php

 		-
-			message: '#^Cannot call method calculate_totals\(\) on WC_Order\|WC_Order_Refund\|true\.$#'
-			identifier: method.nonObject
-			count: 3
-			path: includes/class-wc-ajax.php
-
-		-
-			message: '#^Cannot call method calculate_totals\(\) on bool\|WC_Order\|WC_Order_Refund\.$#'
-			identifier: method.nonObject
-			count: 2
-			path: includes/class-wc-ajax.php
-
-		-
-			message: '#^Cannot call method create_all_product_variations\(\) on class\-string\|object\.$#'
+			message: '#^Cannot call method delete\(\) on WC_Order\|WC_Order_Refund\|false\.$#'
 			identifier: method.nonObject
 			count: 1
 			path: includes/class-wc-ajax.php
@@ -10177,19 +10129,7 @@ parameters:
 			path: includes/class-wc-ajax.php

 		-
-			message: '#^Cannot call method delete\(\) on bool\|WC_Order\|WC_Order_Refund\.$#'
-			identifier: method.nonObject
-			count: 1
-			path: includes/class-wc-ajax.php
-
-		-
-			message: '#^Cannot call method get_billing_email\(\) on bool\|WC_Order\|WC_Order_Refund\.$#'
-			identifier: method.nonObject
-			count: 1
-			path: includes/class-wc-ajax.php
-
-		-
-			message: '#^Cannot call method get_currency\(\) on WC_Order\|WC_Order_Refund\|true\.$#'
+			message: '#^Cannot call method get_billing_email\(\) on WC_Order\|WC_Order_Refund\|false\.$#'
 			identifier: method.nonObject
 			count: 1
 			path: includes/class-wc-ajax.php
@@ -10212,12 +10152,6 @@ parameters:
 			count: 2
 			path: includes/class-wc-ajax.php

-		-
-			message: '#^Cannot call method get_id\(\) on WC_Order\|WC_Order_Refund\|true\.$#'
-			identifier: method.nonObject
-			count: 3
-			path: includes/class-wc-ajax.php
-
 		-
 			message: '#^Cannot call method get_id\(\) on WC_Product\|false\|null\.$#'
 			identifier: method.nonObject
@@ -10237,19 +10171,13 @@ parameters:
 			path: includes/class-wc-ajax.php

 		-
-			message: '#^Cannot call method get_item\(\) on WC_Order\|WC_Order_Refund\|true\.$#'
-			identifier: method.nonObject
-			count: 2
-			path: includes/class-wc-ajax.php
-
-		-
-			message: '#^Cannot call method get_items\(\) on bool\|WC_Order\|WC_Order_Refund\.$#'
+			message: '#^Cannot call method get_items\(\) on WC_Order\|WC_Order_Refund\|false\.$#'
 			identifier: method.nonObject
 			count: 1
 			path: includes/class-wc-ajax.php

 		-
-			message: '#^Cannot call method get_parent_id\(\) on bool\|WC_Order\|WC_Order_Refund\.$#'
+			message: '#^Cannot call method get_parent_id\(\) on WC_Order\|WC_Order_Refund\|false\.$#'
 			identifier: method.nonObject
 			count: 1
 			path: includes/class-wc-ajax.php
@@ -10273,25 +10201,13 @@ parameters:
 			path: includes/class-wc-ajax.php

 		-
-			message: '#^Cannot call method get_taxes\(\) on WC_Order\|WC_Order_Refund\|true\.$#'
+			message: '#^Cannot call method get_total\(\) on WC_Order\|WC_Order_Refund\|false\.$#'
 			identifier: method.nonObject
 			count: 1
 			path: includes/class-wc-ajax.php

 		-
-			message: '#^Cannot call method get_total\(\) on WC_Order\|WC_Order_Refund\|true\.$#'
-			identifier: method.nonObject
-			count: 1
-			path: includes/class-wc-ajax.php
-
-		-
-			message: '#^Cannot call method get_total\(\) on bool\|WC_Order\|WC_Order_Refund\.$#'
-			identifier: method.nonObject
-			count: 1
-			path: includes/class-wc-ajax.php
-
-		-
-			message: '#^Cannot call method get_total_refunded\(\) on bool\|WC_Order\|WC_Order_Refund\.$#'
+			message: '#^Cannot call method get_total_refunded\(\) on WC_Order\|WC_Order_Refund\|false\.$#'
 			identifier: method.nonObject
 			count: 2
 			path: includes/class-wc-ajax.php
@@ -10309,7 +10225,7 @@ parameters:
 			path: includes/class-wc-ajax.php

 		-
-			message: '#^Cannot call method is_editable\(\) on bool\|WC_Order\|WC_Order_Refund\.$#'
+			message: '#^Cannot call method is_editable\(\) on WC_Order\|WC_Order_Refund\|false\.$#'
 			identifier: method.nonObject
 			count: 1
 			path: includes/class-wc-ajax.php
@@ -10326,18 +10242,6 @@ parameters:
 			count: 1
 			path: includes/class-wc-ajax.php

-		-
-			message: '#^Cannot call method remove_coupon\(\) on WC_Order\|WC_Order_Refund\|true\.$#'
-			identifier: method.nonObject
-			count: 1
-			path: includes/class-wc-ajax.php
-
-		-
-			message: '#^Cannot call method save\(\) on WC_Order\|WC_Order_Refund\|true\.$#'
-			identifier: method.nonObject
-			count: 1
-			path: includes/class-wc-ajax.php
-
 		-
 			message: '#^Cannot call method save\(\) on WC_Product\|false\|null\.$#'
 			identifier: method.nonObject
@@ -10392,12 +10296,6 @@ parameters:
 			count: 1
 			path: includes/class-wc-ajax.php

-		-
-			message: '#^Cannot call method update_status\(\) on WC_Order\|WC_Order_Refund\|true\.$#'
-			identifier: method.nonObject
-			count: 1
-			path: includes/class-wc-ajax.php
-
 		-
 			message: '#^Cannot cast array\|string to string\.$#'
 			identifier: cast.string
@@ -11125,7 +11023,7 @@ parameters:
 			path: includes/class-wc-ajax.php

 		-
-			message: '#^Parameter \#1 \$order of static method WC_Admin_List_Table_Orders\:\:order_preview_get_order_details\(\) expects WC_Order, WC_Order\|WC_Order_Refund\|true given\.$#'
+			message: '#^Parameter \#1 \$order of static method WC_Admin_List_Table_Orders\:\:order_preview_get_order_details\(\) expects WC_Order, WC_Order\|WC_Order_Refund given\.$#'
 			identifier: argument.type
 			count: 1
 			path: includes/class-wc-ajax.php
@@ -11292,6 +11190,12 @@ parameters:
 			count: 1
 			path: includes/class-wc-ajax.php

+		-
+			message: '#^Parameter \#2 \$qty of method WC_Abstract_Order\:\:add_product\(\) expects int, float\|int given\.$#'
+			identifier: argument.type
+			count: 1
+			path: includes/class-wc-ajax.php
+
 		-
 			message: '#^Parameter \#2 \$quantity of method WC_Cart\:\:add_to_cart\(\) expects int, float\|int given\.$#'
 			identifier: argument.type
@@ -11329,7 +11233,7 @@ parameters:
 			path: includes/class-wc-ajax.php

 		-
-			message: '#^Parameter \#3 \$order of function wc_downloadable_file_permission expects WC_Order, bool\|WC_Order\|WC_Order_Refund given\.$#'
+			message: '#^Parameter \#3 \$order of function wc_downloadable_file_permission expects WC_Order, WC_Order\|WC_Order_Refund\|false given\.$#'
 			identifier: argument.type
 			count: 1
 			path: includes/class-wc-ajax.php
@@ -12181,19 +12085,19 @@ parameters:
 			path: includes/class-wc-cart-session.php

 		-
-			message: '#^Cannot call method get_id\(\) on bool\|WC_Order\|WC_Order_Refund\.$#'
+			message: '#^Cannot call method get_id\(\) on WC_Order\|WC_Order_Refund\|false\.$#'
 			identifier: method.nonObject
 			count: 3
 			path: includes/class-wc-cart-session.php

 		-
-			message: '#^Cannot call method get_items\(\) on bool\|WC_Order\|WC_Order_Refund\.$#'
+			message: '#^Cannot call method get_items\(\) on WC_Order\|WC_Order_Refund\|false\.$#'
 			identifier: method.nonObject
 			count: 1
 			path: includes/class-wc-cart-session.php

 		-
-			message: '#^Cannot call method has_status\(\) on bool\|WC_Order\|WC_Order_Refund\.$#'
+			message: '#^Cannot call method has_status\(\) on WC_Order\|WC_Order_Refund\|false\.$#'
 			identifier: method.nonObject
 			count: 1
 			path: includes/class-wc-cart-session.php
@@ -13039,109 +12943,73 @@ parameters:
 			path: includes/class-wc-checkout.php

 		-
-			message: '#^Call to an undefined method WC_Session\:\:save_data\(\)\.$#'
+			message: '#^Call to an undefined method WC_Order\|WC_Order_Refund\:\:has_cart_hash\(\)\.$#'
 			identifier: method.notFound
 			count: 1
 			path: includes/class-wc-checkout.php

 		-
-			message: '#^Cannot call method get_checkout_order_received_url\(\) on bool\|WC_Order\|WC_Order_Refund\.$#'
-			identifier: method.nonObject
-			count: 2
-			path: includes/class-wc-checkout.php
-
-		-
-			message: '#^Cannot call method has_cart_hash\(\) on WC_Order\|WC_Order_Refund\|true\.$#'
-			identifier: method.nonObject
-			count: 1
-			path: includes/class-wc-checkout.php
-
-		-
-			message: '#^Cannot call method has_status\(\) on WC_Order\|WC_Order_Refund\|true\.$#'
-			identifier: method.nonObject
-			count: 1
-			path: includes/class-wc-checkout.php
-
-		-
-			message: '#^Cannot call method hold_applied_coupons\(\) on WC_Order\|WC_Order_Refund\|true\.$#'
-			identifier: method.nonObject
-			count: 1
-			path: includes/class-wc-checkout.php
-
-		-
-			message: '#^Cannot call method needs_payment\(\) on WC_Order\|WC_Order_Refund\|true\.$#'
-			identifier: method.nonObject
-			count: 1
-			path: includes/class-wc-checkout.php
-
-		-
-			message: '#^Cannot call method payment_complete\(\) on bool\|WC_Order\|WC_Order_Refund\.$#'
-			identifier: method.nonObject
-			count: 1
-			path: includes/class-wc-checkout.php
-
-		-
-			message: '#^Cannot call method remove_order_items\(\) on WC_Order\|WC_Order_Refund\|true\.$#'
-			identifier: method.nonObject
+			message: '#^Call to an undefined method WC_Order\|WC_Order_Refund\:\:needs_payment\(\)\.$#'
+			identifier: method.notFound
 			count: 1
 			path: includes/class-wc-checkout.php

 		-
-			message: '#^Cannot call method set_cart_hash\(\) on WC_Order\|WC_Order_Refund\|true\.$#'
-			identifier: method.nonObject
+			message: '#^Call to an undefined method WC_Order\|WC_Order_Refund\:\:set_cart_hash\(\)\.$#'
+			identifier: method.notFound
 			count: 1
 			path: includes/class-wc-checkout.php

 		-
-			message: '#^Cannot call method set_created_via\(\) on WC_Order\|WC_Order_Refund\|true\.$#'
-			identifier: method.nonObject
+			message: '#^Call to an undefined method WC_Order\|WC_Order_Refund\:\:set_created_via\(\)\.$#'
+			identifier: method.notFound
 			count: 1
 			path: includes/class-wc-checkout.php

 		-
-			message: '#^Cannot call method set_currency\(\) on WC_Order\|WC_Order_Refund\|true\.$#'
-			identifier: method.nonObject
+			message: '#^Call to an undefined method WC_Order\|WC_Order_Refund\:\:set_customer_id\(\)\.$#'
+			identifier: method.notFound
 			count: 1
 			path: includes/class-wc-checkout.php

 		-
-			message: '#^Cannot call method set_customer_id\(\) on WC_Order\|WC_Order_Refund\|true\.$#'
-			identifier: method.nonObject
+			message: '#^Call to an undefined method WC_Order\|WC_Order_Refund\:\:set_customer_ip_address\(\)\.$#'
+			identifier: method.notFound
 			count: 1
 			path: includes/class-wc-checkout.php

 		-
-			message: '#^Cannot call method set_customer_ip_address\(\) on WC_Order\|WC_Order_Refund\|true\.$#'
-			identifier: method.nonObject
+			message: '#^Call to an undefined method WC_Order\|WC_Order_Refund\:\:set_customer_note\(\)\.$#'
+			identifier: method.notFound
 			count: 1
 			path: includes/class-wc-checkout.php

 		-
-			message: '#^Cannot call method set_customer_note\(\) on WC_Order\|WC_Order_Refund\|true\.$#'
-			identifier: method.nonObject
+			message: '#^Call to an undefined method WC_Order\|WC_Order_Refund\:\:set_customer_user_agent\(\)\.$#'
+			identifier: method.notFound
 			count: 1
 			path: includes/class-wc-checkout.php

 		-
-			message: '#^Cannot call method set_customer_user_agent\(\) on WC_Order\|WC_Order_Refund\|true\.$#'
-			identifier: method.nonObject
+			message: '#^Call to an undefined method WC_Order\|WC_Order_Refund\:\:set_payment_method\(\)\.$#'
+			identifier: method.notFound
 			count: 1
 			path: includes/class-wc-checkout.php

 		-
-			message: '#^Cannot call method set_payment_method\(\) on WC_Order\|WC_Order_Refund\|true\.$#'
-			identifier: method.nonObject
+			message: '#^Call to an undefined method WC_Session\:\:save_data\(\)\.$#'
+			identifier: method.notFound
 			count: 1
 			path: includes/class-wc-checkout.php

 		-
-			message: '#^Cannot call method set_prices_include_tax\(\) on WC_Order\|WC_Order_Refund\|true\.$#'
+			message: '#^Cannot call method get_checkout_order_received_url\(\) on WC_Order\|WC_Order_Refund\|false\.$#'
 			identifier: method.nonObject
-			count: 1
+			count: 2
 			path: includes/class-wc-checkout.php

 		-
-			message: '#^Cannot call method update_meta_data\(\) on WC_Order\|WC_Order_Refund\|true\.$#'
+			message: '#^Cannot call method payment_complete\(\) on WC_Order\|WC_Order_Refund\|false\.$#'
 			identifier: method.nonObject
 			count: 1
 			path: includes/class-wc-checkout.php
@@ -13309,7 +13177,7 @@ parameters:
 			path: includes/class-wc-checkout.php

 		-
-			message: '#^Parameter \#1 \$order of method WC_Checkout\:\:set_data_from_cart\(\) expects WC_Order, WC_Order\|WC_Order_Refund\|true given\.$#'
+			message: '#^Parameter \#1 \$order of method WC_Checkout\:\:set_data_from_cart\(\) expects WC_Order, WC_Order\|WC_Order_Refund given\.$#'
 			identifier: argument.type
 			count: 1
 			path: includes/class-wc-checkout.php
@@ -14551,7 +14419,7 @@ parameters:
 			path: includes/class-wc-download-handler.php

 		-
-			message: '#^@param bool\|WC_Order \$order does not accept actual type of parameter\: bool\|WC_Order\|WC_Order_Refund\.$#'
+			message: '#^@param bool\|WC_Order \$order does not accept actual type of parameter\: WC_Order\|WC_Order_Refund\|false\.$#'
 			identifier: parameter.phpDocType
 			count: 1
 			path: includes/class-wc-download-handler.php
@@ -14569,19 +14437,19 @@ parameters:
 			path: includes/class-wc-download-handler.php

 		-
-			message: '#^Call to static method instance\(\) on an unknown class ActionScheduler_Versions\.$#'
-			identifier: class.notFound
+			message: '#^Call to an undefined method WC_Order\|WC_Order_Refund\:\:is_download_permitted\(\)\.$#'
+			identifier: method.notFound
 			count: 1
 			path: includes/class-wc-download-handler.php

 		-
-			message: '#^Cannot call method get_file_download_path\(\) on WC_Product\|false\|null\.$#'
-			identifier: method.nonObject
+			message: '#^Call to static method instance\(\) on an unknown class ActionScheduler_Versions\.$#'
+			identifier: class.notFound
 			count: 1
 			path: includes/class-wc-download-handler.php

 		-
-			message: '#^Cannot call method is_download_permitted\(\) on WC_Order\|WC_Order_Refund\|true\.$#'
+			message: '#^Cannot call method get_file_download_path\(\) on WC_Product\|false\|null\.$#'
 			identifier: method.nonObject
 			count: 1
 			path: includes/class-wc-download-handler.php
@@ -14695,7 +14563,7 @@ parameters:
 			path: includes/class-wc-download-handler.php

 		-
-			message: '#^Parameter \#1 \$object_or_string of function is_a expects object, bool\|WC_Order\|WC_Order_Refund given\.$#'
+			message: '#^Parameter \#1 \$object_or_string of function is_a expects object, WC_Order\|WC_Order_Refund\|false given\.$#'
 			identifier: argument.type
 			count: 1
 			path: includes/class-wc-download-handler.php
@@ -14761,25 +14629,25 @@ parameters:
 			path: includes/class-wc-emails.php

 		-
-			message: '#^Call to an undefined method object\:\:get_formatted_name\(\)\.$#'
+			message: '#^Call to an undefined method WC_Order\|WC_Order_Refund\:\:get_order_number\(\)\.$#'
 			identifier: method.notFound
 			count: 1
 			path: includes/class-wc-emails.php

 		-
-			message: '#^Call to an undefined method object\:\:get_stock_quantity\(\)\.$#'
+			message: '#^Call to an undefined method object\:\:get_formatted_name\(\)\.$#'
 			identifier: method.notFound
 			count: 1
 			path: includes/class-wc-emails.php

 		-
-			message: '#^Cannot call method get_id\(\) on bool\|WC_Order\|WC_Order_Refund\.$#'
-			identifier: method.nonObject
+			message: '#^Call to an undefined method object\:\:get_stock_quantity\(\)\.$#'
+			identifier: method.notFound
 			count: 1
 			path: includes/class-wc-emails.php

 		-
-			message: '#^Cannot call method get_order_number\(\) on WC_Order\|WC_Order_Refund\|true\.$#'
+			message: '#^Cannot call method get_id\(\) on WC_Order\|WC_Order_Refund\|false\.$#'
 			identifier: method.nonObject
 			count: 1
 			path: includes/class-wc-emails.php
@@ -15043,7 +14911,7 @@ parameters:
 			path: includes/class-wc-embed.php

 		-
-			message: '#^@param WC_Order \$order does not accept actual type of parameter\: bool\|WC_Order\|WC_Order_Refund\.$#'
+			message: '#^@param WC_Order \$order does not accept actual type of parameter\: WC_Order\|WC_Order_Refund\|false\.$#'
 			identifier: parameter.phpDocType
 			count: 1
 			path: includes/class-wc-form-handler.php
@@ -15085,79 +14953,79 @@ parameters:
 			path: includes/class-wc-form-handler.php

 		-
-			message: '#^Cannot call method get_billing_city\(\) on bool\|WC_Order\|WC_Order_Refund\.$#'
+			message: '#^Cannot call method get_billing_city\(\) on WC_Order\|WC_Order_Refund\|false\.$#'
 			identifier: method.nonObject
 			count: 2
 			path: includes/class-wc-form-handler.php

 		-
-			message: '#^Cannot call method get_billing_country\(\) on bool\|WC_Order\|WC_Order_Refund\.$#'
+			message: '#^Cannot call method get_billing_country\(\) on WC_Order\|WC_Order_Refund\|false\.$#'
 			identifier: method.nonObject
 			count: 2
 			path: includes/class-wc-form-handler.php

 		-
-			message: '#^Cannot call method get_billing_postcode\(\) on bool\|WC_Order\|WC_Order_Refund\.$#'
+			message: '#^Cannot call method get_billing_postcode\(\) on WC_Order\|WC_Order_Refund\|false\.$#'
 			identifier: method.nonObject
 			count: 2
 			path: includes/class-wc-form-handler.php

 		-
-			message: '#^Cannot call method get_billing_state\(\) on bool\|WC_Order\|WC_Order_Refund\.$#'
+			message: '#^Cannot call method get_billing_state\(\) on WC_Order\|WC_Order_Refund\|false\.$#'
 			identifier: method.nonObject
 			count: 2
 			path: includes/class-wc-form-handler.php

 		-
-			message: '#^Cannot call method get_checkout_order_received_url\(\) on bool\|WC_Order\|WC_Order_Refund\.$#'
+			message: '#^Cannot call method get_checkout_order_received_url\(\) on WC_Order\|WC_Order_Refund\|false\.$#'
 			identifier: method.nonObject
 			count: 1
 			path: includes/class-wc-form-handler.php

 		-
-			message: '#^Cannot call method get_id\(\) on bool\|WC_Order\|WC_Order_Refund\.$#'
+			message: '#^Cannot call method get_id\(\) on WC_Order\|WC_Order_Refund\|false\.$#'
 			identifier: method.nonObject
 			count: 3
 			path: includes/class-wc-form-handler.php

 		-
-			message: '#^Cannot call method get_order_key\(\) on bool\|WC_Order\|WC_Order_Refund\.$#'
+			message: '#^Cannot call method get_order_key\(\) on WC_Order\|WC_Order_Refund\|false\.$#'
 			identifier: method.nonObject
 			count: 2
 			path: includes/class-wc-form-handler.php

 		-
-			message: '#^Cannot call method has_status\(\) on bool\|WC_Order\|WC_Order_Refund\.$#'
+			message: '#^Cannot call method has_status\(\) on WC_Order\|WC_Order_Refund\|false\.$#'
 			identifier: method.nonObject
 			count: 1
 			path: includes/class-wc-form-handler.php

 		-
-			message: '#^Cannot call method needs_payment\(\) on bool\|WC_Order\|WC_Order_Refund\.$#'
+			message: '#^Cannot call method needs_payment\(\) on WC_Order\|WC_Order_Refund\|false\.$#'
 			identifier: method.nonObject
 			count: 2
 			path: includes/class-wc-form-handler.php

 		-
-			message: '#^Cannot call method payment_complete\(\) on bool\|WC_Order\|WC_Order_Refund\.$#'
+			message: '#^Cannot call method payment_complete\(\) on WC_Order\|WC_Order_Refund\|false\.$#'
 			identifier: method.nonObject
 			count: 1
 			path: includes/class-wc-form-handler.php

 		-
-			message: '#^Cannot call method save\(\) on bool\|WC_Order\|WC_Order_Refund\.$#'
+			message: '#^Cannot call method save\(\) on WC_Order\|WC_Order_Refund\|false\.$#'
 			identifier: method.nonObject
 			count: 1
 			path: includes/class-wc-form-handler.php

 		-
-			message: '#^Cannot call method set_payment_method\(\) on bool\|WC_Order\|WC_Order_Refund\.$#'
+			message: '#^Cannot call method set_payment_method\(\) on WC_Order\|WC_Order_Refund\|false\.$#'
 			identifier: method.nonObject
 			count: 1
 			path: includes/class-wc-form-handler.php

 		-
-			message: '#^Cannot call method update_status\(\) on bool\|WC_Order\|WC_Order_Refund\.$#'
+			message: '#^Cannot call method update_status\(\) on WC_Order\|WC_Order_Refund\|false\.$#'
 			identifier: method.nonObject
 			count: 1
 			path: includes/class-wc-form-handler.php
@@ -16015,13 +15883,13 @@ parameters:
 			path: includes/class-wc-order-factory.php

 		-
-			message: '#^Method WC_Order_Factory\:\:get_order\(\) should return bool\|WC_Order but returns array\|object\|false\.$#'
+			message: '#^Method WC_Order_Factory\:\:get_order\(\) should return WC_Order\|false but returns array\|object\|false\.$#'
 			identifier: return.type
 			count: 1
 			path: includes/class-wc-order-factory.php

 		-
-			message: '#^Method WC_Order_Factory\:\:get_order\(\) should return bool\|WC_Order but returns object\.$#'
+			message: '#^Method WC_Order_Factory\:\:get_order\(\) should return WC_Order\|false but returns object\.$#'
 			identifier: return.type
 			count: 1
 			path: includes/class-wc-order-factory.php
@@ -16579,7 +16447,7 @@ parameters:
 			path: includes/class-wc-order-item.php

 		-
-			message: '#^Method WC_Order_Item\:\:get_order\(\) should return WC_Order but returns bool\|WC_Order\|WC_Order_Refund\.$#'
+			message: '#^Method WC_Order_Item\:\:get_order\(\) should return WC_Order but returns WC_Order\|WC_Order_Refund\|false\.$#'
 			identifier: return.type
 			count: 1
 			path: includes/class-wc-order-item.php
@@ -17232,12 +17100,6 @@ parameters:
 			count: 1
 			path: includes/class-wc-payment-tokens.php

-		-
-			message: '#^Cannot call method get_payment_tokens\(\) on WC_Order\|WC_Order_Refund\|true\.$#'
-			identifier: method.nonObject
-			count: 1
-			path: includes/class-wc-payment-tokens.php
-
 		-
 			message: '#^Method WC_Payment_Tokens\:\:delete\(\) has no return type specified\.$#'
 			identifier: missingType.return
@@ -17311,7 +17173,7 @@ parameters:
 			path: includes/class-wc-post-data.php

 		-
-			message: '#^Cannot call method get_type\(\) on bool\|WC_Order\|WC_Order_Refund\.$#'
+			message: '#^Cannot call method get_type\(\) on WC_Order\|WC_Order_Refund\|false\.$#'
 			identifier: method.nonObject
 			count: 1
 			path: includes/class-wc-post-data.php
@@ -18282,6 +18144,12 @@ parameters:
 			count: 1
 			path: includes/class-wc-product-variation.php

+		-
+			message: '#^Call to an undefined method WC_Order\|WC_Order_Refund\:\:get_order_number\(\)\.$#'
+			identifier: method.notFound
+			count: 1
+			path: includes/class-wc-query.php
+
 		-
 			message: '#^Call to static method get_value\(\) on an unknown class WPSEO_Meta\.$#'
 			identifier: class.notFound
@@ -18312,12 +18180,6 @@ parameters:
 			count: 2
 			path: includes/class-wc-query.php

-		-
-			message: '#^Cannot call method get_order_number\(\) on WC_Order\|WC_Order_Refund\|true\.$#'
-			identifier: method.nonObject
-			count: 1
-			path: includes/class-wc-query.php
-
 		-
 			message: '#^Function remove_filter invoked with 4 parameters, 2\-3 required\.$#'
 			identifier: arguments.count
@@ -20389,7 +20251,7 @@ parameters:
 			path: includes/class-wc-webhook.php

 		-
-			message: '#^Cannot call method get_status\(\) on bool\|WC_Order\|WC_Order_Refund\.$#'
+			message: '#^Cannot call method get_status\(\) on WC_Order\|WC_Order_Refund\|false\.$#'
 			identifier: method.nonObject
 			count: 1
 			path: includes/class-wc-webhook.php
@@ -21697,7 +21559,7 @@ parameters:
 			path: includes/data-stores/class-wc-customer-data-store.php

 		-
-			message: '#^Method WC_Customer_Data_Store\:\:get_last_order\(\) should return WC_Order\|false but returns bool\|WC_Order\|WC_Order_Refund\.$#'
+			message: '#^Method WC_Customer_Data_Store\:\:get_last_order\(\) should return WC_Order\|false but returns WC_Order\|WC_Order_Refund\|false\.$#'
 			identifier: return.type
 			count: 1
 			path: includes/data-stores/class-wc-customer-data-store.php
@@ -23113,13 +22975,13 @@ parameters:
 			path: includes/emails/class-wc-email-cancelled-order.php

 		-
-			message: '#^Parameter \#1 \$object_or_string of function is_a expects object, WC_Order\|false given\.$#'
+			message: '#^Parameter \#1 \$object_or_string of function is_a expects object, WC_Order\|WC_Order_Refund\|false given\.$#'
 			identifier: argument.type
 			count: 1
 			path: includes/emails/class-wc-email-cancelled-order.php

 		-
-			message: '#^Parameter \#1 \$object_or_string of function is_a expects object, bool\|WC_Order\|WC_Order_Refund given\.$#'
+			message: '#^Parameter \#1 \$object_or_string of function is_a expects object, WC_Order\|false given\.$#'
 			identifier: argument.type
 			count: 1
 			path: includes/emails/class-wc-email-cancelled-order.php
@@ -23149,13 +23011,13 @@ parameters:
 			path: includes/emails/class-wc-email-customer-cancelled-order.php

 		-
-			message: '#^Parameter \#1 \$object_or_string of function is_a expects object, WC_Order\|false given\.$#'
+			message: '#^Parameter \#1 \$object_or_string of function is_a expects object, WC_Order\|WC_Order_Refund\|false given\.$#'
 			identifier: argument.type
 			count: 1
 			path: includes/emails/class-wc-email-customer-cancelled-order.php

 		-
-			message: '#^Parameter \#1 \$object_or_string of function is_a expects object, bool\|WC_Order\|WC_Order_Refund given\.$#'
+			message: '#^Parameter \#1 \$object_or_string of function is_a expects object, WC_Order\|false given\.$#'
 			identifier: argument.type
 			count: 1
 			path: includes/emails/class-wc-email-customer-cancelled-order.php
@@ -23179,13 +23041,13 @@ parameters:
 			path: includes/emails/class-wc-email-customer-completed-order.php

 		-
-			message: '#^Parameter \#1 \$object_or_string of function is_a expects object, WC_Order\|false given\.$#'
+			message: '#^Parameter \#1 \$object_or_string of function is_a expects object, WC_Order\|WC_Order_Refund\|false given\.$#'
 			identifier: argument.type
 			count: 1
 			path: includes/emails/class-wc-email-customer-completed-order.php

 		-
-			message: '#^Parameter \#1 \$object_or_string of function is_a expects object, bool\|WC_Order\|WC_Order_Refund given\.$#'
+			message: '#^Parameter \#1 \$object_or_string of function is_a expects object, WC_Order\|false given\.$#'
 			identifier: argument.type
 			count: 1
 			path: includes/emails/class-wc-email-customer-completed-order.php
@@ -23209,13 +23071,13 @@ parameters:
 			path: includes/emails/class-wc-email-customer-failed-order.php

 		-
-			message: '#^Parameter \#1 \$object_or_string of function is_a expects object, WC_Order\|false given\.$#'
+			message: '#^Parameter \#1 \$object_or_string of function is_a expects object, WC_Order\|WC_Order_Refund\|false given\.$#'
 			identifier: argument.type
 			count: 1
 			path: includes/emails/class-wc-email-customer-failed-order.php

 		-
-			message: '#^Parameter \#1 \$object_or_string of function is_a expects object, bool\|WC_Order\|WC_Order_Refund given\.$#'
+			message: '#^Parameter \#1 \$object_or_string of function is_a expects object, WC_Order\|false given\.$#'
 			identifier: argument.type
 			count: 1
 			path: includes/emails/class-wc-email-customer-failed-order.php
@@ -23245,13 +23107,13 @@ parameters:
 			path: includes/emails/class-wc-email-customer-fulfillment-created.php

 		-
-			message: '#^Parameter \#1 \$object_or_string of function is_a expects object, WC_Order\|false given\.$#'
+			message: '#^Parameter \#1 \$object_or_string of function is_a expects object, WC_Order\|WC_Order_Refund\|false given\.$#'
 			identifier: argument.type
 			count: 1
 			path: includes/emails/class-wc-email-customer-fulfillment-created.php

 		-
-			message: '#^Parameter \#1 \$object_or_string of function is_a expects object, bool\|WC_Order\|WC_Order_Refund given\.$#'
+			message: '#^Parameter \#1 \$object_or_string of function is_a expects object, WC_Order\|false given\.$#'
 			identifier: argument.type
 			count: 1
 			path: includes/emails/class-wc-email-customer-fulfillment-created.php
@@ -23287,13 +23149,13 @@ parameters:
 			path: includes/emails/class-wc-email-customer-fulfillment-deleted.php

 		-
-			message: '#^Parameter \#1 \$object_or_string of function is_a expects object, WC_Order\|false given\.$#'
+			message: '#^Parameter \#1 \$object_or_string of function is_a expects object, WC_Order\|WC_Order_Refund\|false given\.$#'
 			identifier: argument.type
 			count: 1
 			path: includes/emails/class-wc-email-customer-fulfillment-deleted.php

 		-
-			message: '#^Parameter \#1 \$object_or_string of function is_a expects object, bool\|WC_Order\|WC_Order_Refund given\.$#'
+			message: '#^Parameter \#1 \$object_or_string of function is_a expects object, WC_Order\|false given\.$#'
 			identifier: argument.type
 			count: 1
 			path: includes/emails/class-wc-email-customer-fulfillment-deleted.php
@@ -23329,13 +23191,13 @@ parameters:
 			path: includes/emails/class-wc-email-customer-fulfillment-updated.php

 		-
-			message: '#^Parameter \#1 \$object_or_string of function is_a expects object, WC_Order\|false given\.$#'
+			message: '#^Parameter \#1 \$object_or_string of function is_a expects object, WC_Order\|WC_Order_Refund\|false given\.$#'
 			identifier: argument.type
 			count: 1
 			path: includes/emails/class-wc-email-customer-fulfillment-updated.php

 		-
-			message: '#^Parameter \#1 \$object_or_string of function is_a expects object, bool\|WC_Order\|WC_Order_Refund given\.$#'
+			message: '#^Parameter \#1 \$object_or_string of function is_a expects object, WC_Order\|false given\.$#'
 			identifier: argument.type
 			count: 1
 			path: includes/emails/class-wc-email-customer-fulfillment-updated.php
@@ -23383,7 +23245,7 @@ parameters:
 			path: includes/emails/class-wc-email-customer-invoice.php

 		-
-			message: '#^Parameter \#1 \$object_or_string of function is_a expects object, bool\|WC_Order\|WC_Order_Refund given\.$#'
+			message: '#^Parameter \#1 \$object_or_string of function is_a expects object, WC_Order\|WC_Order_Refund\|false given\.$#'
 			identifier: argument.type
 			count: 1
 			path: includes/emails/class-wc-email-customer-invoice.php
@@ -23413,20 +23275,14 @@ parameters:
 			path: includes/emails/class-wc-email-customer-new-account.php

 		-
-			message: '#^Cannot call method get_billing_email\(\) on WC_Order\|WC_Order_Refund\|true\.$#'
-			identifier: method.nonObject
-			count: 1
-			path: includes/emails/class-wc-email-customer-note.php
-
-		-
-			message: '#^Cannot call method get_date_created\(\) on WC_Order\|WC_Order_Refund\|true\.$#'
-			identifier: method.nonObject
+			message: '#^Call to an undefined method WC_Order\|WC_Order_Refund\:\:get_billing_email\(\)\.$#'
+			identifier: method.notFound
 			count: 1
 			path: includes/emails/class-wc-email-customer-note.php

 		-
-			message: '#^Cannot call method get_order_number\(\) on WC_Order\|WC_Order_Refund\|true\.$#'
-			identifier: method.nonObject
+			message: '#^Call to an undefined method WC_Order\|WC_Order_Refund\:\:get_order_number\(\)\.$#'
+			identifier: method.notFound
 			count: 1
 			path: includes/emails/class-wc-email-customer-note.php

@@ -23467,13 +23323,13 @@ parameters:
 			path: includes/emails/class-wc-email-customer-on-hold-order.php

 		-
-			message: '#^Parameter \#1 \$object_or_string of function is_a expects object, WC_Order\|false given\.$#'
+			message: '#^Parameter \#1 \$object_or_string of function is_a expects object, WC_Order\|WC_Order_Refund\|false given\.$#'
 			identifier: argument.type
 			count: 1
 			path: includes/emails/class-wc-email-customer-on-hold-order.php

 		-
-			message: '#^Parameter \#1 \$object_or_string of function is_a expects object, bool\|WC_Order\|WC_Order_Refund given\.$#'
+			message: '#^Parameter \#1 \$object_or_string of function is_a expects object, WC_Order\|false given\.$#'
 			identifier: argument.type
 			count: 1
 			path: includes/emails/class-wc-email-customer-on-hold-order.php
@@ -23551,7 +23407,7 @@ parameters:
 			path: includes/emails/class-wc-email-customer-pos-completed-order.php

 		-
-			message: '#^Parameter \#1 \$object_or_string of function is_a expects object, bool\|WC_Order\|WC_Order_Refund given\.$#'
+			message: '#^Parameter \#1 \$object_or_string of function is_a expects object, WC_Order\|WC_Order_Refund\|false given\.$#'
 			identifier: argument.type
 			count: 1
 			path: includes/emails/class-wc-email-customer-pos-completed-order.php
@@ -23575,26 +23431,20 @@ parameters:
 			path: includes/emails/class-wc-email-customer-pos-refunded-order.php

 		-
-			message: '#^Callback expects 3 parameters, \$accepted_args is set to 4\.$#'
-			identifier: arguments.count
-			count: 1
-			path: includes/emails/class-wc-email-customer-pos-refunded-order.php
-
-		-
-			message: '#^Cannot call method get_billing_email\(\) on WC_Order\|WC_Order_Refund\|true\.$#'
-			identifier: method.nonObject
+			message: '#^Call to an undefined method WC_Order\|WC_Order_Refund\:\:get_billing_email\(\)\.$#'
+			identifier: method.notFound
 			count: 1
 			path: includes/emails/class-wc-email-customer-pos-refunded-order.php

 		-
-			message: '#^Cannot call method get_date_created\(\) on WC_Order\|WC_Order_Refund\|true\.$#'
-			identifier: method.nonObject
+			message: '#^Call to an undefined method WC_Order\|WC_Order_Refund\:\:get_order_number\(\)\.$#'
+			identifier: method.notFound
 			count: 1
 			path: includes/emails/class-wc-email-customer-pos-refunded-order.php

 		-
-			message: '#^Cannot call method get_order_number\(\) on WC_Order\|WC_Order_Refund\|true\.$#'
-			identifier: method.nonObject
+			message: '#^Callback expects 3 parameters, \$accepted_args is set to 4\.$#'
+			identifier: arguments.count
 			count: 1
 			path: includes/emails/class-wc-email-customer-pos-refunded-order.php

@@ -23682,12 +23532,6 @@ parameters:
 			count: 1
 			path: includes/emails/class-wc-email-customer-pos-refunded-order.php

-		-
-			message: '#^Parameter \#1 \$order of static method Automattic\\WooCommerce\\Internal\\Orders\\PointOfSaleOrderUtil\:\:is_pos_order\(\) expects WC_Abstract_Order, WC_Order\|WC_Order_Refund\|true given\.$#'
-			identifier: argument.type
-			count: 1
-			path: includes/emails/class-wc-email-customer-pos-refunded-order.php
-
 		-
 			message: '#^Parameter \#2 \$item of static method Automattic\\WooCommerce\\Internal\\Email\\OrderPriceFormatter\:\:get_formatted_item_subtotal\(\) expects WC_Order_Item, array given\.$#'
 			identifier: argument.type
@@ -23695,7 +23539,7 @@ parameters:
 			path: includes/emails/class-wc-email-customer-pos-refunded-order.php

 		-
-			message: '#^Property WC_Email_Customer_POS_Refunded_Order\:\:\$refund \(bool\|WC_Order\) does not accept bool\|WC_Order\|WC_Order_Refund\.$#'
+			message: '#^Property WC_Email_Customer_POS_Refunded_Order\:\:\$refund \(bool\|WC_Order\) does not accept WC_Order\|WC_Order_Refund\|false\.$#'
 			identifier: assign.propertyType
 			count: 1
 			path: includes/emails/class-wc-email-customer-pos-refunded-order.php
@@ -23719,13 +23563,13 @@ parameters:
 			path: includes/emails/class-wc-email-customer-processing-order.php

 		-
-			message: '#^Parameter \#1 \$object_or_string of function is_a expects object, WC_Order\|false given\.$#'
+			message: '#^Parameter \#1 \$object_or_string of function is_a expects object, WC_Order\|WC_Order_Refund\|false given\.$#'
 			identifier: argument.type
 			count: 1
 			path: includes/emails/class-wc-email-customer-processing-order.php

 		-
-			message: '#^Parameter \#1 \$object_or_string of function is_a expects object, bool\|WC_Order\|WC_Order_Refund given\.$#'
+			message: '#^Parameter \#1 \$object_or_string of function is_a expects object, WC_Order\|false given\.$#'
 			identifier: argument.type
 			count: 1
 			path: includes/emails/class-wc-email-customer-processing-order.php
@@ -23737,19 +23581,19 @@ parameters:
 			path: includes/emails/class-wc-email-customer-refunded-order.php

 		-
-			message: '#^Cannot call method get_billing_email\(\) on bool\|WC_Order\|WC_Order_Refund\.$#'
+			message: '#^Cannot call method get_billing_email\(\) on WC_Order\|WC_Order_Refund\|false\.$#'
 			identifier: method.nonObject
 			count: 1
 			path: includes/emails/class-wc-email-customer-refunded-order.php

 		-
-			message: '#^Cannot call method get_date_created\(\) on bool\|WC_Order\|WC_Order_Refund\.$#'
+			message: '#^Cannot call method get_date_created\(\) on WC_Order\|WC_Order_Refund\|false\.$#'
 			identifier: method.nonObject
 			count: 1
 			path: includes/emails/class-wc-email-customer-refunded-order.php

 		-
-			message: '#^Cannot call method get_order_number\(\) on bool\|WC_Order\|WC_Order_Refund\.$#'
+			message: '#^Cannot call method get_order_number\(\) on WC_Order\|WC_Order_Refund\|false\.$#'
 			identifier: method.nonObject
 			count: 1
 			path: includes/emails/class-wc-email-customer-refunded-order.php
@@ -23797,7 +23641,7 @@ parameters:
 			path: includes/emails/class-wc-email-customer-refunded-order.php

 		-
-			message: '#^Property WC_Email_Customer_Refunded_Order\:\:\$refund \(bool\|WC_Order\) does not accept bool\|WC_Order\|WC_Order_Refund\.$#'
+			message: '#^Property WC_Email_Customer_Refunded_Order\:\:\$refund \(bool\|WC_Order\) does not accept WC_Order\|WC_Order_Refund\|false\.$#'
 			identifier: assign.propertyType
 			count: 1
 			path: includes/emails/class-wc-email-customer-refunded-order.php
@@ -23851,25 +23695,25 @@ parameters:
 			path: includes/emails/class-wc-email-failed-order.php

 		-
-			message: '#^Parameter \#1 \$object_or_string of function is_a expects object, WC_Order\|false given\.$#'
+			message: '#^Parameter \#1 \$object_or_string of function is_a expects object, WC_Order\|WC_Order_Refund\|false given\.$#'
 			identifier: argument.type
 			count: 1
 			path: includes/emails/class-wc-email-failed-order.php

 		-
-			message: '#^Parameter \#1 \$object_or_string of function is_a expects object, bool\|WC_Order\|WC_Order_Refund given\.$#'
+			message: '#^Parameter \#1 \$object_or_string of function is_a expects object, WC_Order\|false given\.$#'
 			identifier: argument.type
 			count: 1
 			path: includes/emails/class-wc-email-failed-order.php

 		-
-			message: '#^Cannot call method save\(\) on bool\|WC_Order\|WC_Order_Refund\.$#'
+			message: '#^Cannot call method save\(\) on WC_Order\|WC_Order_Refund\|false\.$#'
 			identifier: method.nonObject
 			count: 1
 			path: includes/emails/class-wc-email-new-order.php

 		-
-			message: '#^Cannot call method update_meta_data\(\) on bool\|WC_Order\|WC_Order_Refund\.$#'
+			message: '#^Cannot call method update_meta_data\(\) on WC_Order\|WC_Order_Refund\|false\.$#'
 			identifier: method.nonObject
 			count: 1
 			path: includes/emails/class-wc-email-new-order.php
@@ -23905,13 +23749,13 @@ parameters:
 			path: includes/emails/class-wc-email-new-order.php

 		-
-			message: '#^Parameter \#1 \$object_or_string of function is_a expects object, WC_Order\|false given\.$#'
+			message: '#^Parameter \#1 \$object_or_string of function is_a expects object, WC_Order\|WC_Order_Refund\|false given\.$#'
 			identifier: argument.type
 			count: 1
 			path: includes/emails/class-wc-email-new-order.php

 		-
-			message: '#^Parameter \#1 \$object_or_string of function is_a expects object, bool\|WC_Order\|WC_Order_Refund given\.$#'
+			message: '#^Parameter \#1 \$object_or_string of function is_a expects object, WC_Order\|false given\.$#'
 			identifier: argument.type
 			count: 1
 			path: includes/emails/class-wc-email-new-order.php
@@ -24385,7 +24229,7 @@ parameters:
 			path: includes/export/class-wc-product-csv-exporter.php

 		-
-			message: '#^@param object \$order does not accept actual type of parameter\: bool\|WC_Order\|WC_Order_Refund\.$#'
+			message: '#^@param object \$order does not accept actual type of parameter\: WC_Order\|WC_Order_Refund\|false\.$#'
 			identifier: parameter.phpDocType
 			count: 1
 			path: includes/gateways/bacs/class-wc-gateway-bacs.php
@@ -24403,25 +24247,25 @@ parameters:
 			path: includes/gateways/bacs/class-wc-gateway-bacs.php

 		-
-			message: '#^Cannot call method get_billing_country\(\) on bool\|WC_Order\|WC_Order_Refund\.$#'
+			message: '#^Cannot call method get_billing_country\(\) on WC_Order\|WC_Order_Refund\|false\.$#'
 			identifier: method.nonObject
 			count: 1
 			path: includes/gateways/bacs/class-wc-gateway-bacs.php

 		-
-			message: '#^Cannot call method get_total\(\) on bool\|WC_Order\|WC_Order_Refund\.$#'
+			message: '#^Cannot call method get_total\(\) on WC_Order\|WC_Order_Refund\|false\.$#'
 			identifier: method.nonObject
 			count: 1
 			path: includes/gateways/bacs/class-wc-gateway-bacs.php

 		-
-			message: '#^Cannot call method payment_complete\(\) on bool\|WC_Order\|WC_Order_Refund\.$#'
+			message: '#^Cannot call method payment_complete\(\) on WC_Order\|WC_Order_Refund\|false\.$#'
 			identifier: method.nonObject
 			count: 1
 			path: includes/gateways/bacs/class-wc-gateway-bacs.php

 		-
-			message: '#^Cannot call method update_status\(\) on bool\|WC_Order\|WC_Order_Refund\.$#'
+			message: '#^Cannot call method update_status\(\) on WC_Order\|WC_Order_Refund\|false\.$#'
 			identifier: method.nonObject
 			count: 1
 			path: includes/gateways/bacs/class-wc-gateway-bacs.php
@@ -24475,7 +24319,7 @@ parameters:
 			path: includes/gateways/bacs/class-wc-gateway-bacs.php

 		-
-			message: '#^Parameter \#1 \$order of method WC_Payment_Gateway\:\:get_return_url\(\) expects WC_Order\|null, bool\|WC_Order\|WC_Order_Refund given\.$#'
+			message: '#^Parameter \#1 \$order of method WC_Payment_Gateway\:\:get_return_url\(\) expects WC_Order\|null, WC_Order\|WC_Order_Refund\|false given\.$#'
 			identifier: argument.type
 			count: 1
 			path: includes/gateways/bacs/class-wc-gateway-bacs.php
@@ -24487,7 +24331,7 @@ parameters:
 			path: includes/gateways/bacs/class-wc-gateway-bacs.php

 		-
-			message: '#^@param object \$order does not accept actual type of parameter\: bool\|WC_Order\|WC_Order_Refund\.$#'
+			message: '#^@param object \$order does not accept actual type of parameter\: WC_Order\|WC_Order_Refund\|false\.$#'
 			identifier: parameter.phpDocType
 			count: 1
 			path: includes/gateways/cheque/class-wc-gateway-cheque.php
@@ -24499,19 +24343,19 @@ parameters:
 			path: includes/gateways/cheque/class-wc-gateway-cheque.php

 		-
-			message: '#^Cannot call method get_total\(\) on bool\|WC_Order\|WC_Order_Refund\.$#'
+			message: '#^Cannot call method get_total\(\) on WC_Order\|WC_Order_Refund\|false\.$#'
 			identifier: method.nonObject
 			count: 1
 			path: includes/gateways/cheque/class-wc-gateway-cheque.php

 		-
-			message: '#^Cannot call method payment_complete\(\) on bool\|WC_Order\|WC_Order_Refund\.$#'
+			message: '#^Cannot call method payment_complete\(\) on WC_Order\|WC_Order_Refund\|false\.$#'
 			identifier: method.nonObject
 			count: 1
 			path: includes/gateways/cheque/class-wc-gateway-cheque.php

 		-
-			message: '#^Cannot call method update_status\(\) on bool\|WC_Order\|WC_Order_Refund\.$#'
+			message: '#^Cannot call method update_status\(\) on WC_Order\|WC_Order_Refund\|false\.$#'
 			identifier: method.nonObject
 			count: 1
 			path: includes/gateways/cheque/class-wc-gateway-cheque.php
@@ -24541,7 +24385,7 @@ parameters:
 			path: includes/gateways/cheque/class-wc-gateway-cheque.php

 		-
-			message: '#^Parameter \#1 \$order of method WC_Payment_Gateway\:\:get_return_url\(\) expects WC_Order\|null, bool\|WC_Order\|WC_Order_Refund given\.$#'
+			message: '#^Parameter \#1 \$order of method WC_Payment_Gateway\:\:get_return_url\(\) expects WC_Order\|null, WC_Order\|WC_Order_Refund\|false given\.$#'
 			identifier: argument.type
 			count: 1
 			path: includes/gateways/cheque/class-wc-gateway-cheque.php
@@ -24595,31 +24439,25 @@ parameters:
 			path: includes/gateways/cod/class-wc-gateway-cod.php

 		-
-			message: '#^Cannot call method get_shipping_methods\(\) on WC_Order\|WC_Order_Refund\|true\.$#'
+			message: '#^Cannot call method get_total\(\) on WC_Order\|WC_Order_Refund\|false\.$#'
 			identifier: method.nonObject
 			count: 1
 			path: includes/gateways/cod/class-wc-gateway-cod.php

 		-
-			message: '#^Cannot call method get_total\(\) on bool\|WC_Order\|WC_Order_Refund\.$#'
+			message: '#^Cannot call method has_downloadable_item\(\) on WC_Order\|WC_Order_Refund\|false\.$#'
 			identifier: method.nonObject
 			count: 1
 			path: includes/gateways/cod/class-wc-gateway-cod.php

 		-
-			message: '#^Cannot call method has_downloadable_item\(\) on bool\|WC_Order\|WC_Order_Refund\.$#'
+			message: '#^Cannot call method payment_complete\(\) on WC_Order\|WC_Order_Refund\|false\.$#'
 			identifier: method.nonObject
 			count: 1
 			path: includes/gateways/cod/class-wc-gateway-cod.php

 		-
-			message: '#^Cannot call method payment_complete\(\) on bool\|WC_Order\|WC_Order_Refund\.$#'
-			identifier: method.nonObject
-			count: 1
-			path: includes/gateways/cod/class-wc-gateway-cod.php
-
-		-
-			message: '#^Cannot call method update_status\(\) on bool\|WC_Order\|WC_Order_Refund\.$#'
+			message: '#^Cannot call method update_status\(\) on WC_Order\|WC_Order_Refund\|false\.$#'
 			identifier: method.nonObject
 			count: 1
 			path: includes/gateways/cod/class-wc-gateway-cod.php
@@ -24661,7 +24499,7 @@ parameters:
 			path: includes/gateways/cod/class-wc-gateway-cod.php

 		-
-			message: '#^Parameter \#1 \$order of method WC_Payment_Gateway\:\:get_return_url\(\) expects WC_Order\|null, bool\|WC_Order\|WC_Order_Refund given\.$#'
+			message: '#^Parameter \#1 \$order of method WC_Payment_Gateway\:\:get_return_url\(\) expects WC_Order\|null, WC_Order\|WC_Order_Refund\|false given\.$#'
 			identifier: argument.type
 			count: 1
 			path: includes/gateways/cod/class-wc-gateway-cod.php
@@ -24727,49 +24565,31 @@ parameters:
 			path: includes/gateways/paypal/class-wc-gateway-paypal.php

 		-
-			message: '#^Cannot call method add_order_note\(\) on WC_Order\|WC_Order_Refund\|true\.$#'
-			identifier: method.nonObject
+			message: '#^Call to an undefined method WC_Order\|WC_Order_Refund\:\:add_order_note\(\)\.$#'
+			identifier: method.notFound
 			count: 3
 			path: includes/gateways/paypal/class-wc-gateway-paypal.php

 		-
-			message: '#^Cannot call method add_order_note\(\) on bool\|WC_Order\|WC_Order_Refund\.$#'
-			identifier: method.nonObject
-			count: 1
-			path: includes/gateways/paypal/class-wc-gateway-paypal.php
-
-		-
-			message: '#^Cannot call method get_meta\(\) on WC_Order\|WC_Order_Refund\|true\.$#'
-			identifier: method.nonObject
-			count: 2
-			path: includes/gateways/paypal/class-wc-gateway-paypal.php
-
-		-
-			message: '#^Cannot call method get_payment_method\(\) on WC_Order\|WC_Order_Refund\|true\.$#'
-			identifier: method.nonObject
-			count: 1
-			path: includes/gateways/paypal/class-wc-gateway-paypal.php
-
-		-
-			message: '#^Cannot call method get_transaction_id\(\) on WC_Order\|WC_Order_Refund\|true\.$#'
-			identifier: method.nonObject
+			message: '#^Call to an undefined method WC_Order\|WC_Order_Refund\:\:get_payment_method\(\)\.$#'
+			identifier: method.notFound
 			count: 1
 			path: includes/gateways/paypal/class-wc-gateway-paypal.php

 		-
-			message: '#^Cannot call method save\(\) on WC_Order\|WC_Order_Refund\|true\.$#'
-			identifier: method.nonObject
+			message: '#^Call to an undefined method WC_Order\|WC_Order_Refund\:\:get_transaction_id\(\)\.$#'
+			identifier: method.notFound
 			count: 1
 			path: includes/gateways/paypal/class-wc-gateway-paypal.php

 		-
-			message: '#^Cannot call method set_transaction_id\(\) on WC_Order\|WC_Order_Refund\|true\.$#'
-			identifier: method.nonObject
+			message: '#^Call to an undefined method WC_Order\|WC_Order_Refund\:\:set_transaction_id\(\)\.$#'
+			identifier: method.notFound
 			count: 1
 			path: includes/gateways/paypal/class-wc-gateway-paypal.php

 		-
-			message: '#^Cannot call method update_meta_data\(\) on WC_Order\|WC_Order_Refund\|true\.$#'
+			message: '#^Cannot call method add_order_note\(\) on WC_Order\|WC_Order_Refund\|false\.$#'
 			identifier: method.nonObject
 			count: 1
 			path: includes/gateways/paypal/class-wc-gateway-paypal.php
@@ -24841,37 +24661,37 @@ parameters:
 			path: includes/gateways/paypal/class-wc-gateway-paypal.php

 		-
-			message: '#^Parameter \#1 \$order of method WC_Gateway_Paypal\:\:can_refund_order\(\) expects WC_Order, bool\|WC_Order\|WC_Order_Refund given\.$#'
+			message: '#^Parameter \#1 \$order of method WC_Gateway_Paypal\:\:can_refund_order\(\) expects WC_Order, WC_Order\|WC_Order_Refund\|false given\.$#'
 			identifier: argument.type
 			count: 1
 			path: includes/gateways/paypal/class-wc-gateway-paypal.php

 		-
-			message: '#^Parameter \#1 \$order of method WC_Gateway_Paypal_Request\:\:capture_authorized_payment\(\) expects WC_Order, WC_Order\|WC_Order_Refund\|true given\.$#'
+			message: '#^Parameter \#1 \$order of method WC_Gateway_Paypal_Request\:\:capture_authorized_payment\(\) expects WC_Order, WC_Order\|WC_Order_Refund given\.$#'
 			identifier: argument.type
 			count: 1
 			path: includes/gateways/paypal/class-wc-gateway-paypal.php

 		-
-			message: '#^Parameter \#1 \$order of method WC_Gateway_Paypal_Request\:\:create_paypal_order\(\) expects WC_Order, bool\|WC_Order\|WC_Order_Refund given\.$#'
+			message: '#^Parameter \#1 \$order of method WC_Gateway_Paypal_Request\:\:create_paypal_order\(\) expects WC_Order, WC_Order\|WC_Order_Refund\|false given\.$#'
 			identifier: argument.type
 			count: 1
 			path: includes/gateways/paypal/class-wc-gateway-paypal.php

 		-
-			message: '#^Parameter \#1 \$order of method WC_Gateway_Paypal_Request\:\:get_request_url\(\) expects WC_Order, bool\|WC_Order\|WC_Order_Refund given\.$#'
+			message: '#^Parameter \#1 \$order of method WC_Gateway_Paypal_Request\:\:get_request_url\(\) expects WC_Order, WC_Order\|WC_Order_Refund\|false given\.$#'
 			identifier: argument.type
 			count: 1
 			path: includes/gateways/paypal/class-wc-gateway-paypal.php

 		-
-			message: '#^Parameter \#1 \$order of static method WC_Gateway_Paypal_API_Handler\:\:do_capture\(\) expects WC_Order, WC_Order\|WC_Order_Refund\|true given\.$#'
+			message: '#^Parameter \#1 \$order of static method WC_Gateway_Paypal_API_Handler\:\:do_capture\(\) expects WC_Order, WC_Order\|WC_Order_Refund given\.$#'
 			identifier: argument.type
 			count: 1
 			path: includes/gateways/paypal/class-wc-gateway-paypal.php

 		-
-			message: '#^Parameter \#1 \$order of static method WC_Gateway_Paypal_API_Handler\:\:refund_transaction\(\) expects WC_Order, bool\|WC_Order\|WC_Order_Refund given\.$#'
+			message: '#^Parameter \#1 \$order of static method WC_Gateway_Paypal_API_Handler\:\:refund_transaction\(\) expects WC_Order, WC_Order\|WC_Order_Refund\|false given\.$#'
 			identifier: argument.type
 			count: 1
 			path: includes/gateways/paypal/class-wc-gateway-paypal.php
@@ -25081,15 +24901,15 @@ parameters:
 			path: includes/gateways/paypal/includes/class-wc-gateway-paypal-pdt-handler.php

 		-
-			message: '#^Cannot call method get_id\(\) on WC_Order\|true\.$#'
+			message: '#^Cannot call method get_id\(\) on WC_Order\|WC_Order_Refund\|false\.$#'
 			identifier: method.nonObject
-			count: 3
+			count: 1
 			path: includes/gateways/paypal/includes/class-wc-gateway-paypal-pdt-handler.php

 		-
-			message: '#^Cannot call method get_id\(\) on bool\|WC_Order\|WC_Order_Refund\.$#'
+			message: '#^Cannot call method get_id\(\) on WC_Order\|true\.$#'
 			identifier: method.nonObject
-			count: 1
+			count: 3
 			path: includes/gateways/paypal/includes/class-wc-gateway-paypal-pdt-handler.php

 		-
@@ -25099,7 +24919,7 @@ parameters:
 			path: includes/gateways/paypal/includes/class-wc-gateway-paypal-pdt-handler.php

 		-
-			message: '#^Cannot call method needs_payment\(\) on bool\|WC_Order\|WC_Order_Refund\.$#'
+			message: '#^Cannot call method needs_payment\(\) on WC_Order\|WC_Order_Refund\|false\.$#'
 			identifier: method.nonObject
 			count: 1
 			path: includes/gateways/paypal/includes/class-wc-gateway-paypal-pdt-handler.php
@@ -25315,13 +25135,13 @@ parameters:
 			path: includes/gateways/paypal/includes/class-wc-gateway-paypal-response.php

 		-
-			message: '#^Cannot call method get_order_key\(\) on WC_Order\|WC_Order_Refund\|true\.$#'
-			identifier: method.nonObject
+			message: '#^Call to an undefined method WC_Order\|WC_Order_Refund\:\:get_order_key\(\)\.$#'
+			identifier: method.notFound
 			count: 1
 			path: includes/gateways/paypal/includes/class-wc-gateway-paypal-response.php

 		-
-			message: '#^Method WC_Gateway_Paypal_Response\:\:get_paypal_order\(\) should return bool\|WC_Order but returns WC_Order\|WC_Order_Refund\|true\.$#'
+			message: '#^Method WC_Gateway_Paypal_Response\:\:get_paypal_order\(\) should return bool\|WC_Order but returns WC_Order\|WC_Order_Refund\.$#'
 			identifier: return.type
 			count: 1
 			path: includes/gateways/paypal/includes/class-wc-gateway-paypal-response.php
@@ -28603,23 +28423,11 @@ parameters:
 			path: includes/rest-api/Controllers/Version1/class-wc-rest-order-notes-v1-controller.php

 		-
-			message: '#^Cannot call method add_order_note\(\) on WC_Order\|WC_Order_Refund\|true\.$#'
-			identifier: method.nonObject
+			message: '#^Call to an undefined method WC_Order\|WC_Order_Refund\:\:add_order_note\(\)\.$#'
+			identifier: method.notFound
 			count: 1
 			path: includes/rest-api/Controllers/Version1/class-wc-rest-order-notes-v1-controller.php

-		-
-			message: '#^Cannot call method get_id\(\) on WC_Order\|WC_Order_Refund\|true\.$#'
-			identifier: method.nonObject
-			count: 6
-			path: includes/rest-api/Controllers/Version1/class-wc-rest-order-notes-v1-controller.php
-
-		-
-			message: '#^Cannot call method get_type\(\) on WC_Order\|WC_Order_Refund\|true\.$#'
-			identifier: method.nonObject
-			count: 4
-			path: includes/rest-api/Controllers/Version1/class-wc-rest-order-notes-v1-controller.php
-
 		-
 			message: '#^Function remove_filter invoked with 4 parameters, 2\-3 required\.$#'
 			identifier: arguments.count
@@ -28759,80 +28567,38 @@ parameters:
 			path: includes/rest-api/Controllers/Version1/class-wc-rest-order-refunds-v1-controller.php

 		-
-			message: '#^Call to an undefined method WP_Error\|WP_REST_Response\:\:header\(\)\.$#'
+			message: '#^Call to an undefined method WC_Order\|WC_Order_Refund\:\:get_amount\(\)\.$#'
 			identifier: method.notFound
 			count: 1
 			path: includes/rest-api/Controllers/Version1/class-wc-rest-order-refunds-v1-controller.php

 		-
-			message: '#^Call to an undefined method WP_Error\|WP_REST_Response\:\:set_status\(\)\.$#'
+			message: '#^Call to an undefined method WC_Order\|WC_Order_Refund\:\:get_reason\(\)\.$#'
 			identifier: method.notFound
 			count: 1
 			path: includes/rest-api/Controllers/Version1/class-wc-rest-order-refunds-v1-controller.php

 		-
-			message: '#^Call to an undefined method object\:\:get_sku\(\)\.$#'
+			message: '#^Call to an undefined method WP_Error\|WP_REST_Response\:\:header\(\)\.$#'
 			identifier: method.notFound
 			count: 1
 			path: includes/rest-api/Controllers/Version1/class-wc-rest-order-refunds-v1-controller.php

 		-
-			message: '#^Cannot access property \$ID on WP_Post\|null\.$#'
-			identifier: property.nonObject
-			count: 1
-			path: includes/rest-api/Controllers/Version1/class-wc-rest-order-refunds-v1-controller.php
-
-		-
-			message: '#^Cannot call method get_amount\(\) on WC_Order\|WC_Order_Refund\|true\.$#'
-			identifier: method.nonObject
-			count: 1
-			path: includes/rest-api/Controllers/Version1/class-wc-rest-order-refunds-v1-controller.php
-
-		-
-			message: '#^Cannot call method get_date_created\(\) on WC_Order\|WC_Order_Refund\|true\.$#'
-			identifier: method.nonObject
-			count: 1
-			path: includes/rest-api/Controllers/Version1/class-wc-rest-order-refunds-v1-controller.php
-
-		-
-			message: '#^Cannot call method get_id\(\) on WC_Order\|WC_Order_Refund\|true\.$#'
-			identifier: method.nonObject
-			count: 2
-			path: includes/rest-api/Controllers/Version1/class-wc-rest-order-refunds-v1-controller.php
-
-		-
-			message: '#^Cannot call method get_item_total\(\) on WC_Order\|WC_Order_Refund\|true\.$#'
-			identifier: method.nonObject
-			count: 1
-			path: includes/rest-api/Controllers/Version1/class-wc-rest-order-refunds-v1-controller.php
-
-		-
-			message: '#^Cannot call method get_items\(\) on WC_Order\|WC_Order_Refund\|true\.$#'
-			identifier: method.nonObject
-			count: 1
-			path: includes/rest-api/Controllers/Version1/class-wc-rest-order-refunds-v1-controller.php
-
-		-
-			message: '#^Cannot call method get_line_subtotal\(\) on WC_Order\|WC_Order_Refund\|true\.$#'
-			identifier: method.nonObject
-			count: 1
-			path: includes/rest-api/Controllers/Version1/class-wc-rest-order-refunds-v1-controller.php
-
-		-
-			message: '#^Cannot call method get_line_total\(\) on WC_Order\|WC_Order_Refund\|true\.$#'
-			identifier: method.nonObject
+			message: '#^Call to an undefined method WP_Error\|WP_REST_Response\:\:set_status\(\)\.$#'
+			identifier: method.notFound
 			count: 1
 			path: includes/rest-api/Controllers/Version1/class-wc-rest-order-refunds-v1-controller.php

 		-
-			message: '#^Cannot call method get_parent_id\(\) on WC_Order\|WC_Order_Refund\|true\.$#'
-			identifier: method.nonObject
+			message: '#^Call to an undefined method object\:\:get_sku\(\)\.$#'
+			identifier: method.notFound
 			count: 1
 			path: includes/rest-api/Controllers/Version1/class-wc-rest-order-refunds-v1-controller.php

 		-
-			message: '#^Cannot call method get_reason\(\) on WC_Order\|WC_Order_Refund\|true\.$#'
-			identifier: method.nonObject
+			message: '#^Cannot access property \$ID on WP_Post\|null\.$#'
+			identifier: property.nonObject
 			count: 1
 			path: includes/rest-api/Controllers/Version1/class-wc-rest-order-refunds-v1-controller.php

@@ -28897,7 +28663,7 @@ parameters:
 			path: includes/rest-api/Controllers/Version1/class-wc-rest-order-refunds-v1-controller.php

 		-
-			message: '#^Parameter \#1 \$refund of method WC_REST_Order_Refunds_V1_Controller\:\:prepare_links\(\) expects WC_Order_Refund, WC_Order\|WC_Order_Refund\|true given\.$#'
+			message: '#^Parameter \#1 \$refund of method WC_REST_Order_Refunds_V1_Controller\:\:prepare_links\(\) expects WC_Order_Refund, WC_Order\|WC_Order_Refund given\.$#'
 			identifier: argument.type
 			count: 1
 			path: includes/rest-api/Controllers/Version1/class-wc-rest-order-refunds-v1-controller.php
@@ -29005,229 +28771,223 @@ parameters:
 			path: includes/rest-api/Controllers/Version1/class-wc-rest-orders-v1-controller.php

 		-
-			message: '#^Cannot call method get_address\(\) on bool\|WC_Order\|WC_Order_Refund\.$#'
+			message: '#^Cannot call method get_address\(\) on WC_Order\|WC_Order_Refund\|false\.$#'
 			identifier: method.nonObject
 			count: 2
 			path: includes/rest-api/Controllers/Version1/class-wc-rest-orders-v1-controller.php

 		-
-			message: '#^Cannot call method get_cart_hash\(\) on bool\|WC_Order\|WC_Order_Refund\.$#'
+			message: '#^Cannot call method get_cart_hash\(\) on WC_Order\|WC_Order_Refund\|false\.$#'
 			identifier: method.nonObject
 			count: 1
 			path: includes/rest-api/Controllers/Version1/class-wc-rest-orders-v1-controller.php

 		-
-			message: '#^Cannot call method get_cart_tax\(\) on bool\|WC_Order\|WC_Order_Refund\.$#'
+			message: '#^Cannot call method get_cart_tax\(\) on WC_Order\|WC_Order_Refund\|false\.$#'
 			identifier: method.nonObject
 			count: 1
 			path: includes/rest-api/Controllers/Version1/class-wc-rest-orders-v1-controller.php

 		-
-			message: '#^Cannot call method get_created_via\(\) on bool\|WC_Order\|WC_Order_Refund\.$#'
+			message: '#^Cannot call method get_created_via\(\) on WC_Order\|WC_Order_Refund\|false\.$#'
 			identifier: method.nonObject
 			count: 1
 			path: includes/rest-api/Controllers/Version1/class-wc-rest-orders-v1-controller.php

 		-
-			message: '#^Cannot call method get_currency\(\) on bool\|WC_Order\|WC_Order_Refund\.$#'
+			message: '#^Cannot call method get_currency\(\) on WC_Order\|WC_Order_Refund\|false\.$#'
 			identifier: method.nonObject
 			count: 1
 			path: includes/rest-api/Controllers/Version1/class-wc-rest-orders-v1-controller.php

 		-
-			message: '#^Cannot call method get_customer_id\(\) on bool\|WC_Order\|WC_Order_Refund\.$#'
+			message: '#^Cannot call method get_customer_id\(\) on WC_Order\|WC_Order_Refund\|false\.$#'
 			identifier: method.nonObject
 			count: 1
 			path: includes/rest-api/Controllers/Version1/class-wc-rest-orders-v1-controller.php

 		-
-			message: '#^Cannot call method get_customer_ip_address\(\) on bool\|WC_Order\|WC_Order_Refund\.$#'
+			message: '#^Cannot call method get_customer_ip_address\(\) on WC_Order\|WC_Order_Refund\|false\.$#'
 			identifier: method.nonObject
 			count: 1
 			path: includes/rest-api/Controllers/Version1/class-wc-rest-orders-v1-controller.php

 		-
-			message: '#^Cannot call method get_customer_note\(\) on bool\|WC_Order\|WC_Order_Refund\.$#'
+			message: '#^Cannot call method get_customer_note\(\) on WC_Order\|WC_Order_Refund\|false\.$#'
 			identifier: method.nonObject
 			count: 1
 			path: includes/rest-api/Controllers/Version1/class-wc-rest-orders-v1-controller.php

 		-
-			message: '#^Cannot call method get_customer_user_agent\(\) on bool\|WC_Order\|WC_Order_Refund\.$#'
+			message: '#^Cannot call method get_customer_user_agent\(\) on WC_Order\|WC_Order_Refund\|false\.$#'
 			identifier: method.nonObject
 			count: 1
 			path: includes/rest-api/Controllers/Version1/class-wc-rest-orders-v1-controller.php

 		-
-			message: '#^Cannot call method get_date_completed\(\) on bool\|WC_Order\|WC_Order_Refund\.$#'
+			message: '#^Cannot call method get_date_completed\(\) on WC_Order\|WC_Order_Refund\|false\.$#'
 			identifier: method.nonObject
 			count: 1
 			path: includes/rest-api/Controllers/Version1/class-wc-rest-orders-v1-controller.php

 		-
-			message: '#^Cannot call method get_date_created\(\) on bool\|WC_Order\|WC_Order_Refund\.$#'
+			message: '#^Cannot call method get_date_created\(\) on WC_Order\|WC_Order_Refund\|false\.$#'
 			identifier: method.nonObject
 			count: 1
 			path: includes/rest-api/Controllers/Version1/class-wc-rest-orders-v1-controller.php

 		-
-			message: '#^Cannot call method get_date_modified\(\) on bool\|WC_Order\|WC_Order_Refund\.$#'
+			message: '#^Cannot call method get_date_modified\(\) on WC_Order\|WC_Order_Refund\|false\.$#'
 			identifier: method.nonObject
 			count: 1
 			path: includes/rest-api/Controllers/Version1/class-wc-rest-orders-v1-controller.php

 		-
-			message: '#^Cannot call method get_date_paid\(\) on bool\|WC_Order\|WC_Order_Refund\.$#'
+			message: '#^Cannot call method get_date_paid\(\) on WC_Order\|WC_Order_Refund\|false\.$#'
 			identifier: method.nonObject
 			count: 1
 			path: includes/rest-api/Controllers/Version1/class-wc-rest-orders-v1-controller.php

 		-
-			message: '#^Cannot call method get_discount_tax\(\) on bool\|WC_Order\|WC_Order_Refund\.$#'
+			message: '#^Cannot call method get_discount_tax\(\) on WC_Order\|WC_Order_Refund\|false\.$#'
 			identifier: method.nonObject
 			count: 1
 			path: includes/rest-api/Controllers/Version1/class-wc-rest-orders-v1-controller.php

 		-
-			message: '#^Cannot call method get_fees\(\) on bool\|WC_Order\|WC_Order_Refund\.$#'
+			message: '#^Cannot call method get_fees\(\) on WC_Order\|WC_Order_Refund\|false\.$#'
 			identifier: method.nonObject
 			count: 1
 			path: includes/rest-api/Controllers/Version1/class-wc-rest-orders-v1-controller.php

 		-
-			message: '#^Cannot call method get_id\(\) on WC_Order\|WC_Order_Refund\|true\.$#'
-			identifier: method.nonObject
-			count: 3
-			path: includes/rest-api/Controllers/Version1/class-wc-rest-orders-v1-controller.php
-
-		-
-			message: '#^Cannot call method get_id\(\) on bool\|WC_Order\|WC_Order_Refund\.$#'
+			message: '#^Cannot call method get_id\(\) on WC_Order\|WC_Order_Refund\|false\.$#'
 			identifier: method.nonObject
 			count: 1
 			path: includes/rest-api/Controllers/Version1/class-wc-rest-orders-v1-controller.php

 		-
-			message: '#^Cannot call method get_item_total\(\) on bool\|WC_Order\|WC_Order_Refund\.$#'
+			message: '#^Cannot call method get_item_total\(\) on WC_Order\|WC_Order_Refund\|false\.$#'
 			identifier: method.nonObject
 			count: 1
 			path: includes/rest-api/Controllers/Version1/class-wc-rest-orders-v1-controller.php

 		-
-			message: '#^Cannot call method get_items\(\) on bool\|WC_Order\|WC_Order_Refund\.$#'
+			message: '#^Cannot call method get_items\(\) on WC_Order\|WC_Order_Refund\|false\.$#'
 			identifier: method.nonObject
 			count: 3
 			path: includes/rest-api/Controllers/Version1/class-wc-rest-orders-v1-controller.php

 		-
-			message: '#^Cannot call method get_line_subtotal\(\) on bool\|WC_Order\|WC_Order_Refund\.$#'
+			message: '#^Cannot call method get_line_subtotal\(\) on WC_Order\|WC_Order_Refund\|false\.$#'
 			identifier: method.nonObject
 			count: 1
 			path: includes/rest-api/Controllers/Version1/class-wc-rest-orders-v1-controller.php

 		-
-			message: '#^Cannot call method get_line_tax\(\) on bool\|WC_Order\|WC_Order_Refund\.$#'
+			message: '#^Cannot call method get_line_tax\(\) on WC_Order\|WC_Order_Refund\|false\.$#'
 			identifier: method.nonObject
 			count: 1
 			path: includes/rest-api/Controllers/Version1/class-wc-rest-orders-v1-controller.php

 		-
-			message: '#^Cannot call method get_line_total\(\) on bool\|WC_Order\|WC_Order_Refund\.$#'
+			message: '#^Cannot call method get_line_total\(\) on WC_Order\|WC_Order_Refund\|false\.$#'
 			identifier: method.nonObject
 			count: 2
 			path: includes/rest-api/Controllers/Version1/class-wc-rest-orders-v1-controller.php

 		-
-			message: '#^Cannot call method get_order_key\(\) on bool\|WC_Order\|WC_Order_Refund\.$#'
+			message: '#^Cannot call method get_order_key\(\) on WC_Order\|WC_Order_Refund\|false\.$#'
 			identifier: method.nonObject
 			count: 1
 			path: includes/rest-api/Controllers/Version1/class-wc-rest-orders-v1-controller.php

 		-
-			message: '#^Cannot call method get_order_number\(\) on bool\|WC_Order\|WC_Order_Refund\.$#'
+			message: '#^Cannot call method get_order_number\(\) on WC_Order\|WC_Order_Refund\|false\.$#'
 			identifier: method.nonObject
 			count: 1
 			path: includes/rest-api/Controllers/Version1/class-wc-rest-orders-v1-controller.php

 		-
-			message: '#^Cannot call method get_parent_id\(\) on bool\|WC_Order\|WC_Order_Refund\.$#'
+			message: '#^Cannot call method get_parent_id\(\) on WC_Order\|WC_Order_Refund\|false\.$#'
 			identifier: method.nonObject
 			count: 1
 			path: includes/rest-api/Controllers/Version1/class-wc-rest-orders-v1-controller.php

 		-
-			message: '#^Cannot call method get_payment_method\(\) on bool\|WC_Order\|WC_Order_Refund\.$#'
+			message: '#^Cannot call method get_payment_method\(\) on WC_Order\|WC_Order_Refund\|false\.$#'
 			identifier: method.nonObject
 			count: 1
 			path: includes/rest-api/Controllers/Version1/class-wc-rest-orders-v1-controller.php

 		-
-			message: '#^Cannot call method get_payment_method_title\(\) on bool\|WC_Order\|WC_Order_Refund\.$#'
+			message: '#^Cannot call method get_payment_method_title\(\) on WC_Order\|WC_Order_Refund\|false\.$#'
 			identifier: method.nonObject
 			count: 1
 			path: includes/rest-api/Controllers/Version1/class-wc-rest-orders-v1-controller.php

 		-
-			message: '#^Cannot call method get_prices_include_tax\(\) on bool\|WC_Order\|WC_Order_Refund\.$#'
+			message: '#^Cannot call method get_prices_include_tax\(\) on WC_Order\|WC_Order_Refund\|false\.$#'
 			identifier: method.nonObject
 			count: 1
 			path: includes/rest-api/Controllers/Version1/class-wc-rest-orders-v1-controller.php

 		-
-			message: '#^Cannot call method get_refunds\(\) on bool\|WC_Order\|WC_Order_Refund\.$#'
+			message: '#^Cannot call method get_refunds\(\) on WC_Order\|WC_Order_Refund\|false\.$#'
 			identifier: method.nonObject
 			count: 1
 			path: includes/rest-api/Controllers/Version1/class-wc-rest-orders-v1-controller.php

 		-
-			message: '#^Cannot call method get_shipping_methods\(\) on bool\|WC_Order\|WC_Order_Refund\.$#'
+			message: '#^Cannot call method get_shipping_methods\(\) on WC_Order\|WC_Order_Refund\|false\.$#'
 			identifier: method.nonObject
 			count: 1
 			path: includes/rest-api/Controllers/Version1/class-wc-rest-orders-v1-controller.php

 		-
-			message: '#^Cannot call method get_shipping_tax\(\) on bool\|WC_Order\|WC_Order_Refund\.$#'
+			message: '#^Cannot call method get_shipping_tax\(\) on WC_Order\|WC_Order_Refund\|false\.$#'
 			identifier: method.nonObject
 			count: 1
 			path: includes/rest-api/Controllers/Version1/class-wc-rest-orders-v1-controller.php

 		-
-			message: '#^Cannot call method get_shipping_total\(\) on bool\|WC_Order\|WC_Order_Refund\.$#'
+			message: '#^Cannot call method get_shipping_total\(\) on WC_Order\|WC_Order_Refund\|false\.$#'
 			identifier: method.nonObject
 			count: 1
 			path: includes/rest-api/Controllers/Version1/class-wc-rest-orders-v1-controller.php

 		-
-			message: '#^Cannot call method get_status\(\) on bool\|WC_Order\|WC_Order_Refund\.$#'
+			message: '#^Cannot call method get_status\(\) on WC_Order\|WC_Order_Refund\|false\.$#'
 			identifier: method.nonObject
 			count: 1
 			path: includes/rest-api/Controllers/Version1/class-wc-rest-orders-v1-controller.php

 		-
-			message: '#^Cannot call method get_total\(\) on bool\|WC_Order\|WC_Order_Refund\.$#'
+			message: '#^Cannot call method get_total\(\) on WC_Order\|WC_Order_Refund\|false\.$#'
 			identifier: method.nonObject
 			count: 1
 			path: includes/rest-api/Controllers/Version1/class-wc-rest-orders-v1-controller.php

 		-
-			message: '#^Cannot call method get_total_discount\(\) on bool\|WC_Order\|WC_Order_Refund\.$#'
+			message: '#^Cannot call method get_total_discount\(\) on WC_Order\|WC_Order_Refund\|false\.$#'
 			identifier: method.nonObject
 			count: 1
 			path: includes/rest-api/Controllers/Version1/class-wc-rest-orders-v1-controller.php

 		-
-			message: '#^Cannot call method get_total_tax\(\) on bool\|WC_Order\|WC_Order_Refund\.$#'
+			message: '#^Cannot call method get_total_tax\(\) on WC_Order\|WC_Order_Refund\|false\.$#'
 			identifier: method.nonObject
 			count: 1
 			path: includes/rest-api/Controllers/Version1/class-wc-rest-orders-v1-controller.php

 		-
-			message: '#^Cannot call method get_transaction_id\(\) on bool\|WC_Order\|WC_Order_Refund\.$#'
+			message: '#^Cannot call method get_transaction_id\(\) on WC_Order\|WC_Order_Refund\|false\.$#'
 			identifier: method.nonObject
 			count: 1
 			path: includes/rest-api/Controllers/Version1/class-wc-rest-orders-v1-controller.php

 		-
-			message: '#^Cannot call method get_version\(\) on bool\|WC_Order\|WC_Order_Refund\.$#'
+			message: '#^Cannot call method get_version\(\) on WC_Order\|WC_Order_Refund\|false\.$#'
 			identifier: method.nonObject
 			count: 1
 			path: includes/rest-api/Controllers/Version1/class-wc-rest-orders-v1-controller.php
@@ -29371,7 +29131,7 @@ parameters:
 			path: includes/rest-api/Controllers/Version1/class-wc-rest-orders-v1-controller.php

 		-
-			message: '#^Parameter \#1 \$order of method WC_REST_Orders_V1_Controller\:\:prepare_links\(\) expects WC_Order, bool\|WC_Order\|WC_Order_Refund given\.$#'
+			message: '#^Parameter \#1 \$order of method WC_REST_Orders_V1_Controller\:\:prepare_links\(\) expects WC_Order, WC_Order\|WC_Order_Refund\|false given\.$#'
 			identifier: argument.type
 			count: 1
 			path: includes/rest-api/Controllers/Version1/class-wc-rest-orders-v1-controller.php
@@ -31045,31 +30805,31 @@ parameters:
 			path: includes/rest-api/Controllers/Version2/class-wc-rest-network-orders-v2-controller.php

 		-
-			message: '#^Cannot call method get_billing_first_name\(\) on bool\|WC_Order\|WC_Order_Refund\.$#'
+			message: '#^Cannot call method get_billing_first_name\(\) on WC_Order\|WC_Order_Refund\|false\.$#'
 			identifier: method.nonObject
 			count: 1
 			path: includes/rest-api/Controllers/Version2/class-wc-rest-network-orders-v2-controller.php

 		-
-			message: '#^Cannot call method get_billing_last_name\(\) on bool\|WC_Order\|WC_Order_Refund\.$#'
+			message: '#^Cannot call method get_billing_last_name\(\) on WC_Order\|WC_Order_Refund\|false\.$#'
 			identifier: method.nonObject
 			count: 1
 			path: includes/rest-api/Controllers/Version2/class-wc-rest-network-orders-v2-controller.php

 		-
-			message: '#^Cannot call method get_formatted_order_total\(\) on bool\|WC_Order\|WC_Order_Refund\.$#'
+			message: '#^Cannot call method get_formatted_order_total\(\) on WC_Order\|WC_Order_Refund\|false\.$#'
 			identifier: method.nonObject
 			count: 1
 			path: includes/rest-api/Controllers/Version2/class-wc-rest-network-orders-v2-controller.php

 		-
-			message: '#^Cannot call method get_id\(\) on bool\|WC_Order\|WC_Order_Refund\.$#'
+			message: '#^Cannot call method get_id\(\) on WC_Order\|WC_Order_Refund\|false\.$#'
 			identifier: method.nonObject
 			count: 1
 			path: includes/rest-api/Controllers/Version2/class-wc-rest-network-orders-v2-controller.php

 		-
-			message: '#^Cannot call method get_status\(\) on bool\|WC_Order\|WC_Order_Refund\.$#'
+			message: '#^Cannot call method get_status\(\) on WC_Order\|WC_Order_Refund\|false\.$#'
 			identifier: method.nonObject
 			count: 1
 			path: includes/rest-api/Controllers/Version2/class-wc-rest-network-orders-v2-controller.php
@@ -31116,18 +30876,6 @@ parameters:
 			count: 1
 			path: includes/rest-api/Controllers/Version2/class-wc-rest-order-notes-v2-controller.php

-		-
-			message: '#^Cannot call method get_id\(\) on WC_Order\|WC_Order_Refund\|true\.$#'
-			identifier: method.nonObject
-			count: 1
-			path: includes/rest-api/Controllers/Version2/class-wc-rest-order-notes-v2-controller.php
-
-		-
-			message: '#^Cannot call method get_type\(\) on WC_Order\|WC_Order_Refund\|true\.$#'
-			identifier: method.nonObject
-			count: 1
-			path: includes/rest-api/Controllers/Version2/class-wc-rest-order-notes-v2-controller.php
-
 		-
 			message: '#^Function remove_filter invoked with 4 parameters, 2\-3 required\.$#'
 			identifier: arguments.count
@@ -31182,12 +30930,6 @@ parameters:
 			count: 1
 			path: includes/rest-api/Controllers/Version2/class-wc-rest-order-refunds-v2-controller.php

-		-
-			message: '#^Cannot call method get_id\(\) on WC_Order\|WC_Order_Refund\|true\.$#'
-			identifier: method.nonObject
-			count: 2
-			path: includes/rest-api/Controllers/Version2/class-wc-rest-order-refunds-v2-controller.php
-
 		-
 			message: '#^Dead catch \- WC_REST_Exception is already caught above\.$#'
 			identifier: catch.alreadyCaught
@@ -31195,7 +30937,7 @@ parameters:
 			path: includes/rest-api/Controllers/Version2/class-wc-rest-order-refunds-v2-controller.php

 		-
-			message: '#^Method WC_REST_Order_Refunds_V2_Controller\:\:get_object\(\) should return WC_Data but returns bool\|WC_Order\|WC_Order_Refund\.$#'
+			message: '#^Method WC_REST_Order_Refunds_V2_Controller\:\:get_object\(\) should return WC_Data but returns WC_Order\|WC_Order_Refund\|false\.$#'
 			identifier: return.type
 			count: 1
 			path: includes/rest-api/Controllers/Version2/class-wc-rest-order-refunds-v2-controller.php
@@ -31404,12 +31146,6 @@ parameters:
 			count: 1
 			path: includes/rest-api/Controllers/Version2/class-wc-rest-orders-v2-controller.php

-		-
-			message: '#^Cannot call method get_type\(\) on WC_Order\|WC_Order_Refund\|true\.$#'
-			identifier: method.nonObject
-			count: 1
-			path: includes/rest-api/Controllers/Version2/class-wc-rest-orders-v2-controller.php
-
 		-
 			message: '#^Class WC_Order_Item referenced with incorrect case\: WC_Order_item\.$#'
 			identifier: class.nameCase
@@ -34027,20 +33763,8 @@ parameters:
 			path: includes/rest-api/Controllers/Version3/class-wc-rest-order-notes-controller.php

 		-
-			message: '#^Cannot call method add_order_note\(\) on WC_Order\|WC_Order_Refund\|true\.$#'
-			identifier: method.nonObject
-			count: 1
-			path: includes/rest-api/Controllers/Version3/class-wc-rest-order-notes-controller.php
-
-		-
-			message: '#^Cannot call method get_id\(\) on WC_Order\|WC_Order_Refund\|true\.$#'
-			identifier: method.nonObject
-			count: 1
-			path: includes/rest-api/Controllers/Version3/class-wc-rest-order-notes-controller.php
-
-		-
-			message: '#^Cannot call method get_type\(\) on WC_Order\|WC_Order_Refund\|true\.$#'
-			identifier: method.nonObject
+			message: '#^Call to an undefined method WC_Order\|WC_Order_Refund\:\:add_order_note\(\)\.$#'
+			identifier: method.notFound
 			count: 1
 			path: includes/rest-api/Controllers/Version3/class-wc-rest-order-notes-controller.php

@@ -34086,12 +33810,6 @@ parameters:
 			count: 1
 			path: includes/rest-api/Controllers/Version3/class-wc-rest-order-notes-controller.php

-		-
-			message: '#^Cannot call method get_id\(\) on WC_Order\|WC_Order_Refund\|true\.$#'
-			identifier: method.nonObject
-			count: 1
-			path: includes/rest-api/Controllers/Version3/class-wc-rest-order-refunds-controller.php
-
 		-
 			message: '#^Method WC_REST_Order_Refunds_Controller\:\:prepare_object_for_database\(\) has parameter \$request with generic class WP_REST_Request but does not specify its types\: T$#'
 			identifier: missingType.generics
@@ -34231,50 +33949,20 @@ parameters:
 			path: includes/rest-api/Controllers/Version3/class-wc-rest-payment-gateways-controller.php

 		-
-			message: '#^Cannot call method get_meta\(\) on WC_Order\|WC_Order_Refund\|true\.$#'
-			identifier: method.nonObject
-			count: 1
-			path: includes/rest-api/Controllers/Version3/class-wc-rest-paypal-buttons-controller.php
-
-		-
-			message: '#^Cannot call method get_order_key\(\) on WC_Order\|WC_Order_Refund\|true\.$#'
-			identifier: method.nonObject
-			count: 1
-			path: includes/rest-api/Controllers/Version3/class-wc-rest-paypal-buttons-controller.php
-
-		-
-			message: '#^Cannot call method get_status\(\) on WC_Order\|WC_Order_Refund\|true\.$#'
-			identifier: method.nonObject
-			count: 1
-			path: includes/rest-api/Controllers/Version3/class-wc-rest-paypal-buttons-controller.php
-
-		-
-			message: '#^Cannot call method has_status\(\) on WC_Order\|WC_Order_Refund\|true\.$#'
-			identifier: method.nonObject
-			count: 2
-			path: includes/rest-api/Controllers/Version3/class-wc-rest-paypal-buttons-controller.php
-
-		-
-			message: '#^Cannot call method save\(\) on WC_Order\|WC_Order_Refund\|true\.$#'
-			identifier: method.nonObject
-			count: 3
-			path: includes/rest-api/Controllers/Version3/class-wc-rest-paypal-buttons-controller.php
-
-		-
-			message: '#^Cannot call method set_payment_method\(\) on WC_Order\|WC_Order_Refund\|true\.$#'
-			identifier: method.nonObject
+			message: '#^Call to an undefined method WC_Order\|WC_Order_Refund\:\:get_order_key\(\)\.$#'
+			identifier: method.notFound
 			count: 1
 			path: includes/rest-api/Controllers/Version3/class-wc-rest-paypal-buttons-controller.php

 		-
-			message: '#^Cannot call method update_meta_data\(\) on WC_Order\|WC_Order_Refund\|true\.$#'
-			identifier: method.nonObject
+			message: '#^Call to an undefined method WC_Order\|WC_Order_Refund\:\:set_payment_method\(\)\.$#'
+			identifier: method.notFound
 			count: 1
 			path: includes/rest-api/Controllers/Version3/class-wc-rest-paypal-buttons-controller.php

 		-
-			message: '#^Cannot call method update_status\(\) on WC_Order\|WC_Order_Refund\|true\.$#'
-			identifier: method.nonObject
+			message: '#^Call to an undefined method WC_Order\|WC_Order_Refund\:\:update_status\(\)\.$#'
+			identifier: method.notFound
 			count: 2
 			path: includes/rest-api/Controllers/Version3/class-wc-rest-paypal-buttons-controller.php

@@ -34333,13 +34021,13 @@ parameters:
 			path: includes/rest-api/Controllers/Version3/class-wc-rest-paypal-buttons-controller.php

 		-
-			message: '#^Parameter \#1 \$order of method WC_Gateway_Paypal_Request\:\:create_paypal_order\(\) expects WC_Order, WC_Order\|WC_Order_Refund\|true given\.$#'
+			message: '#^Parameter \#1 \$order of method WC_Gateway_Paypal_Request\:\:create_paypal_order\(\) expects WC_Order, WC_Order\|WC_Order_Refund given\.$#'
 			identifier: argument.type
 			count: 1
 			path: includes/rest-api/Controllers/Version3/class-wc-rest-paypal-buttons-controller.php

 		-
-			message: '#^Parameter \#1 \$order of method WC_Payment_Gateway\:\:get_return_url\(\) expects WC_Order\|null, WC_Order\|WC_Order_Refund\|true given\.$#'
+			message: '#^Parameter \#1 \$order of method WC_Payment_Gateway\:\:get_return_url\(\) expects WC_Order\|null, WC_Order\|WC_Order_Refund given\.$#'
 			identifier: argument.type
 			count: 1
 			path: includes/rest-api/Controllers/Version3/class-wc-rest-paypal-buttons-controller.php
@@ -37192,95 +36880,59 @@ parameters:
 			path: includes/shortcodes/class-wc-shortcode-cart.php

 		-
-			message: '#^@param WC_Order \$order does not accept actual type of parameter\: WC_Order\|WC_Order_Refund\|true\.$#'
+			message: '#^@param WC_Order \$order does not accept actual type of parameter\: WC_Order\|WC_Order_Refund\.$#'
 			identifier: parameter.phpDocType
 			count: 1
 			path: includes/shortcodes/class-wc-shortcode-checkout.php

 		-
-			message: '#^Call to an undefined method object\:\:get_stock_reduced\(\)\.$#'
+			message: '#^Call to an undefined method WC_Order\|WC_Order_Refund\:\:get_billing_country\(\)\.$#'
 			identifier: method.notFound
-			count: 1
-			path: includes/shortcodes/class-wc-shortcode-checkout.php
-
-		-
-			message: '#^Cannot call method get_billing_country\(\) on WC_Order\|WC_Order_Refund\|true\.$#'
-			identifier: method.nonObject
 			count: 2
 			path: includes/shortcodes/class-wc-shortcode-checkout.php

 		-
-			message: '#^Cannot call method get_billing_email\(\) on WC_Order\|WC_Order_Refund\|true\.$#'
-			identifier: method.nonObject
+			message: '#^Call to an undefined method WC_Order\|WC_Order_Refund\:\:get_billing_email\(\)\.$#'
+			identifier: method.notFound
 			count: 1
 			path: includes/shortcodes/class-wc-shortcode-checkout.php

 		-
-			message: '#^Cannot call method get_billing_postcode\(\) on WC_Order\|WC_Order_Refund\|true\.$#'
-			identifier: method.nonObject
-			count: 2
-			path: includes/shortcodes/class-wc-shortcode-checkout.php
-
-		-
-			message: '#^Cannot call method get_billing_state\(\) on WC_Order\|WC_Order_Refund\|true\.$#'
-			identifier: method.nonObject
+			message: '#^Call to an undefined method WC_Order\|WC_Order_Refund\:\:get_billing_postcode\(\)\.$#'
+			identifier: method.notFound
 			count: 2
 			path: includes/shortcodes/class-wc-shortcode-checkout.php

 		-
-			message: '#^Cannot call method get_checkout_payment_url\(\) on WC_Order\|WC_Order_Refund\|true\.$#'
-			identifier: method.nonObject
+			message: '#^Call to an undefined method WC_Order\|WC_Order_Refund\:\:get_billing_state\(\)\.$#'
+			identifier: method.notFound
 			count: 2
 			path: includes/shortcodes/class-wc-shortcode-checkout.php

 		-
-			message: '#^Cannot call method get_data_store\(\) on WC_Order\|WC_Order_Refund\|true\.$#'
-			identifier: method.nonObject
-			count: 1
-			path: includes/shortcodes/class-wc-shortcode-checkout.php
-
-		-
-			message: '#^Cannot call method get_id\(\) on WC_Order\|WC_Order_Refund\|true\.$#'
-			identifier: method.nonObject
-			count: 4
-			path: includes/shortcodes/class-wc-shortcode-checkout.php
-
-		-
-			message: '#^Cannot call method get_items\(\) on WC_Order\|WC_Order_Refund\|true\.$#'
-			identifier: method.nonObject
+			message: '#^Call to an undefined method WC_Order\|WC_Order_Refund\:\:get_checkout_payment_url\(\)\.$#'
+			identifier: method.notFound
 			count: 2
 			path: includes/shortcodes/class-wc-shortcode-checkout.php

 		-
-			message: '#^Cannot call method get_order_key\(\) on WC_Order\|WC_Order_Refund\|true\.$#'
-			identifier: method.nonObject
+			message: '#^Call to an undefined method WC_Order\|WC_Order_Refund\:\:get_order_key\(\)\.$#'
+			identifier: method.notFound
 			count: 2
 			path: includes/shortcodes/class-wc-shortcode-checkout.php

 		-
-			message: '#^Cannot call method get_status\(\) on WC_Order\|WC_Order_Refund\|true\.$#'
-			identifier: method.nonObject
+			message: '#^Call to an undefined method WC_Order\|WC_Order_Refund\:\:needs_payment\(\)\.$#'
+			identifier: method.notFound
 			count: 2
 			path: includes/shortcodes/class-wc-shortcode-checkout.php

 		-
-			message: '#^Cannot call method get_user_id\(\) on WC_Order\|WC_Order_Refund\|true\.$#'
-			identifier: method.nonObject
+			message: '#^Call to an undefined method object\:\:get_stock_reduced\(\)\.$#'
+			identifier: method.notFound
 			count: 1
 			path: includes/shortcodes/class-wc-shortcode-checkout.php

-		-
-			message: '#^Cannot call method has_status\(\) on WC_Order\|WC_Order_Refund\|true\.$#'
-			identifier: method.nonObject
-			count: 2
-			path: includes/shortcodes/class-wc-shortcode-checkout.php
-
-		-
-			message: '#^Cannot call method needs_payment\(\) on WC_Order\|WC_Order_Refund\|true\.$#'
-			identifier: method.nonObject
-			count: 2
-			path: includes/shortcodes/class-wc-shortcode-checkout.php
-
 		-
 			message: '#^Method WC_Shortcode_Checkout\:\:checkout\(\) has no return type specified\.$#'
 			identifier: missingType.return
@@ -37318,7 +36970,7 @@ parameters:
 			path: includes/shortcodes/class-wc-shortcode-checkout.php

 		-
-			message: '#^Parameter \#1 \$order of static method WC_Shortcode_Checkout\:\:guest_should_verify_email\(\) expects WC_Order, WC_Order\|WC_Order_Refund\|true given\.$#'
+			message: '#^Parameter \#1 \$order of static method WC_Shortcode_Checkout\:\:guest_should_verify_email\(\) expects WC_Order, WC_Order\|WC_Order_Refund given\.$#'
 			identifier: argument.type
 			count: 1
 			path: includes/shortcodes/class-wc-shortcode-checkout.php
@@ -37335,18 +36987,6 @@ parameters:
 			count: 3
 			path: includes/shortcodes/class-wc-shortcode-my-account.php

-		-
-			message: '#^Cannot call method get_id\(\) on WC_Order\|WC_Order_Refund\|true\.$#'
-			identifier: method.nonObject
-			count: 1
-			path: includes/shortcodes/class-wc-shortcode-my-account.php
-
-		-
-			message: '#^Cannot call method get_status\(\) on WC_Order\|WC_Order_Refund\|true\.$#'
-			identifier: method.nonObject
-			count: 1
-			path: includes/shortcodes/class-wc-shortcode-my-account.php
-
 		-
 			message: '#^Constant COOKIEHASH not found\.$#'
 			identifier: constant.notFound
@@ -37431,24 +37071,12 @@ parameters:
 			count: 1
 			path: includes/shortcodes/class-wc-shortcode-my-account.php

-		-
-			message: '#^Cannot call method get_id\(\) on WC_Order\|WC_Order_Refund\|true\.$#'
-			identifier: method.nonObject
-			count: 1
-			path: includes/shortcodes/class-wc-shortcode-order-tracking.php
-
 		-
 			message: '#^Method WC_Shortcode_Order_Tracking\:\:output\(\) has no return type specified\.$#'
 			identifier: missingType.return
 			count: 1
 			path: includes/shortcodes/class-wc-shortcode-order-tracking.php

-		-
-			message: '#^Parameter \#1 \$object_or_string of function is_a expects object, WC_Order\|WC_Order_Refund\|true given\.$#'
-			identifier: argument.type
-			count: 1
-			path: includes/shortcodes/class-wc-shortcode-order-tracking.php
-
 		-
 			message: '#^Parameter \#1 \$str of function ltrim expects string, array\|string given\.$#'
 			identifier: argument.type
@@ -38230,37 +37858,25 @@ parameters:
 			path: includes/tracks/events/class-wc-orders-tracking.php

 		-
-			message: '#^Cannot call method get_date_created\(\) on WC_Order\|WC_Order_Refund\|true\.$#'
+			message: '#^Cannot call method get_date_created\(\) on WC_Order\|WC_Order_Refund\|false\.$#'
 			identifier: method.nonObject
 			count: 2
 			path: includes/tracks/events/class-wc-orders-tracking.php

 		-
-			message: '#^Cannot call method get_date_created\(\) on bool\|WC_Order\|WC_Order_Refund\.$#'
-			identifier: method.nonObject
-			count: 2
-			path: includes/tracks/events/class-wc-orders-tracking.php
-
-		-
-			message: '#^Cannot call method get_payment_method\(\) on bool\|WC_Order\|WC_Order_Refund\.$#'
+			message: '#^Cannot call method get_payment_method\(\) on WC_Order\|WC_Order_Refund\|false\.$#'
 			identifier: method.nonObject
 			count: 1
 			path: includes/tracks/events/class-wc-orders-tracking.php

 		-
-			message: '#^Cannot call method get_status\(\) on WC_Order\|WC_Order_Refund\|true\.$#'
-			identifier: method.nonObject
-			count: 2
-			path: includes/tracks/events/class-wc-orders-tracking.php
-
-		-
-			message: '#^Cannot call method get_status\(\) on bool\|WC_Order\|WC_Order_Refund\.$#'
+			message: '#^Cannot call method get_status\(\) on WC_Order\|WC_Order_Refund\|false\.$#'
 			identifier: method.nonObject
 			count: 1
 			path: includes/tracks/events/class-wc-orders-tracking.php

 		-
-			message: '#^Cannot call method get_total\(\) on bool\|WC_Order\|WC_Order_Refund\.$#'
+			message: '#^Cannot call method get_total\(\) on WC_Order\|WC_Order_Refund\|false\.$#'
 			identifier: method.nonObject
 			count: 1
 			path: includes/tracks/events/class-wc-orders-tracking.php
@@ -38788,7 +38404,7 @@ parameters:
 			path: includes/walkers/class-wc-product-cat-list-walker.php

 		-
-			message: '#^@param WC_Order \$order does not accept actual type of parameter\: bool\|WC_Order\|WC_Order_Refund\.$#'
+			message: '#^@param WC_Order \$order does not accept actual type of parameter\: WC_Order\|WC_Order_Refund\|false\.$#'
 			identifier: parameter.phpDocType
 			count: 1
 			path: includes/wc-account-functions.php
@@ -38824,37 +38440,37 @@ parameters:
 			path: includes/wc-account-functions.php

 		-
-			message: '#^Cannot call method get_cancel_order_url\(\) on bool\|WC_Order\|WC_Order_Refund\.$#'
+			message: '#^Cannot call method get_cancel_order_url\(\) on WC_Order\|WC_Order_Refund\|false\.$#'
 			identifier: method.nonObject
 			count: 1
 			path: includes/wc-account-functions.php

 		-
-			message: '#^Cannot call method get_checkout_payment_url\(\) on bool\|WC_Order\|WC_Order_Refund\.$#'
+			message: '#^Cannot call method get_checkout_payment_url\(\) on WC_Order\|WC_Order_Refund\|false\.$#'
 			identifier: method.nonObject
 			count: 1
 			path: includes/wc-account-functions.php

 		-
-			message: '#^Cannot call method get_order_number\(\) on bool\|WC_Order\|WC_Order_Refund\.$#'
+			message: '#^Cannot call method get_order_number\(\) on WC_Order\|WC_Order_Refund\|false\.$#'
 			identifier: method.nonObject
 			count: 3
 			path: includes/wc-account-functions.php

 		-
-			message: '#^Cannot call method get_status\(\) on bool\|WC_Order\|WC_Order_Refund\.$#'
+			message: '#^Cannot call method get_status\(\) on WC_Order\|WC_Order_Refund\|false\.$#'
 			identifier: method.nonObject
 			count: 1
 			path: includes/wc-account-functions.php

 		-
-			message: '#^Cannot call method get_view_order_url\(\) on bool\|WC_Order\|WC_Order_Refund\.$#'
+			message: '#^Cannot call method get_view_order_url\(\) on WC_Order\|WC_Order_Refund\|false\.$#'
 			identifier: method.nonObject
 			count: 1
 			path: includes/wc-account-functions.php

 		-
-			message: '#^Cannot call method needs_payment\(\) on bool\|WC_Order\|WC_Order_Refund\.$#'
+			message: '#^Cannot call method needs_payment\(\) on WC_Order\|WC_Order_Refund\|false\.$#'
 			identifier: method.nonObject
 			count: 1
 			path: includes/wc-account-functions.php
@@ -41326,93 +40942,87 @@ parameters:
 			path: includes/wc-order-functions.php

 		-
-			message: '#^Call to an undefined method object\:\:get_download_permissions_granted\(\)\.$#'
+			message: '#^Call to an undefined method WC_Order\|WC_Order_Refund\:\:add_order_note\(\)\.$#'
 			identifier: method.notFound
 			count: 1
 			path: includes/wc-order-functions.php

 		-
-			message: '#^Call to an undefined method object\:\:get_recorded_coupon_usage_counts\(\)\.$#'
+			message: '#^Call to an undefined method WC_Order\|WC_Order_Refund\:\:get_billing_email\(\)\.$#'
 			identifier: method.notFound
 			count: 1
 			path: includes/wc-order-functions.php

 		-
-			message: '#^Call to an undefined method object\:\:get_recorded_sales\(\)\.$#'
+			message: '#^Call to an undefined method WC_Order\|WC_Order_Refund\:\:get_remaining_refund_amount\(\)\.$#'
 			identifier: method.notFound
 			count: 1
 			path: includes/wc-order-functions.php

 		-
-			message: '#^Call to an undefined method object\:\:set_download_permissions_granted\(\)\.$#'
+			message: '#^Call to an undefined method WC_Order\|WC_Order_Refund\:\:get_remaining_refund_items\(\)\.$#'
 			identifier: method.notFound
 			count: 1
 			path: includes/wc-order-functions.php

 		-
-			message: '#^Call to an undefined method object\:\:set_recorded_coupon_usage_counts\(\)\.$#'
+			message: '#^Call to an undefined method WC_Order\|WC_Order_Refund\:\:update_status\(\)\.$#'
 			identifier: method.notFound
-			count: 2
+			count: 1
 			path: includes/wc-order-functions.php

 		-
-			message: '#^Call to an undefined method object\:\:set_recorded_sales\(\)\.$#'
+			message: '#^Call to an undefined method object\:\:get_download_permissions_granted\(\)\.$#'
 			identifier: method.notFound
-			count: 2
-			path: includes/wc-order-functions.php
-
-		-
-			message: '#^Call to function is_a\(\) with WC_Order_Refund and ''WC_Order_Refund'' will always evaluate to true\.$#'
-			identifier: function.alreadyNarrowedType
 			count: 1
 			path: includes/wc-order-functions.php

 		-
-			message: '#^Cannot call method add_order_note\(\) on WC_Order\|WC_Order_Refund\|true\.$#'
-			identifier: method.nonObject
+			message: '#^Call to an undefined method object\:\:get_recorded_coupon_usage_counts\(\)\.$#'
+			identifier: method.notFound
 			count: 1
 			path: includes/wc-order-functions.php

 		-
-			message: '#^Cannot call method add_order_note\(\) on bool\|WC_Order\|WC_Order_Refund\.$#'
-			identifier: method.nonObject
+			message: '#^Call to an undefined method object\:\:get_recorded_sales\(\)\.$#'
+			identifier: method.notFound
 			count: 1
 			path: includes/wc-order-functions.php

 		-
-			message: '#^Cannot call method calculate_cogs_total_value\(\) on WC_Order\|WC_Order_Refund\|true\.$#'
-			identifier: method.nonObject
+			message: '#^Call to an undefined method object\:\:set_download_permissions_granted\(\)\.$#'
+			identifier: method.notFound
 			count: 1
 			path: includes/wc-order-functions.php

 		-
-			message: '#^Cannot call method get_billing_email\(\) on WC_Order\|WC_Order_Refund\|true\.$#'
-			identifier: method.nonObject
-			count: 1
+			message: '#^Call to an undefined method object\:\:set_recorded_coupon_usage_counts\(\)\.$#'
+			identifier: method.notFound
+			count: 2
 			path: includes/wc-order-functions.php

 		-
-			message: '#^Cannot call method get_coupon_codes\(\) on WC_Order\|WC_Order_Refund\|true\.$#'
-			identifier: method.nonObject
+			message: '#^Call to an undefined method object\:\:set_recorded_sales\(\)\.$#'
+			identifier: method.notFound
 			count: 2
 			path: includes/wc-order-functions.php

 		-
-			message: '#^Cannot call method get_created_via\(\) on bool\|WC_Order\|WC_Order_Refund\.$#'
-			identifier: method.nonObject
+			message: '#^Call to function is_a\(\) with WC_Order_Refund and ''WC_Order_Refund'' will always evaluate to true\.$#'
+			identifier: function.alreadyNarrowedType
 			count: 1
 			path: includes/wc-order-functions.php

 		-
-			message: '#^Cannot call method get_currency\(\) on WC_Order\|WC_Order_Refund\|true\.$#'
+			message: '#^Cannot call method add_order_note\(\) on WC_Order\|WC_Order_Refund\|false\.$#'
 			identifier: method.nonObject
 			count: 1
 			path: includes/wc-order-functions.php

 		-
-			message: '#^Cannot call method get_data_store\(\) on WC_Order\|WC_Order_Refund\|true\.$#'
+			message: '#^Cannot call method get_created_via\(\) on WC_Order\|WC_Order_Refund\|false\.$#'
 			identifier: method.nonObject
-			count: 8
+			count: 1
 			path: includes/wc-order-functions.php

 		-
@@ -41427,12 +41037,6 @@ parameters:
 			count: 2
 			path: includes/wc-order-functions.php

-		-
-			message: '#^Cannot call method get_id\(\) on WC_Order\|WC_Order_Refund\|true\.$#'
-			identifier: method.nonObject
-			count: 6
-			path: includes/wc-order-functions.php
-
 		-
 			message: '#^Cannot call method get_id\(\) on WC_Product\|false\|null\.$#'
 			identifier: method.nonObject
@@ -41440,91 +41044,19 @@ parameters:
 			path: includes/wc-order-functions.php

 		-
-			message: '#^Cannot call method get_items\(\) on WC_Order\|WC_Order_Refund\|true\.$#'
-			identifier: method.nonObject
-			count: 5
-			path: includes/wc-order-functions.php
-
-		-
-			message: '#^Cannot call method get_prices_include_tax\(\) on WC_Order\|WC_Order_Refund\|true\.$#'
-			identifier: method.nonObject
-			count: 1
-			path: includes/wc-order-functions.php
-
-		-
-			message: '#^Cannot call method get_remaining_refund_amount\(\) on WC_Order\|WC_Order_Refund\|true\.$#'
-			identifier: method.nonObject
-			count: 1
-			path: includes/wc-order-functions.php
-
-		-
-			message: '#^Cannot call method get_remaining_refund_items\(\) on WC_Order\|WC_Order_Refund\|true\.$#'
-			identifier: method.nonObject
-			count: 1
-			path: includes/wc-order-functions.php
-
-		-
-			message: '#^Cannot call method get_status\(\) on WC_Order\|WC_Order_Refund\|true\.$#'
-			identifier: method.nonObject
-			count: 1
-			path: includes/wc-order-functions.php
-
-		-
-			message: '#^Cannot call method get_total\(\) on bool\|WC_Order\|WC_Order_Refund\.$#'
-			identifier: method.nonObject
-			count: 1
-			path: includes/wc-order-functions.php
-
-		-
-			message: '#^Cannot call method get_total_refunded\(\) on bool\|WC_Order\|WC_Order_Refund\.$#'
-			identifier: method.nonObject
-			count: 1
-			path: includes/wc-order-functions.php
-
-		-
-			message: '#^Cannot call method get_user_id\(\) on WC_Order\|WC_Order_Refund\|true\.$#'
-			identifier: method.nonObject
-			count: 1
-			path: includes/wc-order-functions.php
-
-		-
-			message: '#^Cannot call method has_cogs\(\) on WC_Order\|WC_Order_Refund\|true\.$#'
-			identifier: method.nonObject
-			count: 1
-			path: includes/wc-order-functions.php
-
-		-
-			message: '#^Cannot call method has_free_item\(\) on WC_Order\|WC_Order_Refund\|true\.$#'
-			identifier: method.nonObject
-			count: 1
-			path: includes/wc-order-functions.php
-
-		-
-			message: '#^Cannot call method has_status\(\) on WC_Order\|WC_Order_Refund\|true\.$#'
-			identifier: method.nonObject
-			count: 4
-			path: includes/wc-order-functions.php
-
-		-
-			message: '#^Cannot call method save\(\) on WC_Order\|WC_Order_Refund\|true\.$#'
-			identifier: method.nonObject
-			count: 1
-			path: includes/wc-order-functions.php
-
-		-
-			message: '#^Cannot call method set_date_modified\(\) on WC_Order\|WC_Order_Refund\|true\.$#'
+			message: '#^Cannot call method get_total\(\) on WC_Order\|WC_Order_Refund\|false\.$#'
 			identifier: method.nonObject
 			count: 1
 			path: includes/wc-order-functions.php

 		-
-			message: '#^Cannot call method update_status\(\) on WC_Order\|WC_Order_Refund\|true\.$#'
+			message: '#^Cannot call method get_total_refunded\(\) on WC_Order\|WC_Order_Refund\|false\.$#'
 			identifier: method.nonObject
 			count: 1
 			path: includes/wc-order-functions.php

 		-
-			message: '#^Cannot call method update_status\(\) on bool\|WC_Order\|WC_Order_Refund\.$#'
+			message: '#^Cannot call method update_status\(\) on WC_Order\|WC_Order_Refund\|false\.$#'
 			identifier: method.nonObject
 			count: 1
 			path: includes/wc-order-functions.php
@@ -41614,31 +41146,31 @@ parameters:
 			path: includes/wc-order-functions.php

 		-
-			message: '#^Parameter \#1 \$object_or_string of function is_a expects object, WP_Comment\|null given\.$#'
+			message: '#^Parameter \#1 \$object_or_string of function is_a expects object, WC_Order\|WC_Order_Refund\|false given\.$#'
 			identifier: argument.type
-			count: 1
+			count: 2
 			path: includes/wc-order-functions.php

 		-
-			message: '#^Parameter \#1 \$object_or_string of function is_a expects object, bool\|WC_Order\|WC_Order_Refund given\.$#'
+			message: '#^Parameter \#1 \$object_or_string of function is_a expects object, WP_Comment\|null given\.$#'
 			identifier: argument.type
-			count: 2
+			count: 1
 			path: includes/wc-order-functions.php

 		-
-			message: '#^Parameter \#1 \$order of function wc_refund_payment expects WC_Order, WC_Order\|WC_Order_Refund\|true given\.$#'
+			message: '#^Parameter \#1 \$order of function wc_refund_payment expects WC_Order, WC_Order\|WC_Order_Refund given\.$#'
 			identifier: argument.type
 			count: 1
 			path: includes/wc-order-functions.php

 		-
-			message: '#^Parameter \#1 \$order of function wc_release_coupons_for_order expects int\|WC_Order, WC_Order\|WC_Order_Refund\|true given\.$#'
+			message: '#^Parameter \#1 \$order of function wc_release_coupons_for_order expects int\|WC_Order, WC_Order\|WC_Order_Refund given\.$#'
 			identifier: argument.type
 			count: 2
 			path: includes/wc-order-functions.php

 		-
-			message: '#^Parameter \#1 \$order of function wc_restock_refunded_items expects WC_Order, WC_Order\|WC_Order_Refund\|true given\.$#'
+			message: '#^Parameter \#1 \$order of function wc_restock_refunded_items expects WC_Order, WC_Order\|WC_Order_Refund given\.$#'
 			identifier: argument.type
 			count: 1
 			path: includes/wc-order-functions.php
@@ -41692,7 +41224,7 @@ parameters:
 			path: includes/wc-order-functions.php

 		-
-			message: '#^Parameter \#2 \$order of method WC_Coupon\:\:increase_usage_count\(\) expects WC_Order\|null, WC_Order\|WC_Order_Refund\|true given\.$#'
+			message: '#^Parameter \#2 \$order of method WC_Coupon\:\:increase_usage_count\(\) expects WC_Order\|null, WC_Order\|WC_Order_Refund given\.$#'
 			identifier: argument.type
 			count: 1
 			path: includes/wc-order-functions.php
@@ -41704,7 +41236,7 @@ parameters:
 			path: includes/wc-order-functions.php

 		-
-			message: '#^Parameter \#3 \$order of function wc_downloadable_file_permission expects WC_Order, WC_Order\|WC_Order_Refund\|true given\.$#'
+			message: '#^Parameter \#3 \$order of function wc_downloadable_file_permission expects WC_Order, WC_Order\|WC_Order_Refund given\.$#'
 			identifier: argument.type
 			count: 1
 			path: includes/wc-order-functions.php
@@ -42154,7 +41686,7 @@ parameters:
 			path: includes/wc-rest-functions.php

 		-
-			message: '#^@param WC_Order \$order does not accept actual type of parameter\: WC_Order\|WC_Order_Refund\|true\.$#'
+			message: '#^@param WC_Order \$order does not accept actual type of parameter\: WC_Order\|WC_Order_Refund\.$#'
 			identifier: parameter.phpDocType
 			count: 3
 			path: includes/wc-stock-functions.php
@@ -42195,6 +41727,12 @@ parameters:
 			count: 2
 			path: includes/wc-stock-functions.php

+		-
+			message: '#^Call to an undefined method WC_Order\|WC_Order_Refund\:\:add_order_note\(\)\.$#'
+			identifier: method.notFound
+			count: 3
+			path: includes/wc-stock-functions.php
+
 		-
 			message: '#^Call to an undefined method object\:\:get_stock_reduced\(\)\.$#'
 			identifier: method.notFound
@@ -42213,24 +41751,6 @@ parameters:
 			count: 2
 			path: includes/wc-stock-functions.php

-		-
-			message: '#^Cannot call method add_order_note\(\) on WC_Order\|WC_Order_Refund\|true\.$#'
-			identifier: method.nonObject
-			count: 3
-			path: includes/wc-stock-functions.php
-
-		-
-			message: '#^Cannot call method get_data_store\(\) on WC_Order\|WC_Order_Refund\|true\.$#'
-			identifier: method.nonObject
-			count: 5
-			path: includes/wc-stock-functions.php
-
-		-
-			message: '#^Cannot call method get_items\(\) on WC_Order\|WC_Order_Refund\|true\.$#'
-			identifier: method.nonObject
-			count: 2
-			path: includes/wc-stock-functions.php
-
 		-
 			message: '#^Cannot call method get_low_stock_amount\(\) on WC_Product\|false\|null\.$#'
 			identifier: method.nonObject
@@ -42334,31 +41854,31 @@ parameters:
 			path: includes/wc-stock-functions.php

 		-
-			message: '#^Parameter \#1 \$order of function wc_trigger_stock_change_notifications expects WC_Order, WC_Order\|WC_Order_Refund\|true given\.$#'
+			message: '#^Parameter \#1 \$order of function wc_trigger_stock_change_notifications expects WC_Order, WC_Order\|WC_Order_Refund given\.$#'
 			identifier: argument.type
 			count: 1
 			path: includes/wc-stock-functions.php

 		-
-			message: '#^Parameter \#1 \$order of method Automattic\\WooCommerce\\Checkout\\Helpers\\ReserveStock\:\:release_stock_for_order\(\) expects WC_Order, WC_Order\|WC_Order_Refund\|true given\.$#'
+			message: '#^Parameter \#1 \$order of method Automattic\\WooCommerce\\Checkout\\Helpers\\ReserveStock\:\:release_stock_for_order\(\) expects WC_Order, WC_Order\|WC_Order_Refund given\.$#'
 			identifier: argument.type
 			count: 1
 			path: includes/wc-stock-functions.php

 		-
-			message: '#^Parameter \#1 \$order of method Automattic\\WooCommerce\\Checkout\\Helpers\\ReserveStock\:\:reserve_stock_for_order\(\) expects WC_Order, WC_Order\|WC_Order_Refund\|true given\.$#'
+			message: '#^Parameter \#1 \$order of method Automattic\\WooCommerce\\Checkout\\Helpers\\ReserveStock\:\:reserve_stock_for_order\(\) expects WC_Order, WC_Order\|WC_Order_Refund given\.$#'
 			identifier: argument.type
 			count: 1
 			path: includes/wc-stock-functions.php

 		-
-			message: '#^Parameter \#1 \$order_id of function wc_increase_stock_levels expects int\|WC_Order, WC_Order\|WC_Order_Refund\|true given\.$#'
+			message: '#^Parameter \#1 \$order_id of function wc_increase_stock_levels expects int\|WC_Order, WC_Order\|WC_Order_Refund given\.$#'
 			identifier: argument.type
 			count: 1
 			path: includes/wc-stock-functions.php

 		-
-			message: '#^Parameter \#1 \$order_id of function wc_reduce_stock_levels expects int\|WC_Order, WC_Order\|WC_Order_Refund\|true given\.$#'
+			message: '#^Parameter \#1 \$order_id of function wc_reduce_stock_levels expects int\|WC_Order, WC_Order\|WC_Order_Refund given\.$#'
 			identifier: argument.type
 			count: 1
 			path: includes/wc-stock-functions.php
@@ -42388,7 +41908,7 @@ parameters:
 			path: includes/wc-stock-functions.php

 		-
-			message: '#^@param WC_Order \$order does not accept actual type of parameter\: WC_Order\|WC_Order_Refund\|true\.$#'
+			message: '#^@param WC_Order \$order does not accept actual type of parameter\: WC_Order\|WC_Order_Refund\.$#'
 			identifier: parameter.phpDocType
 			count: 1
 			path: includes/wc-template-functions.php
@@ -42448,50 +41968,50 @@ parameters:
 			path: includes/wc-template-functions.php

 		-
-			message: '#^Call to an undefined method WC_Product\:\:get_available_variations\(\)\.$#'
+			message: '#^Call to an undefined method WC_Order\|WC_Order_Refund\:\:has_downloadable_item\(\)\.$#'
 			identifier: method.notFound
 			count: 1
 			path: includes/wc-template-functions.php

 		-
-			message: '#^Call to an undefined method WC_Product\:\:get_variation_attributes\(\)\.$#'
+			message: '#^Call to an undefined method WC_Order\|WC_Order_Refund\:\:is_download_permitted\(\)\.$#'
 			identifier: method.notFound
 			count: 1
 			path: includes/wc-template-functions.php

 		-
-			message: '#^Call to an undefined method WC_Product\:\:get_variation_default_attribute\(\)\.$#'
+			message: '#^Call to an undefined method WC_Product\:\:get_available_variations\(\)\.$#'
 			identifier: method.notFound
 			count: 1
 			path: includes/wc-template-functions.php

 		-
-			message: '#^Call to an undefined method object\:\:get_id\(\)\.$#'
+			message: '#^Call to an undefined method WC_Product\:\:get_variation_attributes\(\)\.$#'
 			identifier: method.notFound
 			count: 1
 			path: includes/wc-template-functions.php

 		-
-			message: '#^Call to an undefined method object\:\:has_status\(\)\.$#'
+			message: '#^Call to an undefined method WC_Product\:\:get_variation_default_attribute\(\)\.$#'
 			identifier: method.notFound
 			count: 1
 			path: includes/wc-template-functions.php

 		-
-			message: '#^Cannot access property \$total on array\<WC_Order\>\|stdClass\.$#'
-			identifier: property.nonObject
+			message: '#^Call to an undefined method object\:\:get_id\(\)\.$#'
+			identifier: method.notFound
 			count: 1
 			path: includes/wc-template-functions.php

 		-
-			message: '#^Cannot call method has_downloadable_item\(\) on WC_Order\|WC_Order_Refund\|true\.$#'
-			identifier: method.nonObject
+			message: '#^Call to an undefined method object\:\:has_status\(\)\.$#'
+			identifier: method.notFound
 			count: 1
 			path: includes/wc-template-functions.php

 		-
-			message: '#^Cannot call method is_download_permitted\(\) on WC_Order\|WC_Order_Refund\|true\.$#'
-			identifier: method.nonObject
+			message: '#^Cannot access property \$total on array\<WC_Order\>\|stdClass\.$#'
+			identifier: property.nonObject
 			count: 1
 			path: includes/wc-template-functions.php

@@ -43539,30 +43059,12 @@ parameters:
 			count: 1
 			path: includes/wc-update-functions.php

-		-
-			message: '#^Cannot call method get_items\(\) on WC_Order\|WC_Order_Refund\|true\.$#'
-			identifier: method.nonObject
-			count: 1
-			path: includes/wc-update-functions.php
-
 		-
 			message: '#^Cannot call method remove_cap\(\) on WP_Role\|null\.$#'
 			identifier: method.nonObject
 			count: 1
 			path: includes/wc-update-functions.php

-		-
-			message: '#^Cannot call method save_meta_data\(\) on WC_Order\|WC_Order_Refund\|true\.$#'
-			identifier: method.nonObject
-			count: 1
-			path: includes/wc-update-functions.php
-
-		-
-			message: '#^Cannot call method update_meta_data\(\) on WC_Order\|WC_Order_Refund\|true\.$#'
-			identifier: method.nonObject
-			count: 1
-			path: includes/wc-update-functions.php
-
 		-
 			message: '#^Function as_unschedule_all_actions not found\.$#'
 			identifier: function.notFound
@@ -44086,97 +43588,73 @@ parameters:
 			path: includes/wc-user-functions.php

 		-
-			message: '#^Cannot access offset ''name'' on array\|false\.$#'
-			identifier: offsetAccess.nonOffsetAccessible
-			count: 1
-			path: includes/wc-user-functions.php
-
-		-
-			message: '#^Cannot access property \$ID on WP_User\|false\.$#'
-			identifier: property.nonObject
-			count: 1
-			path: includes/wc-user-functions.php
-
-		-
-			message: '#^Cannot access property \$user_email on WP_User\|false\.$#'
-			identifier: property.nonObject
+			message: '#^Call to an undefined method WC_Order\|WC_Order_Refund\:\:get_order_key\(\)\.$#'
+			identifier: method.notFound
 			count: 1
 			path: includes/wc-user-functions.php

 		-
-			message: '#^Cannot call method get_customer_id\(\) on bool\|WC_Order\|WC_Order_Refund\.$#'
-			identifier: method.nonObject
+			message: '#^Call to an undefined method WC_Order\|WC_Order_Refund\:\:has_downloadable_item\(\)\.$#'
+			identifier: method.notFound
 			count: 1
 			path: includes/wc-user-functions.php

 		-
-			message: '#^Cannot call method get_enabled\(\) on array\|false\.$#'
-			identifier: method.nonObject
+			message: '#^Call to an undefined method WC_Order\|WC_Order_Refund\:\:is_download_permitted\(\)\.$#'
+			identifier: method.notFound
 			count: 1
 			path: includes/wc-user-functions.php

 		-
-			message: '#^Cannot call method get_file\(\) on array\|false\.$#'
-			identifier: method.nonObject
+			message: '#^Call to an undefined method WC_Order\|WC_Order_Refund\:\:set_customer_id\(\)\.$#'
+			identifier: method.notFound
 			count: 1
 			path: includes/wc-user-functions.php

 		-
-			message: '#^Cannot call method get_id\(\) on WC_Order\|WC_Order_Refund\|true\.$#'
-			identifier: method.nonObject
-			count: 4
-			path: includes/wc-user-functions.php
-
-		-
-			message: '#^Cannot call method get_name\(\) on array\|false\.$#'
-			identifier: method.nonObject
+			message: '#^Cannot access offset ''name'' on array\|false\.$#'
+			identifier: offsetAccess.nonOffsetAccessible
 			count: 1
 			path: includes/wc-user-functions.php

 		-
-			message: '#^Cannot call method get_order_key\(\) on WC_Order\|WC_Order_Refund\|true\.$#'
-			identifier: method.nonObject
+			message: '#^Cannot access property \$ID on WP_User\|false\.$#'
+			identifier: property.nonObject
 			count: 1
 			path: includes/wc-user-functions.php

 		-
-			message: '#^Cannot call method get_status\(\) on WC_Order\|WC_Order_Refund\|true\.$#'
-			identifier: method.nonObject
+			message: '#^Cannot access property \$user_email on WP_User\|false\.$#'
+			identifier: property.nonObject
 			count: 1
 			path: includes/wc-user-functions.php

 		-
-			message: '#^Cannot call method get_type\(\) on bool\|WC_Order\|WC_Order_Refund\.$#'
+			message: '#^Cannot call method get_customer_id\(\) on WC_Order\|WC_Order_Refund\|false\.$#'
 			identifier: method.nonObject
 			count: 1
 			path: includes/wc-user-functions.php

 		-
-			message: '#^Cannot call method get_user_id\(\) on WC_Order\|WC_Order_Refund\|true\.$#'
-			identifier: method.nonObject
-			count: 5
-			path: includes/wc-user-functions.php
-
-		-
-			message: '#^Cannot call method has_downloadable_item\(\) on WC_Order\|WC_Order_Refund\|true\.$#'
+			message: '#^Cannot call method get_enabled\(\) on array\|false\.$#'
 			identifier: method.nonObject
 			count: 1
 			path: includes/wc-user-functions.php

 		-
-			message: '#^Cannot call method is_download_permitted\(\) on WC_Order\|WC_Order_Refund\|true\.$#'
+			message: '#^Cannot call method get_file\(\) on array\|false\.$#'
 			identifier: method.nonObject
 			count: 1
 			path: includes/wc-user-functions.php

 		-
-			message: '#^Cannot call method save\(\) on WC_Order\|WC_Order_Refund\|true\.$#'
+			message: '#^Cannot call method get_name\(\) on array\|false\.$#'
 			identifier: method.nonObject
 			count: 1
 			path: includes/wc-user-functions.php

 		-
-			message: '#^Cannot call method set_customer_id\(\) on WC_Order\|WC_Order_Refund\|true\.$#'
+			message: '#^Cannot call method get_type\(\) on WC_Order\|WC_Order_Refund\|false\.$#'
 			identifier: method.nonObject
 			count: 1
 			path: includes/wc-user-functions.php
@@ -48688,31 +48166,31 @@ parameters:
 			path: src/Admin/API/Reports/Categories/Controller.php

 		-
-			message: '#^Cannot call method get_formatted_order_total\(\) on bool\|WC_Order\|WC_Order_Refund\.$#'
+			message: '#^Cannot call method get_formatted_order_total\(\) on WC_Order\|WC_Order_Refund\|false\.$#'
 			identifier: method.nonObject
 			count: 1
 			path: src/Admin/API/Reports/Categories/Controller.php

 		-
-			message: '#^Cannot call method get_id\(\) on bool\|WC_Order\|WC_Order_Refund\.$#'
+			message: '#^Cannot call method get_id\(\) on WC_Order\|WC_Order_Refund\|false\.$#'
 			identifier: method.nonObject
 			count: 1
 			path: src/Admin/API/Reports/Categories/Controller.php

 		-
-			message: '#^Cannot call method get_order_number\(\) on bool\|WC_Order\|WC_Order_Refund\.$#'
+			message: '#^Cannot call method get_order_number\(\) on WC_Order\|WC_Order_Refund\|false\.$#'
 			identifier: method.nonObject
 			count: 1
 			path: src/Admin/API/Reports/Categories/Controller.php

 		-
-			message: '#^Cannot call method get_parent_id\(\) on bool\|WC_Order\|WC_Order_Refund\.$#'
+			message: '#^Cannot call method get_parent_id\(\) on WC_Order\|WC_Order_Refund\|false\.$#'
 			identifier: method.nonObject
 			count: 2
 			path: src/Admin/API/Reports/Categories/Controller.php

 		-
-			message: '#^Cannot call method get_type\(\) on bool\|WC_Order\|WC_Order_Refund\.$#'
+			message: '#^Cannot call method get_type\(\) on WC_Order\|WC_Order_Refund\|false\.$#'
 			identifier: method.nonObject
 			count: 2
 			path: src/Admin/API/Reports/Categories/Controller.php
@@ -48742,7 +48220,7 @@ parameters:
 			path: src/Admin/API/Reports/Categories/Controller.php

 		-
-			message: '#^Parameter \#1 \$order of method Automattic\\WooCommerce\\Admin\\API\\Reports\\Categories\\Controller\:\:is_valid_order\(\) expects Automattic\\WooCommerce\\Admin\\API\\Reports\\WC_Order\|Automattic\\WooCommerce\\Admin\\API\\Reports\\WC_Order_Refund\|bool, bool\|WC_Order\|WC_Order_Refund given\.$#'
+			message: '#^Parameter \#1 \$order of method Automattic\\WooCommerce\\Admin\\API\\Reports\\Categories\\Controller\:\:is_valid_order\(\) expects Automattic\\WooCommerce\\Admin\\API\\Reports\\WC_Order\|Automattic\\WooCommerce\\Admin\\API\\Reports\\WC_Order_Refund\|bool, WC_Order\|WC_Order_Refund\|false given\.$#'
 			identifier: argument.type
 			count: 4
 			path: src/Admin/API/Reports/Categories/Controller.php
@@ -48892,31 +48370,31 @@ parameters:
 			path: src/Admin/API/Reports/Controller.php

 		-
-			message: '#^Cannot call method get_formatted_order_total\(\) on bool\|WC_Order\|WC_Order_Refund\.$#'
+			message: '#^Cannot call method get_formatted_order_total\(\) on WC_Order\|WC_Order_Refund\|false\.$#'
 			identifier: method.nonObject
 			count: 1
 			path: src/Admin/API/Reports/Controller.php

 		-
-			message: '#^Cannot call method get_id\(\) on bool\|WC_Order\|WC_Order_Refund\.$#'
+			message: '#^Cannot call method get_id\(\) on WC_Order\|WC_Order_Refund\|false\.$#'
 			identifier: method.nonObject
 			count: 1
 			path: src/Admin/API/Reports/Controller.php

 		-
-			message: '#^Cannot call method get_order_number\(\) on bool\|WC_Order\|WC_Order_Refund\.$#'
+			message: '#^Cannot call method get_order_number\(\) on WC_Order\|WC_Order_Refund\|false\.$#'
 			identifier: method.nonObject
 			count: 1
 			path: src/Admin/API/Reports/Controller.php

 		-
-			message: '#^Cannot call method get_parent_id\(\) on bool\|WC_Order\|WC_Order_Refund\.$#'
+			message: '#^Cannot call method get_parent_id\(\) on WC_Order\|WC_Order_Refund\|false\.$#'
 			identifier: method.nonObject
 			count: 2
 			path: src/Admin/API/Reports/Controller.php

 		-
-			message: '#^Cannot call method get_type\(\) on bool\|WC_Order\|WC_Order_Refund\.$#'
+			message: '#^Cannot call method get_type\(\) on WC_Order\|WC_Order_Refund\|false\.$#'
 			identifier: method.nonObject
 			count: 2
 			path: src/Admin/API/Reports/Controller.php
@@ -48952,7 +48430,7 @@ parameters:
 			path: src/Admin/API/Reports/Controller.php

 		-
-			message: '#^Parameter \#1 \$order of method Automattic\\WooCommerce\\Admin\\API\\Reports\\Controller\:\:is_valid_order\(\) expects Automattic\\WooCommerce\\Admin\\API\\Reports\\WC_Order\|Automattic\\WooCommerce\\Admin\\API\\Reports\\WC_Order_Refund\|bool, bool\|WC_Order\|WC_Order_Refund given\.$#'
+			message: '#^Parameter \#1 \$order of method Automattic\\WooCommerce\\Admin\\API\\Reports\\Controller\:\:is_valid_order\(\) expects Automattic\\WooCommerce\\Admin\\API\\Reports\\WC_Order\|Automattic\\WooCommerce\\Admin\\API\\Reports\\WC_Order_Refund\|bool, WC_Order\|WC_Order_Refund\|false given\.$#'
 			identifier: argument.type
 			count: 4
 			path: src/Admin/API/Reports/Controller.php
@@ -49059,24 +48537,6 @@ parameters:
 			count: 1
 			path: src/Admin/API/Reports/Coupons/DataStore.php

-		-
-			message: '#^Cannot call method get_date_created\(\) on WC_Order\|WC_Order_Refund\|true\.$#'
-			identifier: method.nonObject
-			count: 1
-			path: src/Admin/API/Reports/Coupons/DataStore.php
-
-		-
-			message: '#^Cannot call method get_items\(\) on WC_Order\|WC_Order_Refund\|true\.$#'
-			identifier: method.nonObject
-			count: 1
-			path: src/Admin/API/Reports/Coupons/DataStore.php
-
-		-
-			message: '#^Cannot call method get_type\(\) on WC_Order\|WC_Order_Refund\|true\.$#'
-			identifier: method.nonObject
-			count: 1
-			path: src/Admin/API/Reports/Coupons/DataStore.php
-
 		-
 			message: '#^Method Automattic\\WooCommerce\\Admin\\API\\Reports\\Coupons\\DataStore\:\:add_order_by_params\(\) has no return type specified\.$#'
 			identifier: missingType.return
@@ -49510,13 +48970,13 @@ parameters:
 			path: src/Admin/API/Reports/Customers/DataStore.php

 		-
-			message: '#^Cannot call method get_id\(\) on Automattic\\WooCommerce\\Admin\\API\\Reports\\Customers\\WC_Order\|bool\|WC_Order\|WC_Order_Refund\.$#'
+			message: '#^Cannot call method get_id\(\) on Automattic\\WooCommerce\\Admin\\API\\Reports\\Customers\\WC_Order\|WC_Order\|WC_Order_Refund\|false\.$#'
 			identifier: method.nonObject
 			count: 1
 			path: src/Admin/API/Reports/Customers/DataStore.php

 		-
-			message: '#^Cannot call method get_id\(\) on bool\|WC_Order\|WC_Order_Refund\.$#'
+			message: '#^Cannot call method get_id\(\) on WC_Order\|WC_Order_Refund\|false\.$#'
 			identifier: method.nonObject
 			count: 1
 			path: src/Admin/API/Reports/Customers/DataStore.php
@@ -49558,7 +49018,7 @@ parameters:
 			path: src/Admin/API/Reports/Customers/DataStore.php

 		-
-			message: '#^Method Automattic\\WooCommerce\\Admin\\API\\Reports\\Customers\\DataStore\:\:get_last_order\(\) should return object but returns bool\|WC_Order\|WC_Order_Refund\.$#'
+			message: '#^Method Automattic\\WooCommerce\\Admin\\API\\Reports\\Customers\\DataStore\:\:get_last_order\(\) should return object but returns WC_Order\|WC_Order_Refund\|false\.$#'
 			identifier: return.type
 			count: 1
 			path: src/Admin/API/Reports/Customers/DataStore.php
@@ -49642,13 +49102,13 @@ parameters:
 			path: src/Admin/API/Reports/Customers/DataStore.php

 		-
-			message: '#^Parameter \#1 \$order of static method Automattic\\WooCommerce\\Admin\\API\\Reports\\Customers\\DataStore\:\:get_customer_order_data_and_format\(\) expects object, bool\|WC_Order\|WC_Order_Refund given\.$#'
+			message: '#^Parameter \#1 \$order of static method Automattic\\WooCommerce\\Admin\\API\\Reports\\Customers\\DataStore\:\:get_customer_order_data_and_format\(\) expects object, WC_Order\|WC_Order_Refund\|false given\.$#'
 			identifier: argument.type
 			count: 1
 			path: src/Admin/API/Reports/Customers/DataStore.php

 		-
-			message: '#^Parameter \#1 \$order of static method Automattic\\WooCommerce\\Admin\\API\\Reports\\Customers\\DataStore\:\:get_existing_customer_id_from_order\(\) expects object, bool\|WC_Order\|WC_Order_Refund given\.$#'
+			message: '#^Parameter \#1 \$order of static method Automattic\\WooCommerce\\Admin\\API\\Reports\\Customers\\DataStore\:\:get_existing_customer_id_from_order\(\) expects object, WC_Order\|WC_Order_Refund\|false given\.$#'
 			identifier: argument.type
 			count: 1
 			path: src/Admin/API/Reports/Customers/DataStore.php
@@ -50122,31 +49582,31 @@ parameters:
 			path: src/Admin/API/Reports/Downloads/Controller.php

 		-
-			message: '#^Cannot call method get_formatted_order_total\(\) on bool\|WC_Order\|WC_Order_Refund\.$#'
+			message: '#^Cannot call method get_formatted_order_total\(\) on WC_Order\|WC_Order_Refund\|false\.$#'
 			identifier: method.nonObject
 			count: 1
 			path: src/Admin/API/Reports/Downloads/Controller.php

 		-
-			message: '#^Cannot call method get_id\(\) on bool\|WC_Order\|WC_Order_Refund\.$#'
+			message: '#^Cannot call method get_id\(\) on WC_Order\|WC_Order_Refund\|false\.$#'
 			identifier: method.nonObject
 			count: 1
 			path: src/Admin/API/Reports/Downloads/Controller.php

 		-
-			message: '#^Cannot call method get_order_number\(\) on bool\|WC_Order\|WC_Order_Refund\.$#'
+			message: '#^Cannot call method get_order_number\(\) on WC_Order\|WC_Order_Refund\|false\.$#'
 			identifier: method.nonObject
 			count: 1
 			path: src/Admin/API/Reports/Downloads/Controller.php

 		-
-			message: '#^Cannot call method get_parent_id\(\) on bool\|WC_Order\|WC_Order_Refund\.$#'
+			message: '#^Cannot call method get_parent_id\(\) on WC_Order\|WC_Order_Refund\|false\.$#'
 			identifier: method.nonObject
 			count: 2
 			path: src/Admin/API/Reports/Downloads/Controller.php

 		-
-			message: '#^Cannot call method get_type\(\) on bool\|WC_Order\|WC_Order_Refund\.$#'
+			message: '#^Cannot call method get_type\(\) on WC_Order\|WC_Order_Refund\|false\.$#'
 			identifier: method.nonObject
 			count: 2
 			path: src/Admin/API/Reports/Downloads/Controller.php
@@ -50170,7 +49630,7 @@ parameters:
 			path: src/Admin/API/Reports/Downloads/Controller.php

 		-
-			message: '#^Parameter \#1 \$order of method Automattic\\WooCommerce\\Admin\\API\\Reports\\Downloads\\Controller\:\:is_valid_order\(\) expects Automattic\\WooCommerce\\Admin\\API\\Reports\\WC_Order\|Automattic\\WooCommerce\\Admin\\API\\Reports\\WC_Order_Refund\|bool, bool\|WC_Order\|WC_Order_Refund given\.$#'
+			message: '#^Parameter \#1 \$order of method Automattic\\WooCommerce\\Admin\\API\\Reports\\Downloads\\Controller\:\:is_valid_order\(\) expects Automattic\\WooCommerce\\Admin\\API\\Reports\\WC_Order\|Automattic\\WooCommerce\\Admin\\API\\Reports\\WC_Order_Refund\|bool, WC_Order\|WC_Order_Refund\|false given\.$#'
 			identifier: argument.type
 			count: 4
 			path: src/Admin/API/Reports/Downloads/Controller.php
@@ -50866,31 +50326,31 @@ parameters:
 			path: src/Admin/API/Reports/Orders/Controller.php

 		-
-			message: '#^Cannot call method get_formatted_order_total\(\) on bool\|WC_Order\|WC_Order_Refund\.$#'
+			message: '#^Cannot call method get_formatted_order_total\(\) on WC_Order\|WC_Order_Refund\|false\.$#'
 			identifier: method.nonObject
 			count: 1
 			path: src/Admin/API/Reports/Orders/Controller.php

 		-
-			message: '#^Cannot call method get_id\(\) on bool\|WC_Order\|WC_Order_Refund\.$#'
+			message: '#^Cannot call method get_id\(\) on WC_Order\|WC_Order_Refund\|false\.$#'
 			identifier: method.nonObject
 			count: 1
 			path: src/Admin/API/Reports/Orders/Controller.php

 		-
-			message: '#^Cannot call method get_order_number\(\) on bool\|WC_Order\|WC_Order_Refund\.$#'
+			message: '#^Cannot call method get_order_number\(\) on WC_Order\|WC_Order_Refund\|false\.$#'
 			identifier: method.nonObject
 			count: 1
 			path: src/Admin/API/Reports/Orders/Controller.php

 		-
-			message: '#^Cannot call method get_parent_id\(\) on bool\|WC_Order\|WC_Order_Refund\.$#'
+			message: '#^Cannot call method get_parent_id\(\) on WC_Order\|WC_Order_Refund\|false\.$#'
 			identifier: method.nonObject
 			count: 2
 			path: src/Admin/API/Reports/Orders/Controller.php

 		-
-			message: '#^Cannot call method get_type\(\) on bool\|WC_Order\|WC_Order_Refund\.$#'
+			message: '#^Cannot call method get_type\(\) on WC_Order\|WC_Order_Refund\|false\.$#'
 			identifier: method.nonObject
 			count: 2
 			path: src/Admin/API/Reports/Orders/Controller.php
@@ -50926,7 +50386,7 @@ parameters:
 			path: src/Admin/API/Reports/Orders/Controller.php

 		-
-			message: '#^Parameter \#1 \$order of method Automattic\\WooCommerce\\Admin\\API\\Reports\\Orders\\Controller\:\:is_valid_order\(\) expects Automattic\\WooCommerce\\Admin\\API\\Reports\\WC_Order\|Automattic\\WooCommerce\\Admin\\API\\Reports\\WC_Order_Refund\|bool, bool\|WC_Order\|WC_Order_Refund given\.$#'
+			message: '#^Parameter \#1 \$order of method Automattic\\WooCommerce\\Admin\\API\\Reports\\Orders\\Controller\:\:is_valid_order\(\) expects Automattic\\WooCommerce\\Admin\\API\\Reports\\WC_Order\|Automattic\\WooCommerce\\Admin\\API\\Reports\\WC_Order_Refund\|bool, WC_Order\|WC_Order_Refund\|false given\.$#'
 			identifier: argument.type
 			count: 4
 			path: src/Admin/API/Reports/Orders/Controller.php
@@ -50967,12 +50427,6 @@ parameters:
 			count: 1
 			path: src/Admin/API/Reports/Orders/DataStore.php

-		-
-			message: '#^Cannot call method get_status\(\) on WC_Order\|WC_Order_Refund\|true\.$#'
-			identifier: method.nonObject
-			count: 1
-			path: src/Admin/API/Reports/Orders/DataStore.php
-
 		-
 			message: '#^Method Automattic\\WooCommerce\\Admin\\API\\Reports\\Orders\\DataStore\:\:add_sql_query_params\(\) has no return type specified\.$#'
 			identifier: missingType.return
@@ -51052,31 +50506,31 @@ parameters:
 			path: src/Admin/API/Reports/Orders/Stats/Controller.php

 		-
-			message: '#^Cannot call method get_formatted_order_total\(\) on bool\|WC_Order\|WC_Order_Refund\.$#'
+			message: '#^Cannot call method get_formatted_order_total\(\) on WC_Order\|WC_Order_Refund\|false\.$#'
 			identifier: method.nonObject
 			count: 1
 			path: src/Admin/API/Reports/Orders/Stats/Controller.php

 		-
-			message: '#^Cannot call method get_id\(\) on bool\|WC_Order\|WC_Order_Refund\.$#'
+			message: '#^Cannot call method get_id\(\) on WC_Order\|WC_Order_Refund\|false\.$#'
 			identifier: method.nonObject
 			count: 1
 			path: src/Admin/API/Reports/Orders/Stats/Controller.php

 		-
-			message: '#^Cannot call method get_order_number\(\) on bool\|WC_Order\|WC_Order_Refund\.$#'
+			message: '#^Cannot call method get_order_number\(\) on WC_Order\|WC_Order_Refund\|false\.$#'
 			identifier: method.nonObject
 			count: 1
 			path: src/Admin/API/Reports/Orders/Stats/Controller.php

 		-
-			message: '#^Cannot call method get_parent_id\(\) on bool\|WC_Order\|WC_Order_Refund\.$#'
+			message: '#^Cannot call method get_parent_id\(\) on WC_Order\|WC_Order_Refund\|false\.$#'
 			identifier: method.nonObject
 			count: 2
 			path: src/Admin/API/Reports/Orders/Stats/Controller.php

 		-
-			message: '#^Cannot call method get_type\(\) on bool\|WC_Order\|WC_Order_Refund\.$#'
+			message: '#^Cannot call method get_type\(\) on WC_Order\|WC_Order_Refund\|false\.$#'
 			identifier: method.nonObject
 			count: 2
 			path: src/Admin/API/Reports/Orders/Stats/Controller.php
@@ -51100,7 +50554,7 @@ parameters:
 			path: src/Admin/API/Reports/Orders/Stats/Controller.php

 		-
-			message: '#^Parameter \#1 \$order of method Automattic\\WooCommerce\\Admin\\API\\Reports\\Orders\\Stats\\Controller\:\:is_valid_order\(\) expects Automattic\\WooCommerce\\Admin\\API\\Reports\\WC_Order\|Automattic\\WooCommerce\\Admin\\API\\Reports\\WC_Order_Refund\|bool, bool\|WC_Order\|WC_Order_Refund given\.$#'
+			message: '#^Parameter \#1 \$order of method Automattic\\WooCommerce\\Admin\\API\\Reports\\Orders\\Stats\\Controller\:\:is_valid_order\(\) expects Automattic\\WooCommerce\\Admin\\API\\Reports\\WC_Order\|Automattic\\WooCommerce\\Admin\\API\\Reports\\WC_Order_Refund\|bool, WC_Order\|WC_Order_Refund\|false given\.$#'
 			identifier: argument.type
 			count: 4
 			path: src/Admin/API/Reports/Orders/Stats/Controller.php
@@ -51249,30 +50703,6 @@ parameters:
 			count: 1
 			path: src/Admin/API/Reports/Orders/Stats/DataStore.php

-		-
-			message: '#^Cannot call method get_id\(\) on WC_Order\|WC_Order_Refund\|true\.$#'
-			identifier: method.nonObject
-			count: 1
-			path: src/Admin/API/Reports/Orders/Stats/DataStore.php
-
-		-
-			message: '#^Cannot call method get_shipping_total\(\) on WC_Order\|WC_Order_Refund\|true\.$#'
-			identifier: method.nonObject
-			count: 1
-			path: src/Admin/API/Reports/Orders/Stats/DataStore.php
-
-		-
-			message: '#^Cannot call method get_status\(\) on WC_Order\|WC_Order_Refund\|true\.$#'
-			identifier: method.nonObject
-			count: 1
-			path: src/Admin/API/Reports/Orders/Stats/DataStore.php
-
-		-
-			message: '#^Cannot call method get_total_tax\(\) on WC_Order\|WC_Order_Refund\|true\.$#'
-			identifier: method.nonObject
-			count: 1
-			path: src/Admin/API/Reports/Orders/Stats/DataStore.php
-
 		-
 			message: '#^Method Automattic\\WooCommerce\\Admin\\API\\Reports\\Orders\\Stats\\DataStore\:\:assign_report_columns\(\) has no return type specified\.$#'
 			identifier: missingType.return
@@ -51376,7 +50806,7 @@ parameters:
 			path: src/Admin/API/Reports/Orders/Stats/DataStore.php

 		-
-			message: '#^Parameter \#1 \$order of static method Automattic\\WooCommerce\\Admin\\API\\Reports\\Customers\\DataStore\:\:get_existing_customer_id_from_order\(\) expects object, bool\|WC_Order\|WC_Order_Refund given\.$#'
+			message: '#^Parameter \#1 \$order of static method Automattic\\WooCommerce\\Admin\\API\\Reports\\Customers\\DataStore\:\:get_existing_customer_id_from_order\(\) expects object, WC_Order\|WC_Order_Refund\|false given\.$#'
 			identifier: argument.type
 			count: 1
 			path: src/Admin/API/Reports/Orders/Stats/DataStore.php
@@ -51388,7 +50818,7 @@ parameters:
 			path: src/Admin/API/Reports/Orders/Stats/DataStore.php

 		-
-			message: '#^Parameter \#1 \$order of static method Automattic\\WooCommerce\\Admin\\API\\Reports\\Orders\\Stats\\DataStore\:\:get_net_total\(\) expects WC_Order, WC_Order\|WC_Order_Refund\|true given\.$#'
+			message: '#^Parameter \#1 \$order of static method Automattic\\WooCommerce\\Admin\\API\\Reports\\Orders\\Stats\\DataStore\:\:get_net_total\(\) expects WC_Order, WC_Order\|WC_Order_Refund given\.$#'
 			identifier: argument.type
 			count: 1
 			path: src/Admin/API/Reports/Orders/Stats/DataStore.php
@@ -51400,13 +50830,13 @@ parameters:
 			path: src/Admin/API/Reports/Orders/Stats/DataStore.php

 		-
-			message: '#^Parameter \#1 \$order of static method Automattic\\WooCommerce\\Admin\\API\\Reports\\Orders\\Stats\\DataStore\:\:get_num_items_sold\(\) expects WC_Order, WC_Order\|WC_Order_Refund\|true given\.$#'
+			message: '#^Parameter \#1 \$order of static method Automattic\\WooCommerce\\Admin\\API\\Reports\\Orders\\Stats\\DataStore\:\:get_num_items_sold\(\) expects WC_Order, WC_Order\|WC_Order_Refund given\.$#'
 			identifier: argument.type
 			count: 1
 			path: src/Admin/API/Reports/Orders/Stats/DataStore.php

 		-
-			message: '#^Parameter \#1 \$order of static method Automattic\\WooCommerce\\Admin\\API\\Reports\\Orders\\Stats\\DataStore\:\:update\(\) expects Automattic\\WooCommerce\\Admin\\API\\Reports\\Orders\\Stats\\WC_Order_Refund\|WC_Order, WC_Order\|WC_Order_Refund\|true given\.$#'
+			message: '#^Parameter \#1 \$order of static method Automattic\\WooCommerce\\Admin\\API\\Reports\\Orders\\Stats\\DataStore\:\:update\(\) expects Automattic\\WooCommerce\\Admin\\API\\Reports\\Orders\\Stats\\WC_Order_Refund\|WC_Order, WC_Order\|WC_Order_Refund given\.$#'
 			identifier: argument.type
 			count: 1
 			path: src/Admin/API/Reports/Orders/Stats/DataStore.php
@@ -51736,121 +51166,73 @@ parameters:
 			path: src/Admin/API/Reports/Products/DataStore.php

 		-
-			message: '#^Cannot call method date\(\) on WC_DateTime\|null\.$#'
-			identifier: method.nonObject
-			count: 1
-			path: src/Admin/API/Reports/Products/DataStore.php
-
-		-
-			message: '#^Cannot call method get_date_created\(\) on WC_Order\|WC_Order_Refund\|true\.$#'
-			identifier: method.nonObject
-			count: 1
-			path: src/Admin/API/Reports/Products/DataStore.php
-
-		-
-			message: '#^Cannot call method get_id\(\) on WC_Order\|WC_Order_Refund\|true\.$#'
-			identifier: method.nonObject
-			count: 2
-			path: src/Admin/API/Reports/Products/DataStore.php
-
-		-
-			message: '#^Cannot call method get_item_cart_tax_amount\(\) on WC_Order\|WC_Order_Refund\|true\.$#'
-			identifier: method.nonObject
+			message: '#^Call to an undefined method WC_Order\|WC_Order_Refund\:\:get_item_cart_tax_amount\(\)\.$#'
+			identifier: method.notFound
 			count: 2
 			path: src/Admin/API/Reports/Products/DataStore.php

 		-
-			message: '#^Cannot call method get_item_coupon_amount\(\) on WC_Order\|WC_Order_Refund\|true\.$#'
-			identifier: method.nonObject
+			message: '#^Call to an undefined method WC_Order\|WC_Order_Refund\:\:get_item_coupon_amount\(\)\.$#'
+			identifier: method.notFound
 			count: 1
 			path: src/Admin/API/Reports/Products/DataStore.php

 		-
-			message: '#^Cannot call method get_item_shipping_amount\(\) on WC_Order\|WC_Order_Refund\|true\.$#'
-			identifier: method.nonObject
+			message: '#^Call to an undefined method WC_Order\|WC_Order_Refund\:\:get_item_shipping_amount\(\)\.$#'
+			identifier: method.notFound
 			count: 2
 			path: src/Admin/API/Reports/Products/DataStore.php

 		-
-			message: '#^Cannot call method get_item_shipping_tax_amount\(\) on WC_Order\|WC_Order_Refund\|true\.$#'
-			identifier: method.nonObject
+			message: '#^Call to an undefined method WC_Order\|WC_Order_Refund\:\:get_item_shipping_tax_amount\(\)\.$#'
+			identifier: method.notFound
 			count: 2
 			path: src/Admin/API/Reports/Products/DataStore.php

 		-
-			message: '#^Cannot call method get_items\(\) on WC_Order\|WC_Order_Refund\|true\.$#'
-			identifier: method.nonObject
-			count: 1
-			path: src/Admin/API/Reports/Products/DataStore.php
-
-		-
-			message: '#^Cannot call method get_items\(\) on bool\|WC_Order\|WC_Order_Refund\.$#'
-			identifier: method.nonObject
-			count: 1
-			path: src/Admin/API/Reports/Products/DataStore.php
-
-		-
-			message: '#^Cannot call method get_meta\(\) on WC_Order\|WC_Order_Refund\|true\.$#'
-			identifier: method.nonObject
-			count: 1
-			path: src/Admin/API/Reports/Products/DataStore.php
-
-		-
-			message: '#^Cannot call method get_parent_id\(\) on WC_Order\|WC_Order_Refund\|true\.$#'
-			identifier: method.nonObject
-			count: 1
-			path: src/Admin/API/Reports/Products/DataStore.php
-
-		-
-			message: '#^Cannot call method get_remaining_refund_items\(\) on WC_Order\|WC_Order_Refund\|true\.$#'
-			identifier: method.nonObject
-			count: 1
-			path: src/Admin/API/Reports/Products/DataStore.php
-
-		-
-			message: '#^Cannot call method get_report_customer_id\(\) on WC_Order\|WC_Order_Refund\|true\.$#'
-			identifier: method.nonObject
+			message: '#^Call to an undefined method WC_Order\|WC_Order_Refund\:\:get_remaining_refund_items\(\)\.$#'
+			identifier: method.notFound
 			count: 1
 			path: src/Admin/API/Reports/Products/DataStore.php

 		-
-			message: '#^Cannot call method get_shipping_tax\(\) on WC_Order\|WC_Order_Refund\|true\.$#'
-			identifier: method.nonObject
+			message: '#^Call to an undefined method WC_Order\|WC_Order_Refund\:\:get_report_customer_id\(\)\.$#'
+			identifier: method.notFound
 			count: 1
 			path: src/Admin/API/Reports/Products/DataStore.php

 		-
-			message: '#^Cannot call method get_shipping_total\(\) on WC_Order\|WC_Order_Refund\|true\.$#'
-			identifier: method.nonObject
+			message: '#^Call to an undefined method WC_Order\|WC_Order_Refund\:\:get_total_shipping_refunded\(\)\.$#'
+			identifier: method.notFound
 			count: 1
 			path: src/Admin/API/Reports/Products/DataStore.php

 		-
-			message: '#^Cannot call method get_total_shipping_refunded\(\) on WC_Order\|WC_Order_Refund\|true\.$#'
-			identifier: method.nonObject
+			message: '#^Call to an undefined method WC_Order\|WC_Order_Refund\:\:get_total_shipping_tax_refunded\(\)\.$#'
+			identifier: method.notFound
 			count: 1
 			path: src/Admin/API/Reports/Products/DataStore.php

 		-
-			message: '#^Cannot call method get_total_shipping_tax_refunded\(\) on WC_Order\|WC_Order_Refund\|true\.$#'
+			message: '#^Cannot call method date\(\) on WC_DateTime\|null\.$#'
 			identifier: method.nonObject
 			count: 1
 			path: src/Admin/API/Reports/Products/DataStore.php

 		-
-			message: '#^Cannot call method get_type\(\) on WC_Order\|WC_Order_Refund\|true\.$#'
+			message: '#^Cannot call method get_items\(\) on WC_Order\|WC_Order_Refund\|false\.$#'
 			identifier: method.nonObject
 			count: 1
 			path: src/Admin/API/Reports/Products/DataStore.php

 		-
-			message: '#^Cannot call method save_meta_data\(\) on bool\|WC_Order\|WC_Order_Refund\.$#'
+			message: '#^Cannot call method save_meta_data\(\) on WC_Order\|WC_Order_Refund\|false\.$#'
 			identifier: method.nonObject
 			count: 1
 			path: src/Admin/API/Reports/Products/DataStore.php

 		-
-			message: '#^Cannot call method update_meta_data\(\) on bool\|WC_Order\|WC_Order_Refund\.$#'
+			message: '#^Cannot call method update_meta_data\(\) on WC_Order\|WC_Order_Refund\|false\.$#'
 			identifier: method.nonObject
 			count: 1
 			path: src/Admin/API/Reports/Products/DataStore.php
@@ -52617,24 +51999,6 @@ parameters:
 			count: 1
 			path: src/Admin/API/Reports/Taxes/DataStore.php

-		-
-			message: '#^Cannot call method get_date_created\(\) on WC_Order\|WC_Order_Refund\|true\.$#'
-			identifier: method.nonObject
-			count: 1
-			path: src/Admin/API/Reports/Taxes/DataStore.php
-
-		-
-			message: '#^Cannot call method get_id\(\) on WC_Order\|WC_Order_Refund\|true\.$#'
-			identifier: method.nonObject
-			count: 2
-			path: src/Admin/API/Reports/Taxes/DataStore.php
-
-		-
-			message: '#^Cannot call method get_items\(\) on WC_Order\|WC_Order_Refund\|true\.$#'
-			identifier: method.nonObject
-			count: 1
-			path: src/Admin/API/Reports/Taxes/DataStore.php
-
 		-
 			message: '#^Method Automattic\\WooCommerce\\Admin\\API\\Reports\\Taxes\\DataStore\:\:add_from_sql_params\(\) has no return type specified\.$#'
 			identifier: missingType.return
@@ -53176,31 +52540,31 @@ parameters:
 			path: src/Admin/API/Reports/Variations/Controller.php

 		-
-			message: '#^Cannot call method get_formatted_order_total\(\) on bool\|WC_Order\|WC_Order_Refund\.$#'
+			message: '#^Cannot call method get_formatted_order_total\(\) on WC_Order\|WC_Order_Refund\|false\.$#'
 			identifier: method.nonObject
 			count: 1
 			path: src/Admin/API/Reports/Variations/Controller.php

 		-
-			message: '#^Cannot call method get_id\(\) on bool\|WC_Order\|WC_Order_Refund\.$#'
+			message: '#^Cannot call method get_id\(\) on WC_Order\|WC_Order_Refund\|false\.$#'
 			identifier: method.nonObject
 			count: 1
 			path: src/Admin/API/Reports/Variations/Controller.php

 		-
-			message: '#^Cannot call method get_order_number\(\) on bool\|WC_Order\|WC_Order_Refund\.$#'
+			message: '#^Cannot call method get_order_number\(\) on WC_Order\|WC_Order_Refund\|false\.$#'
 			identifier: method.nonObject
 			count: 1
 			path: src/Admin/API/Reports/Variations/Controller.php

 		-
-			message: '#^Cannot call method get_parent_id\(\) on bool\|WC_Order\|WC_Order_Refund\.$#'
+			message: '#^Cannot call method get_parent_id\(\) on WC_Order\|WC_Order_Refund\|false\.$#'
 			identifier: method.nonObject
 			count: 2
 			path: src/Admin/API/Reports/Variations/Controller.php

 		-
-			message: '#^Cannot call method get_type\(\) on bool\|WC_Order\|WC_Order_Refund\.$#'
+			message: '#^Cannot call method get_type\(\) on WC_Order\|WC_Order_Refund\|false\.$#'
 			identifier: method.nonObject
 			count: 2
 			path: src/Admin/API/Reports/Variations/Controller.php
@@ -53236,7 +52600,7 @@ parameters:
 			path: src/Admin/API/Reports/Variations/Controller.php

 		-
-			message: '#^Parameter \#1 \$order of method Automattic\\WooCommerce\\Admin\\API\\Reports\\Variations\\Controller\:\:is_valid_order\(\) expects Automattic\\WooCommerce\\Admin\\API\\Reports\\WC_Order\|Automattic\\WooCommerce\\Admin\\API\\Reports\\WC_Order_Refund\|bool, bool\|WC_Order\|WC_Order_Refund given\.$#'
+			message: '#^Parameter \#1 \$order of method Automattic\\WooCommerce\\Admin\\API\\Reports\\Variations\\Controller\:\:is_valid_order\(\) expects Automattic\\WooCommerce\\Admin\\API\\Reports\\WC_Order\|Automattic\\WooCommerce\\Admin\\API\\Reports\\WC_Order_Refund\|bool, WC_Order\|WC_Order_Refund\|false given\.$#'
 			identifier: argument.type
 			count: 4
 			path: src/Admin/API/Reports/Variations/Controller.php
@@ -56224,7 +55588,7 @@ parameters:
 			path: src/Admin/Overrides/OrderRefund.php

 		-
-			message: '#^Parameter \#1 \$order of static method Automattic\\WooCommerce\\Admin\\API\\Reports\\Customers\\DataStore\:\:get_or_create_customer_from_order\(\) expects object, bool\|WC_Order\|WC_Order_Refund given\.$#'
+			message: '#^Parameter \#1 \$order of static method Automattic\\WooCommerce\\Admin\\API\\Reports\\Customers\\DataStore\:\:get_or_create_customer_from_order\(\) expects object, WC_Order\|WC_Order_Refund\|false given\.$#'
 			identifier: argument.type
 			count: 1
 			path: src/Admin/Overrides/OrderRefund.php
@@ -60394,7 +59758,7 @@ parameters:
 			path: src/Blocks/BlockTypes/OrderConfirmation/AbstractOrderConfirmationBlock.php

 		-
-			message: '#^Method Automattic\\WooCommerce\\Blocks\\BlockTypes\\OrderConfirmation\\AbstractOrderConfirmationBlock\:\:get_order\(\) should return WC_Order\|null but returns bool\|WC_Order\|WC_Order_Refund\.$#'
+			message: '#^Method Automattic\\WooCommerce\\Blocks\\BlockTypes\\OrderConfirmation\\AbstractOrderConfirmationBlock\:\:get_order\(\) should return WC_Order\|null but returns WC_Order\|WC_Order_Refund\|false\.$#'
 			identifier: return.type
 			count: 1
 			path: src/Blocks/BlockTypes/OrderConfirmation/AbstractOrderConfirmationBlock.php
@@ -60867,12 +60231,6 @@ parameters:
 			count: 1
 			path: src/Blocks/BlockTypes/ProductCollection/HandlerRegistry.php

-		-
-			message: '#^Cannot call method get_items\(\) on WC_Order\|WC_Order_Refund\|true\.$#'
-			identifier: method.nonObject
-			count: 1
-			path: src/Blocks/BlockTypes/ProductCollection/HandlerRegistry.php
-
 		-
 			message: '#^Cannot call method get_upsell_ids\(\) on WC_Product\|false\|null\.$#'
 			identifier: method.nonObject
@@ -65056,29 +64414,11 @@ parameters:
 			path: src/Internal/Admin/Agentic/AgenticSettingsPage.php

 		-
-			message: '#^@param WC_Order \$order does not accept actual type of parameter\: WC_Order\|WC_Order_Refund\|true\.$#'
+			message: '#^@param WC_Order \$order does not accept actual type of parameter\: WC_Order\|WC_Order_Refund\.$#'
 			identifier: parameter.phpDocType
 			count: 1
 			path: src/Internal/Admin/Agentic/AgenticWebhookManager.php

-		-
-			message: '#^Cannot call method get_meta\(\) on WC_Order\|WC_Order_Refund\|true\.$#'
-			identifier: method.nonObject
-			count: 2
-			path: src/Internal/Admin/Agentic/AgenticWebhookManager.php
-
-		-
-			message: '#^Cannot call method save\(\) on WC_Order\|WC_Order_Refund\|true\.$#'
-			identifier: method.nonObject
-			count: 1
-			path: src/Internal/Admin/Agentic/AgenticWebhookManager.php
-
-		-
-			message: '#^Cannot call method update_meta_data\(\) on WC_Order\|WC_Order_Refund\|true\.$#'
-			identifier: method.nonObject
-			count: 1
-			path: src/Internal/Admin/Agentic/AgenticWebhookManager.php
-
 		-
 			message: '#^Method Automattic\\WooCommerce\\Internal\\Admin\\Agentic\\AgenticWebhookManager\:\:handle_order_created\(\) has no return type specified\.$#'
 			identifier: missingType.return
@@ -65110,13 +64450,13 @@ parameters:
 			path: src/Internal/Admin/Agentic/AgenticWebhookManager.php

 		-
-			message: '#^Parameter \#1 \$order of method Automattic\\WooCommerce\\Internal\\Admin\\Agentic\\AgenticWebhookManager\:\:should_trigger_webhook\(\) expects WC_Order, WC_Order\|WC_Order_Refund\|true given\.$#'
+			message: '#^Parameter \#1 \$order of method Automattic\\WooCommerce\\Internal\\Admin\\Agentic\\AgenticWebhookManager\:\:should_trigger_webhook\(\) expects WC_Order, WC_Order\|WC_Order_Refund given\.$#'
 			identifier: argument.type
 			count: 1
 			path: src/Internal/Admin/Agentic/AgenticWebhookManager.php

 		-
-			message: '#^Parameter \#2 \$order of method Automattic\\WooCommerce\\Internal\\Admin\\Agentic\\AgenticWebhookPayloadBuilder\:\:build_payload\(\) expects WC_Order, WC_Order\|WC_Order_Refund\|true given\.$#'
+			message: '#^Parameter \#2 \$order of method Automattic\\WooCommerce\\Internal\\Admin\\Agentic\\AgenticWebhookPayloadBuilder\:\:build_payload\(\) expects WC_Order, WC_Order\|WC_Order_Refund given\.$#'
 			identifier: argument.type
 			count: 1
 			path: src/Internal/Admin/Agentic/AgenticWebhookManager.php
@@ -67839,18 +67179,18 @@ parameters:
 			count: 1
 			path: src/Internal/Admin/Orders/EditLock.php

-		-
-			message: '#^Parameter \#1 \$object_or_string of function is_a expects object, WC_Order\|WC_Order_Refund\|true given\.$#'
-			identifier: argument.type
-			count: 2
-			path: src/Internal/Admin/Orders/EditLock.php
-
 		-
 			message: '#^Access to property \$cap on an unknown class Automattic\\WooCommerce\\Internal\\Admin\\Orders\\WP_Post_Type\.$#'
 			identifier: class.notFound
 			count: 1
 			path: src/Internal/Admin/Orders/ListTable.php

+		-
+			message: '#^Call to an undefined method WC_Order\|WC_Order_Refund\:\:update_status\(\)\.$#'
+			identifier: method.notFound
+			count: 1
+			path: src/Internal/Admin/Orders/ListTable.php
+
 		-
 			message: '#^Cannot access property \$ID on WP_User\|false\.$#'
 			identifier: property.nonObject
@@ -67924,7 +67264,7 @@ parameters:
 			path: src/Internal/Admin/Orders/ListTable.php

 		-
-			message: '#^Cannot call method delete\(\) on bool\|WC_Order\|WC_Order_Refund\.$#'
+			message: '#^Cannot call method delete\(\) on WC_Order\|WC_Order_Refund\|false\.$#'
 			identifier: method.nonObject
 			count: 1
 			path: src/Internal/Admin/Orders/ListTable.php
@@ -67942,13 +67282,7 @@ parameters:
 			path: src/Internal/Admin/Orders/ListTable.php

 		-
-			message: '#^Cannot call method get_status\(\) on bool\|WC_Order\|WC_Order_Refund\.$#'
-			identifier: method.nonObject
-			count: 1
-			path: src/Internal/Admin/Orders/ListTable.php
-
-		-
-			message: '#^Cannot call method update_status\(\) on WC_Order\|WC_Order_Refund\|true\.$#'
+			message: '#^Cannot call method get_status\(\) on WC_Order\|WC_Order_Refund\|false\.$#'
 			identifier: method.nonObject
 			count: 1
 			path: src/Internal/Admin/Orders/ListTable.php
@@ -68092,7 +67426,7 @@ parameters:
 			path: src/Internal/Admin/Orders/ListTable.php

 		-
-			message: '#^Parameter \#1 \$order of method Automattic\\WooCommerce\\Internal\\DataStores\\Orders\\OrdersTableDataStore\:\:untrash_order\(\) expects WC_Order, bool\|WC_Order\|WC_Order_Refund given\.$#'
+			message: '#^Parameter \#1 \$order of method Automattic\\WooCommerce\\Internal\\DataStores\\Orders\\OrdersTableDataStore\:\:untrash_order\(\) expects WC_Order, WC_Order\|WC_Order_Refund\|false given\.$#'
 			identifier: argument.type
 			count: 1
 			path: src/Internal/Admin/Orders/ListTable.php
@@ -68212,7 +67546,7 @@ parameters:
 			path: src/Internal/Admin/Orders/MetaBoxes/CustomMetaBox.php

 		-
-			message: '#^Method Automattic\\WooCommerce\\Internal\\Admin\\Orders\\MetaBoxes\\CustomMetaBox\:\:verify_order_edit_permission_for_ajax\(\) should return WC_Order\|null but returns WC_Order\|WC_Order_Refund\|true\.$#'
+			message: '#^Method Automattic\\WooCommerce\\Internal\\Admin\\Orders\\MetaBoxes\\CustomMetaBox\:\:verify_order_edit_permission_for_ajax\(\) should return WC_Order\|null but returns WC_Order\|WC_Order_Refund\.$#'
 			identifier: return.type
 			count: 1
 			path: src/Internal/Admin/Orders/MetaBoxes/CustomMetaBox.php
@@ -68224,13 +67558,13 @@ parameters:
 			path: src/Internal/Admin/Orders/MetaBoxes/CustomMetaBox.php

 		-
-			message: '#^Parameter \#1 \$object_or_string of function is_a expects object, bool\|WC_Order\|WC_Order_Refund given\.$#'
+			message: '#^Parameter \#1 \$object_or_string of function is_a expects object, WC_Order\|WC_Order_Refund\|false given\.$#'
 			identifier: argument.type
 			count: 1
 			path: src/Internal/Admin/Orders/MetaBoxes/CustomMetaBox.php

 		-
-			message: '#^Parameter \#1 \$order of method Automattic\\WooCommerce\\Internal\\Admin\\Orders\\MetaBoxes\\CustomMetaBox\:\:get_formatted_order_meta_data\(\) expects WC_Order, bool\|WC_Order\|WC_Order_Refund given\.$#'
+			message: '#^Parameter \#1 \$order of method Automattic\\WooCommerce\\Internal\\Admin\\Orders\\MetaBoxes\\CustomMetaBox\:\:get_formatted_order_meta_data\(\) expects WC_Order, WC_Order\|WC_Order_Refund\|false given\.$#'
 			identifier: argument.type
 			count: 1
 			path: src/Internal/Admin/Orders/MetaBoxes/CustomMetaBox.php
@@ -68254,7 +67588,7 @@ parameters:
 			path: src/Internal/Admin/Orders/MetaBoxes/CustomMetaBox.php

 		-
-			message: '#^Parameter \#2 \$order of method Automattic\\WooCommerce\\Internal\\Admin\\Orders\\MetaBoxes\\CustomMetaBox\:\:render_custom_meta_form\(\) expects WC_Order, bool\|WC_Order\|WC_Order_Refund given\.$#'
+			message: '#^Parameter \#2 \$order of method Automattic\\WooCommerce\\Internal\\Admin\\Orders\\MetaBoxes\\CustomMetaBox\:\:render_custom_meta_form\(\) expects WC_Order, WC_Order\|WC_Order_Refund\|false given\.$#'
 			identifier: argument.type
 			count: 1
 			path: src/Internal/Admin/Orders/MetaBoxes/CustomMetaBox.php
@@ -68415,12 +67749,6 @@ parameters:
 			count: 2
 			path: src/Internal/Admin/Orders/PageController.php

-		-
-			message: '#^Cannot call method get_type\(\) on WC_Order\|WC_Order_Refund\|true\.$#'
-			identifier: method.nonObject
-			count: 1
-			path: src/Internal/Admin/Orders/PageController.php
-
 		-
 			message: '#^Method Automattic\\WooCommerce\\Internal\\Admin\\Orders\\PageController\:\:handle_load_page_action\(\) has no return type specified\.$#'
 			identifier: missingType.return
@@ -68452,7 +67780,7 @@ parameters:
 			path: src/Internal/Admin/Orders/PageController.php

 		-
-			message: '#^Property Automattic\\WooCommerce\\Internal\\Admin\\Orders\\PageController\:\:\$order \(WC_Order\) does not accept bool\|WC_Order\|WC_Order_Refund\.$#'
+			message: '#^Property Automattic\\WooCommerce\\Internal\\Admin\\Orders\\PageController\:\:\$order \(WC_Order\) does not accept WC_Order\|WC_Order_Refund\|false\.$#'
 			identifier: assign.propertyType
 			count: 1
 			path: src/Internal/Admin/Orders/PageController.php
@@ -69130,26 +68458,8 @@ parameters:
 			path: src/Internal/Admin/Schedulers/MailchimpScheduler.php

 		-
-			message: '#^Cannot call method get_date_created\(\) on WC_Order\|WC_Order_Refund\|true\.$#'
-			identifier: method.nonObject
-			count: 1
-			path: src/Internal/Admin/Schedulers/OrdersScheduler.php
-
-		-
-			message: '#^Cannot call method get_id\(\) on WC_Order\|WC_Order_Refund\|true\.$#'
-			identifier: method.nonObject
-			count: 1
-			path: src/Internal/Admin/Schedulers/OrdersScheduler.php
-
-		-
-			message: '#^Cannot call method get_refunds\(\) on WC_Order\|WC_Order_Refund\|true\.$#'
-			identifier: method.nonObject
-			count: 1
-			path: src/Internal/Admin/Schedulers/OrdersScheduler.php
-
-		-
-			message: '#^Cannot call method get_type\(\) on WC_Order\|WC_Order_Refund\|true\.$#'
-			identifier: method.nonObject
+			message: '#^Call to an undefined method WC_Order\|WC_Order_Refund\:\:get_refunds\(\)\.$#'
+			identifier: method.notFound
 			count: 1
 			path: src/Internal/Admin/Schedulers/OrdersScheduler.php

@@ -69873,12 +69183,6 @@ parameters:
 			count: 1
 			path: src/Internal/Admin/ShippingLabelBanner.php

-		-
-			message: '#^Cannot call method get_id\(\) on WC_Order\|WC_Order_Refund\|true\.$#'
-			identifier: method.nonObject
-			count: 1
-			path: src/Internal/Admin/ShippingLabelBanner.php
-
 		-
 			message: '#^Cannot call method needs_shipping\(\) on WC_Product\|true\.$#'
 			identifier: method.nonObject
@@ -69927,12 +69231,6 @@ parameters:
 			count: 1
 			path: src/Internal/Admin/ShippingLabelBanner.php

-		-
-			message: '#^Cannot call method get_items\(\) on WC_Order\|WC_Order_Refund\|true\.$#'
-			identifier: method.nonObject
-			count: 1
-			path: src/Internal/Admin/ShippingLabelBannerDisplayRules.php
-
 		-
 			message: '#^Cannot call method needs_shipping\(\) on WC_Product\|true\.$#'
 			identifier: method.nonObject
@@ -71517,12 +70815,6 @@ parameters:
 			count: 1
 			path: src/Internal/DataStores/Orders/DataSynchronizer.php

-		-
-			message: '#^Cannot call method get_data_store\(\) on WC_Order\|WC_Order_Refund\|true\.$#'
-			identifier: method.nonObject
-			count: 1
-			path: src/Internal/DataStores/Orders/DataSynchronizer.php
-
 		-
 			message: '#^Filter callback return statement is missing\.$#'
 			identifier: return.missing
@@ -71691,12 +70983,6 @@ parameters:
 			count: 1
 			path: src/Internal/DataStores/Orders/LegacyDataHandler.php

-		-
-			message: '#^Parameter \#1 \$order of method Automattic\\WooCommerce\\Internal\\DataStores\\Orders\\LegacyDataHandler\:\:is_order_newer_than_post\(\) expects WC_Abstract_Order, WC_Order\|WC_Order_Refund\|true given\.$#'
-			identifier: argument.type
-			count: 1
-			path: src/Internal/DataStores/Orders/LegacyDataHandler.php
-
 		-
 			message: '#^Parameter \#1 \$props of method WC_Data\:\:set_props\(\) expects array, array\|false given\.$#'
 			identifier: argument.type
@@ -71823,12 +71109,6 @@ parameters:
 			count: 1
 			path: src/Internal/DataStores/Orders/OrdersTableDataStore.php

-		-
-			message: '#^Cannot call method delete\(\) on WC_Order\|WC_Order_Refund\|true\.$#'
-			identifier: method.nonObject
-			count: 1
-			path: src/Internal/DataStores/Orders/OrdersTableDataStore.php
-
 		-
 			message: '#^Cannot call method getOffsetTimestamp\(\) on WC_DateTime\|null\.$#'
 			identifier: method.nonObject
@@ -71842,31 +71122,25 @@ parameters:
 			path: src/Internal/DataStores/Orders/OrdersTableDataStore.php

 		-
-			message: '#^Cannot call method get_download_permissions_granted\(\) on bool\|WC_Order\|WC_Order_Refund\.$#'
+			message: '#^Cannot call method get_download_permissions_granted\(\) on WC_Order\|WC_Order_Refund\|false\.$#'
 			identifier: method.nonObject
 			count: 1
 			path: src/Internal/DataStores/Orders/OrdersTableDataStore.php

 		-
-			message: '#^Cannot call method get_new_order_email_sent\(\) on bool\|WC_Order\|WC_Order_Refund\.$#'
+			message: '#^Cannot call method get_new_order_email_sent\(\) on WC_Order\|WC_Order_Refund\|false\.$#'
 			identifier: method.nonObject
 			count: 1
 			path: src/Internal/DataStores/Orders/OrdersTableDataStore.php

 		-
-			message: '#^Cannot call method get_order_stock_reduced\(\) on bool\|WC_Order\|WC_Order_Refund\.$#'
+			message: '#^Cannot call method get_order_stock_reduced\(\) on WC_Order\|WC_Order_Refund\|false\.$#'
 			identifier: method.nonObject
 			count: 1
 			path: src/Internal/DataStores/Orders/OrdersTableDataStore.php

 		-
-			message: '#^Cannot call method get_recorded_coupon_usage_counts\(\) on WC_Order\|WC_Order_Refund\|true\.$#'
-			identifier: method.nonObject
-			count: 1
-			path: src/Internal/DataStores/Orders/OrdersTableDataStore.php
-
-		-
-			message: '#^Cannot call method get_recorded_sales\(\) on bool\|WC_Order\|WC_Order_Refund\.$#'
+			message: '#^Cannot call method get_recorded_sales\(\) on WC_Order\|WC_Order_Refund\|false\.$#'
 			identifier: method.nonObject
 			count: 1
 			path: src/Internal/DataStores/Orders/OrdersTableDataStore.php
@@ -71878,37 +71152,37 @@ parameters:
 			path: src/Internal/DataStores/Orders/OrdersTableDataStore.php

 		-
-			message: '#^Cannot call method save\(\) on bool\|WC_Order\|WC_Order_Refund\.$#'
+			message: '#^Cannot call method save\(\) on WC_Order\|WC_Order_Refund\|false\.$#'
 			identifier: method.nonObject
 			count: 6
 			path: src/Internal/DataStores/Orders/OrdersTableDataStore.php

 		-
-			message: '#^Cannot call method set_download_permissions_granted\(\) on bool\|WC_Order\|WC_Order_Refund\.$#'
+			message: '#^Cannot call method set_download_permissions_granted\(\) on WC_Order\|WC_Order_Refund\|false\.$#'
 			identifier: method.nonObject
 			count: 1
 			path: src/Internal/DataStores/Orders/OrdersTableDataStore.php

 		-
-			message: '#^Cannot call method set_new_order_email_sent\(\) on bool\|WC_Order\|WC_Order_Refund\.$#'
+			message: '#^Cannot call method set_new_order_email_sent\(\) on WC_Order\|WC_Order_Refund\|false\.$#'
 			identifier: method.nonObject
 			count: 2
 			path: src/Internal/DataStores/Orders/OrdersTableDataStore.php

 		-
-			message: '#^Cannot call method set_order_stock_reduced\(\) on bool\|WC_Order\|WC_Order_Refund\.$#'
+			message: '#^Cannot call method set_order_stock_reduced\(\) on WC_Order\|WC_Order_Refund\|false\.$#'
 			identifier: method.nonObject
 			count: 1
 			path: src/Internal/DataStores/Orders/OrdersTableDataStore.php

 		-
-			message: '#^Cannot call method set_recorded_coupon_usage_counts\(\) on bool\|WC_Order\|WC_Order_Refund\.$#'
+			message: '#^Cannot call method set_recorded_coupon_usage_counts\(\) on WC_Order\|WC_Order_Refund\|false\.$#'
 			identifier: method.nonObject
 			count: 1
 			path: src/Internal/DataStores/Orders/OrdersTableDataStore.php

 		-
-			message: '#^Cannot call method set_recorded_sales\(\) on bool\|WC_Order\|WC_Order_Refund\.$#'
+			message: '#^Cannot call method set_recorded_sales\(\) on WC_Order\|WC_Order_Refund\|false\.$#'
 			identifier: method.nonObject
 			count: 1
 			path: src/Internal/DataStores/Orders/OrdersTableDataStore.php
@@ -72151,7 +71425,7 @@ parameters:
 			path: src/Internal/DataStores/Orders/OrdersTableDataStore.php

 		-
-			message: '#^Parameter \#1 \$order of method Automattic\\WooCommerce\\Internal\\DataStores\\Orders\\OrdersTableDataStore\:\:maybe_backfill_post_record\(\) expects WC_Abstract_Order, bool\|WC_Order\|WC_Order_Refund given\.$#'
+			message: '#^Parameter \#1 \$order of method Automattic\\WooCommerce\\Internal\\DataStores\\Orders\\OrdersTableDataStore\:\:maybe_backfill_post_record\(\) expects WC_Abstract_Order, WC_Order\|WC_Order_Refund\|false given\.$#'
 			identifier: argument.type
 			count: 2
 			path: src/Internal/DataStores/Orders/OrdersTableDataStore.php
@@ -73590,12 +72864,6 @@ parameters:
 			count: 1
 			path: src/Internal/Fulfillments/FulfillmentsManager.php

-		-
-			message: '#^Cannot call method get_id\(\) on WC_Order\|WC_Order_Refund\|true\.$#'
-			identifier: method.nonObject
-			count: 1
-			path: src/Internal/Fulfillments/FulfillmentsRenderer.php
-
 		-
 			message: '#^Method Automattic\\WooCommerce\\Internal\\Fulfillments\\FulfillmentsRenderer\:\:filter_legacy_orders_list_query\(\) has no return type specified\.$#'
 			identifier: missingType.return
@@ -73693,13 +72961,13 @@ parameters:
 			path: src/Internal/Fulfillments/FulfillmentsRenderer.php

 		-
-			message: '#^Parameter \#1 \$order of method Automattic\\WooCommerce\\Internal\\Fulfillments\\FulfillmentsRenderer\:\:maybe_read_fulfillments\(\) expects WC_Order, WC_Order\|WC_Order_Refund\|true given\.$#'
+			message: '#^Parameter \#1 \$order of method Automattic\\WooCommerce\\Internal\\Fulfillments\\FulfillmentsRenderer\:\:maybe_read_fulfillments\(\) expects WC_Order, WC_Order\|WC_Order_Refund given\.$#'
 			identifier: argument.type
 			count: 1
 			path: src/Internal/Fulfillments/FulfillmentsRenderer.php

 		-
-			message: '#^Parameter \#1 \$order of static method Automattic\\WooCommerce\\Internal\\Fulfillments\\FulfillmentUtils\:\:get_pending_items\(\) expects WC_Order, WC_Order\|WC_Order_Refund\|true given\.$#'
+			message: '#^Parameter \#1 \$order of static method Automattic\\WooCommerce\\Internal\\Fulfillments\\FulfillmentUtils\:\:get_pending_items\(\) expects WC_Order, WC_Order\|WC_Order_Refund given\.$#'
 			identifier: argument.type
 			count: 1
 			path: src/Internal/Fulfillments/FulfillmentsRenderer.php
@@ -73741,7 +73009,7 @@ parameters:
 			path: src/Internal/Fulfillments/FulfillmentsSettings.php

 		-
-			message: '#^Cannot call method get_customer_id\(\) on WC_Order\|WC_Order_Refund\|true\|null\.$#'
+			message: '#^Cannot call method get_customer_id\(\) on WC_Order\|WC_Order_Refund\|null\.$#'
 			identifier: method.nonObject
 			count: 1
 			path: src/Internal/Fulfillments/OrderFulfillmentsRestController.php
@@ -74137,50 +73405,26 @@ parameters:
 			path: src/Internal/OrderCouponDataMigrator.php

 		-
-			message: '#^Call to an undefined method object\:\:get_id\(\)\.$#'
+			message: '#^Call to an undefined method WC_Order\|WC_Order_Refund\:\:add_order_note\(\)\.$#'
 			identifier: method.notFound
 			count: 1
 			path: src/Internal/Orders/CouponsController.php

 		-
-			message: '#^Cannot call method add_order_note\(\) on WC_Order\|WC_Order_Refund\|true\.$#'
-			identifier: method.nonObject
-			count: 1
-			path: src/Internal/Orders/CouponsController.php
-
-		-
-			message: '#^Cannot call method apply_coupon\(\) on WC_Order\|WC_Order_Refund\|true\.$#'
-			identifier: method.nonObject
-			count: 1
-			path: src/Internal/Orders/CouponsController.php
-
-		-
-			message: '#^Cannot call method calculate_taxes\(\) on WC_Order\|WC_Order_Refund\|true\.$#'
-			identifier: method.nonObject
-			count: 1
-			path: src/Internal/Orders/CouponsController.php
-
-		-
-			message: '#^Cannot call method calculate_totals\(\) on WC_Order\|WC_Order_Refund\|true\.$#'
-			identifier: method.nonObject
-			count: 1
-			path: src/Internal/Orders/CouponsController.php
-
-		-
-			message: '#^Cannot call method set_billing_email\(\) on WC_Order\|WC_Order_Refund\|true\.$#'
-			identifier: method.nonObject
+			message: '#^Call to an undefined method WC_Order\|WC_Order_Refund\:\:set_billing_email\(\)\.$#'
+			identifier: method.notFound
 			count: 1
 			path: src/Internal/Orders/CouponsController.php

 		-
-			message: '#^Cannot call method set_customer_id\(\) on WC_Order\|WC_Order_Refund\|true\.$#'
-			identifier: method.nonObject
+			message: '#^Call to an undefined method WC_Order\|WC_Order_Refund\:\:set_customer_id\(\)\.$#'
+			identifier: method.notFound
 			count: 1
 			path: src/Internal/Orders/CouponsController.php

 		-
-			message: '#^Method Automattic\\WooCommerce\\Internal\\Orders\\CouponsController\:\:add_coupon_discount\(\) should return object but returns WC_Order\|WC_Order_Refund\|true\.$#'
-			identifier: return.type
+			message: '#^Call to an undefined method object\:\:get_id\(\)\.$#'
+			identifier: method.notFound
 			count: 1
 			path: src/Internal/Orders/CouponsController.php

@@ -74209,19 +73453,19 @@ parameters:
 			path: src/Internal/Orders/IppFunctions.php

 		-
-			message: '#^Cannot call method add_order_note\(\) on bool\|WC_Order\|WC_Order_Refund\.$#'
+			message: '#^Cannot call method add_order_note\(\) on WC_Order\|WC_Order_Refund\|false\.$#'
 			identifier: method.nonObject
 			count: 2
 			path: src/Internal/Orders/OrderActionsRestController.php

 		-
-			message: '#^Cannot call method get_billing_email\(\) on bool\|WC_Order\|WC_Order_Refund\.$#'
+			message: '#^Cannot call method get_billing_email\(\) on WC_Order\|WC_Order_Refund\|false\.$#'
 			identifier: method.nonObject
 			count: 4
 			path: src/Internal/Orders/OrderActionsRestController.php

 		-
-			message: '#^Cannot call method get_id\(\) on bool\|WC_Order\|WC_Order_Refund\.$#'
+			message: '#^Cannot call method get_id\(\) on WC_Order\|WC_Order_Refund\|false\.$#'
 			identifier: method.nonObject
 			count: 7
 			path: src/Internal/Orders/OrderActionsRestController.php
@@ -74281,25 +73525,25 @@ parameters:
 			path: src/Internal/Orders/OrderActionsRestController.php

 		-
-			message: '#^Parameter \#1 \$order of method Automattic\\WooCommerce\\Internal\\Orders\\OrderActionsRestController\:\:get_available_email_templates\(\) expects WC_Order, bool\|WC_Order\|WC_Order_Refund given\.$#'
+			message: '#^Parameter \#1 \$order of method Automattic\\WooCommerce\\Internal\\Orders\\OrderActionsRestController\:\:get_available_email_templates\(\) expects WC_Order, WC_Order\|WC_Order_Refund\|false given\.$#'
 			identifier: argument.type
 			count: 2
 			path: src/Internal/Orders/OrderActionsRestController.php

 		-
-			message: '#^Parameter \#1 \$order of method Automattic\\WooCommerce\\Internal\\Orders\\OrderActionsRestController\:\:maybe_update_billing_email\(\) expects WC_Order, bool\|WC_Order\|WC_Order_Refund given\.$#'
+			message: '#^Parameter \#1 \$order of method Automattic\\WooCommerce\\Internal\\Orders\\OrderActionsRestController\:\:maybe_update_billing_email\(\) expects WC_Order, WC_Order\|WC_Order_Refund\|false given\.$#'
 			identifier: argument.type
 			count: 2
 			path: src/Internal/Orders/OrderActionsRestController.php

 		-
-			message: '#^Parameter \#1 \$order of method Automattic\\WooCommerce\\Internal\\Orders\\OrderActionsRestController\:\:order_is_partially_refunded\(\) expects WC_Order, bool\|WC_Order\|WC_Order_Refund given\.$#'
+			message: '#^Parameter \#1 \$order of method Automattic\\WooCommerce\\Internal\\Orders\\OrderActionsRestController\:\:order_is_partially_refunded\(\) expects WC_Order, WC_Order\|WC_Order_Refund\|false given\.$#'
 			identifier: argument.type
 			count: 1
 			path: src/Internal/Orders/OrderActionsRestController.php

 		-
-			message: '#^Parameter \#1 \$order of method WC_Emails\:\:customer_invoice\(\) expects int\|WC_Order, bool\|WC_Order\|WC_Order_Refund given\.$#'
+			message: '#^Parameter \#1 \$order of method WC_Emails\:\:customer_invoice\(\) expects int\|WC_Order, WC_Order\|WC_Order_Refund\|false given\.$#'
 			identifier: argument.type
 			count: 1
 			path: src/Internal/Orders/OrderActionsRestController.php
@@ -74431,19 +73675,19 @@ parameters:
 			path: src/Internal/Orders/PointOfSaleOrderUtil.php

 		-
-			message: '#^Cannot call method calculate_taxes\(\) on bool\|WC_Order\|WC_Order_Refund\.$#'
+			message: '#^Cannot call method calculate_taxes\(\) on WC_Order\|WC_Order_Refund\|false\.$#'
 			identifier: method.nonObject
 			count: 1
 			path: src/Internal/Orders/TaxesController.php

 		-
-			message: '#^Cannot call method calculate_totals\(\) on bool\|WC_Order\|WC_Order_Refund\.$#'
+			message: '#^Cannot call method calculate_totals\(\) on WC_Order\|WC_Order_Refund\|false\.$#'
 			identifier: method.nonObject
 			count: 1
 			path: src/Internal/Orders/TaxesController.php

 		-
-			message: '#^Method Automattic\\WooCommerce\\Internal\\Orders\\TaxesController\:\:calc_line_taxes\(\) should return object but returns bool\|WC_Order\|WC_Order_Refund\.$#'
+			message: '#^Method Automattic\\WooCommerce\\Internal\\Orders\\TaxesController\:\:calc_line_taxes\(\) should return object but returns WC_Order\|WC_Order_Refund\|false\.$#'
 			identifier: return.type
 			count: 1
 			path: src/Internal/Orders/TaxesController.php
@@ -75528,12 +74772,6 @@ parameters:
 			count: 1
 			path: src/Internal/PushNotifications/Entities/PushToken.php

-		-
-			message: '#^@param WC_Abstract_Order \$order does not accept actual type of parameter\: WC_Abstract_Order\|true\.$#'
-			identifier: parameter.phpDocType
-			count: 3
-			path: src/Internal/ReceiptRendering/ReceiptRenderingEngine.php
-
 		-
 			message: '#^@param string \$css does not accept actual type of parameter\: string\|false\.$#'
 			identifier: parameter.phpDocType
@@ -75570,30 +74808,12 @@ parameters:
 			count: 1
 			path: src/Internal/ReceiptRendering/ReceiptRenderingEngine.php

-		-
-			message: '#^Cannot call method get_meta\(\) on WC_Abstract_Order\|true\.$#'
-			identifier: method.nonObject
-			count: 1
-			path: src/Internal/ReceiptRendering/ReceiptRenderingEngine.php
-
 		-
 			message: '#^Cannot call method get_name\(\) on WC_Product\|false\|null\.$#'
 			identifier: method.nonObject
 			count: 1
 			path: src/Internal/ReceiptRendering/ReceiptRenderingEngine.php

-		-
-			message: '#^Cannot call method save_meta_data\(\) on WC_Abstract_Order\|true\.$#'
-			identifier: method.nonObject
-			count: 1
-			path: src/Internal/ReceiptRendering/ReceiptRenderingEngine.php
-
-		-
-			message: '#^Cannot call method update_meta_data\(\) on WC_Abstract_Order\|true\.$#'
-			identifier: method.nonObject
-			count: 1
-			path: src/Internal/ReceiptRendering/ReceiptRenderingEngine.php
-
 		-
 			message: '#^Constant Automattic\\WooCommerce\\Internal\\ReceiptRendering\\ReceiptRenderingEngine\:\:KNOWN_CARD_TYPES is unused\.$#'
 			identifier: classConstant.unused
@@ -75636,18 +74856,6 @@ parameters:
 			count: 1
 			path: src/Internal/ReceiptRendering/ReceiptRenderingEngine.php

-		-
-			message: '#^Parameter \#1 \$order of method Automattic\\WooCommerce\\Internal\\ReceiptRendering\\ReceiptRenderingEngine\:\:get_existing_receipt\(\) expects WC_Abstract_Order, WC_Abstract_Order\|true given\.$#'
-			identifier: argument.type
-			count: 1
-			path: src/Internal/ReceiptRendering/ReceiptRenderingEngine.php
-
-		-
-			message: '#^Parameter \#1 \$order of method Automattic\\WooCommerce\\Internal\\ReceiptRendering\\ReceiptRenderingEngine\:\:get_order_data\(\) expects WC_Abstract_Order, WC_Abstract_Order\|true given\.$#'
-			identifier: argument.type
-			count: 1
-			path: src/Internal/ReceiptRendering/ReceiptRenderingEngine.php
-
 		-
 			message: '#^Parameter \#1 \$price of function wc_price expects float, string given\.$#'
 			identifier: argument.type
@@ -75925,8 +75133,8 @@ parameters:
 			path: src/Internal/RestApi/Routes/V4/Customers/UpdateUtils.php

 		-
-			message: '#^Cannot call method get_customer_id\(\) on WC_Order\|WC_Order_Refund\|true\.$#'
-			identifier: method.nonObject
+			message: '#^Call to an undefined method WC_Order\|WC_Order_Refund\:\:get_customer_id\(\)\.$#'
+			identifier: method.notFound
 			count: 1
 			path: src/Internal/RestApi/Routes/V4/Fulfillments/Controller.php

@@ -76074,12 +75282,6 @@ parameters:
 			count: 1
 			path: src/Internal/RestApi/Routes/V4/OrderNotes/Controller.php

-		-
-			message: '#^Cannot call method get_type\(\) on WC_Order\|WC_Order_Refund\|true\.$#'
-			identifier: method.nonObject
-			count: 1
-			path: src/Internal/RestApi/Routes/V4/OrderNotes/Controller.php
-
 		-
 			message: '#^Method Automattic\\WooCommerce\\Internal\\RestApi\\Routes\\V4\\OrderNotes\\Controller\:\:create_item\(\) has parameter \$request with generic class WP_REST_Request but does not specify its types\: T$#'
 			identifier: missingType.generics
@@ -76135,7 +75337,7 @@ parameters:
 			path: src/Internal/RestApi/Routes/V4/OrderNotes/Controller.php

 		-
-			message: '#^Method Automattic\\WooCommerce\\Internal\\RestApi\\Routes\\V4\\OrderNotes\\Controller\:\:get_order_by_id\(\) should return WC_Order\|null but returns WC_Order\|WC_Order_Refund\|true\|null\.$#'
+			message: '#^Method Automattic\\WooCommerce\\Internal\\RestApi\\Routes\\V4\\OrderNotes\\Controller\:\:get_order_by_id\(\) should return WC_Order\|null but returns WC_Order\|WC_Order_Refund\|null\.$#'
 			identifier: return.type
 			count: 1
 			path: src/Internal/RestApi/Routes/V4/OrderNotes/Controller.php
@@ -76327,7 +75529,7 @@ parameters:
 			path: src/Internal/RestApi/Routes/V4/Orders/CollectionQuery.php

 		-
-			message: '#^@param WC_Order \$order does not accept actual type of parameter\: bool\|WC_Order\|WC_Order_Refund\.$#'
+			message: '#^@param WC_Order \$order does not accept actual type of parameter\: WC_Order\|WC_Order_Refund\|false\.$#'
 			identifier: parameter.phpDocType
 			count: 2
 			path: src/Internal/RestApi/Routes/V4/Orders/Controller.php
@@ -76357,13 +75559,13 @@ parameters:
 			path: src/Internal/RestApi/Routes/V4/Orders/Controller.php

 		-
-			message: '#^Cannot call method delete\(\) on bool\|WC_Order\|WC_Order_Refund\.$#'
+			message: '#^Cannot call method delete\(\) on WC_Order\|WC_Order_Refund\|false\.$#'
 			identifier: method.nonObject
 			count: 2
 			path: src/Internal/RestApi/Routes/V4/Orders/Controller.php

 		-
-			message: '#^Cannot call method get_status\(\) on bool\|WC_Order\|WC_Order_Refund\.$#'
+			message: '#^Cannot call method get_status\(\) on WC_Order\|WC_Order_Refund\|false\.$#'
 			identifier: method.nonObject
 			count: 2
 			path: src/Internal/RestApi/Routes/V4/Orders/Controller.php
@@ -76477,25 +75679,25 @@ parameters:
 			path: src/Internal/RestApi/Routes/V4/Orders/Controller.php

 		-
-			message: '#^Parameter \#1 \$data_object of method WP_REST_Controller\:\:update_additional_fields_for_object\(\) expects object, bool\|WC_Order\|WC_Order_Refund given\.$#'
+			message: '#^Parameter \#1 \$data_object of method WP_REST_Controller\:\:update_additional_fields_for_object\(\) expects object, WC_Order\|WC_Order_Refund\|false given\.$#'
 			identifier: argument.type
 			count: 1
 			path: src/Internal/RestApi/Routes/V4/Orders/Controller.php

 		-
-			message: '#^Parameter \#1 \$order of method Automattic\\WooCommerce\\Internal\\RestApi\\Routes\\V4\\Orders\\ActionController\:\:run_actions\(\) expects WC_Order, bool\|WC_Order\|WC_Order_Refund given\.$#'
+			message: '#^Parameter \#1 \$order of method Automattic\\WooCommerce\\Internal\\RestApi\\Routes\\V4\\Orders\\ActionController\:\:run_actions\(\) expects WC_Order, WC_Order\|WC_Order_Refund\|false given\.$#'
 			identifier: argument.type
 			count: 1
 			path: src/Internal/RestApi/Routes/V4/Orders/Controller.php

 		-
-			message: '#^Parameter \#1 \$order of method Automattic\\WooCommerce\\Internal\\RestApi\\Routes\\V4\\Orders\\Controller\:\:is_valid_order_for_request\(\) expects WC_Order, bool\|WC_Order\|WC_Order_Refund given\.$#'
+			message: '#^Parameter \#1 \$order of method Automattic\\WooCommerce\\Internal\\RestApi\\Routes\\V4\\Orders\\Controller\:\:is_valid_order_for_request\(\) expects WC_Order, WC_Order\|WC_Order_Refund\|false given\.$#'
 			identifier: argument.type
 			count: 3
 			path: src/Internal/RestApi/Routes/V4/Orders/Controller.php

 		-
-			message: '#^Parameter \#1 \$order of method Automattic\\WooCommerce\\Internal\\RestApi\\Routes\\V4\\Orders\\UpdateUtils\:\:update_order_from_request\(\) expects WC_Order, bool\|WC_Order\|WC_Order_Refund given\.$#'
+			message: '#^Parameter \#1 \$order of method Automattic\\WooCommerce\\Internal\\RestApi\\Routes\\V4\\Orders\\UpdateUtils\:\:update_order_from_request\(\) expects WC_Order, WC_Order\|WC_Order_Refund\|false given\.$#'
 			identifier: argument.type
 			count: 1
 			path: src/Internal/RestApi/Routes/V4/Orders/Controller.php
@@ -77527,7 +76729,7 @@ parameters:
 			path: src/Internal/RestApi/Routes/V4/Refunds/CollectionQuery.php

 		-
-			message: '#^@param WC_Order_Refund \$refund does not accept actual type of parameter\: bool\|WC_Order\|WC_Order_Refund\.$#'
+			message: '#^@param WC_Order_Refund \$refund does not accept actual type of parameter\: WC_Order\|WC_Order_Refund\|false\.$#'
 			identifier: parameter.phpDocType
 			count: 1
 			path: src/Internal/RestApi/Routes/V4/Refunds/Controller.php
@@ -77557,13 +76759,7 @@ parameters:
 			path: src/Internal/RestApi/Routes/V4/Refunds/Controller.php

 		-
-			message: '#^Cannot call method delete\(\) on bool\|WC_Order\|WC_Order_Refund\.$#'
-			identifier: method.nonObject
-			count: 1
-			path: src/Internal/RestApi/Routes/V4/Refunds/Controller.php
-
-		-
-			message: '#^Cannot call method get_id\(\) on WC_Order\|WC_Order_Refund\|true\.$#'
+			message: '#^Cannot call method delete\(\) on WC_Order\|WC_Order_Refund\|false\.$#'
 			identifier: method.nonObject
 			count: 1
 			path: src/Internal/RestApi/Routes/V4/Refunds/Controller.php
@@ -77653,7 +76849,7 @@ parameters:
 			path: src/Internal/RestApi/Routes/V4/Refunds/Controller.php

 		-
-			message: '#^Parameter \#1 \$refund of method Automattic\\WooCommerce\\Internal\\RestApi\\Routes\\V4\\Refunds\\Controller\:\:is_valid_refund_for_request\(\) expects WC_Order_Refund, bool\|WC_Order\|WC_Order_Refund given\.$#'
+			message: '#^Parameter \#1 \$refund of method Automattic\\WooCommerce\\Internal\\RestApi\\Routes\\V4\\Refunds\\Controller\:\:is_valid_refund_for_request\(\) expects WC_Order_Refund, WC_Order\|WC_Order_Refund\|false given\.$#'
 			identifier: argument.type
 			count: 2
 			path: src/Internal/RestApi/Routes/V4/Refunds/Controller.php
@@ -77665,13 +76861,13 @@ parameters:
 			path: src/Internal/RestApi/Routes/V4/Refunds/Controller.php

 		-
-			message: '#^Parameter \#2 \$order of method Automattic\\WooCommerce\\Internal\\RestApi\\Routes\\V4\\Refunds\\DataUtils\:\:convert_line_items_to_internal_format\(\) expects WC_Order, WC_Order\|WC_Order_Refund\|true given\.$#'
+			message: '#^Parameter \#2 \$order of method Automattic\\WooCommerce\\Internal\\RestApi\\Routes\\V4\\Refunds\\DataUtils\:\:convert_line_items_to_internal_format\(\) expects WC_Order, WC_Order\|WC_Order_Refund given\.$#'
 			identifier: argument.type
 			count: 1
 			path: src/Internal/RestApi/Routes/V4/Refunds/Controller.php

 		-
-			message: '#^Parameter \#2 \$order of method Automattic\\WooCommerce\\Internal\\RestApi\\Routes\\V4\\Refunds\\DataUtils\:\:validate_line_items\(\) expects WC_Order, WC_Order\|WC_Order_Refund\|true given\.$#'
+			message: '#^Parameter \#2 \$order of method Automattic\\WooCommerce\\Internal\\RestApi\\Routes\\V4\\Refunds\\DataUtils\:\:validate_line_items\(\) expects WC_Order, WC_Order\|WC_Order_Refund given\.$#'
 			identifier: argument.type
 			count: 1
 			path: src/Internal/RestApi/Routes/V4/Refunds/Controller.php
@@ -78961,19 +78157,19 @@ parameters:
 			path: src/Internal/RestockRefundedItemsAdjuster.php

 		-
-			message: '#^Cannot call method get_qty_refunded_for_item\(\) on bool\|WC_Order\|WC_Order_Refund\.$#'
+			message: '#^Cannot call method get_qty_refunded_for_item\(\) on WC_Order\|WC_Order_Refund\|false\.$#'
 			identifier: method.nonObject
 			count: 1
 			path: src/Internal/RestockRefundedItemsAdjuster.php

 		-
-			message: '#^Cannot call method get_refunds\(\) on bool\|WC_Order\|WC_Order_Refund\.$#'
+			message: '#^Cannot call method get_refunds\(\) on WC_Order\|WC_Order_Refund\|false\.$#'
 			identifier: method.nonObject
 			count: 1
 			path: src/Internal/RestockRefundedItemsAdjuster.php

 		-
-			message: '#^Cannot call method get_version\(\) on bool\|WC_Order\|WC_Order_Refund\.$#'
+			message: '#^Cannot call method get_version\(\) on WC_Order\|WC_Order_Refund\|false\.$#'
 			identifier: method.nonObject
 			count: 1
 			path: src/Internal/RestockRefundedItemsAdjuster.php
@@ -80119,7 +79315,7 @@ parameters:
 			path: src/Internal/Utilities/COTMigrationUtil.php

 		-
-			message: '#^Method Automattic\\WooCommerce\\Internal\\Utilities\\COTMigrationUtil\:\:init_theorder_object\(\) should return Automattic\\WooCommerce\\Internal\\Utilities\\WC_Order_Refund\|bool\|WC_Order but returns bool\|WC_Order\|WC_Order_Refund\.$#'
+			message: '#^Method Automattic\\WooCommerce\\Internal\\Utilities\\COTMigrationUtil\:\:init_theorder_object\(\) should return Automattic\\WooCommerce\\Internal\\Utilities\\WC_Order_Refund\|bool\|WC_Order but returns WC_Order\|WC_Order_Refund\|false\.$#'
 			identifier: return.type
 			count: 1
 			path: src/Internal/Utilities/COTMigrationUtil.php
@@ -80317,25 +79513,25 @@ parameters:
 			path: src/Internal/Utilities/URL.php

 		-
-			message: '#^@param Automattic\\WooCommerce\\Internal\\Utilities\\WC_Order \$order does not accept actual type of parameter\: bool\|WC_Order\|WC_Order_Refund\.$#'
+			message: '#^@param Automattic\\WooCommerce\\Internal\\Utilities\\WC_Order \$order does not accept actual type of parameter\: WC_Order\|WC_Order_Refund\|false\.$#'
 			identifier: parameter.phpDocType
 			count: 1
 			path: src/Internal/Utilities/Users.php

 		-
-			message: '#^Cannot call method get_billing_email\(\) on bool\|WC_Order\|WC_Order_Refund\.$#'
+			message: '#^Cannot call method get_billing_email\(\) on WC_Order\|WC_Order_Refund\|false\.$#'
 			identifier: method.nonObject
 			count: 1
 			path: src/Internal/Utilities/Users.php

 		-
-			message: '#^Cannot call method get_customer_id\(\) on bool\|WC_Order\|WC_Order_Refund\.$#'
+			message: '#^Cannot call method get_customer_id\(\) on WC_Order\|WC_Order_Refund\|false\.$#'
 			identifier: method.nonObject
 			count: 1
 			path: src/Internal/Utilities/Users.php

 		-
-			message: '#^Cannot call method get_date_created\(\) on bool\|WC_Order\|WC_Order_Refund\.$#'
+			message: '#^Cannot call method get_date_created\(\) on WC_Order\|WC_Order_Refund\|false\.$#'
 			identifier: method.nonObject
 			count: 1
 			path: src/Internal/Utilities/Users.php
@@ -80779,7 +79975,7 @@ parameters:
 			path: src/StoreApi/Routes/V1/AbstractCartRoute.php

 		-
-			message: '#^Parameter \#1 \$order_object of method Automattic\\WooCommerce\\StoreApi\\Routes\\V1\\AbstractCartRoute\:\:is_valid_draft_order\(\) expects WC_Order, bool\|WC_Order\|WC_Order_Refund given\.$#'
+			message: '#^Parameter \#1 \$order_object of method Automattic\\WooCommerce\\StoreApi\\Routes\\V1\\AbstractCartRoute\:\:is_valid_draft_order\(\) expects WC_Order, WC_Order\|WC_Order_Refund\|false given\.$#'
 			identifier: argument.type
 			count: 1
 			path: src/StoreApi/Routes/V1/AbstractCartRoute.php
@@ -81427,7 +80623,7 @@ parameters:
 			path: src/StoreApi/Routes/V1/CartRemoveItem.php

 		-
-			message: '#^Parameter \#1 \$order_object of method Automattic\\WooCommerce\\StoreApi\\Routes\\V1\\CartRemoveItem\:\:is_valid_draft_order\(\) expects WC_Order, bool\|WC_Order\|WC_Order_Refund given\.$#'
+			message: '#^Parameter \#1 \$order_object of method Automattic\\WooCommerce\\StoreApi\\Routes\\V1\\CartRemoveItem\:\:is_valid_draft_order\(\) expects WC_Order, WC_Order\|WC_Order_Refund\|false given\.$#'
 			identifier: argument.type
 			count: 1
 			path: src/StoreApi/Routes/V1/CartRemoveItem.php
@@ -81481,7 +80677,7 @@ parameters:
 			path: src/StoreApi/Routes/V1/CartUpdateCustomer.php

 		-
-			message: '#^Parameter \#1 \$order_object of method Automattic\\WooCommerce\\StoreApi\\Routes\\V1\\CartUpdateCustomer\:\:is_valid_draft_order\(\) expects WC_Order, bool\|WC_Order\|WC_Order_Refund given\.$#'
+			message: '#^Parameter \#1 \$order_object of method Automattic\\WooCommerce\\StoreApi\\Routes\\V1\\CartUpdateCustomer\:\:is_valid_draft_order\(\) expects WC_Order, WC_Order\|WC_Order_Refund\|false given\.$#'
 			identifier: argument.type
 			count: 1
 			path: src/StoreApi/Routes/V1/CartUpdateCustomer.php
@@ -81739,7 +80935,7 @@ parameters:
 			path: src/StoreApi/Routes/V1/Checkout.php

 		-
-			message: '#^Parameter \#1 \$order_object of method Automattic\\WooCommerce\\StoreApi\\Routes\\V1\\Checkout\:\:is_valid_draft_order\(\) expects WC_Order, bool\|WC_Order\|WC_Order_Refund given\.$#'
+			message: '#^Parameter \#1 \$order_object of method Automattic\\WooCommerce\\StoreApi\\Routes\\V1\\Checkout\:\:is_valid_draft_order\(\) expects WC_Order, WC_Order\|WC_Order_Refund\|false given\.$#'
 			identifier: argument.type
 			count: 1
 			path: src/StoreApi/Routes/V1/Checkout.php
@@ -81769,7 +80965,7 @@ parameters:
 			path: src/StoreApi/Routes/V1/Checkout.php

 		-
-			message: '#^@param WC_Order \$order does not accept actual type of parameter\: WC_Order\|WC_Order_Refund\|true\.$#'
+			message: '#^@param WC_Order \$order does not accept actual type of parameter\: WC_Order\|WC_Order_Refund\.$#'
 			identifier: parameter.phpDocType
 			count: 1
 			path: src/StoreApi/Routes/V1/CheckoutOrder.php
@@ -81787,17 +80983,29 @@ parameters:
 			path: src/StoreApi/Routes/V1/CheckoutOrder.php

 		-
-			message: '#^Cannot access offset string on 0\|0\.0\|''''\|''0''\|array\<string, array\|string\>\|false\|null\.$#'
-			identifier: offsetAccess.nonOffsetAccessible
+			message: '#^Call to an undefined method WC_Order\|WC_Order_Refund\:\:get_billing_email\(\)\.$#'
+			identifier: method.notFound
 			count: 1
 			path: src/StoreApi/Routes/V1/CheckoutOrder.php

 		-
-			message: '#^Cannot call method needs_payment\(\) on WC_Order\|WC_Order_Refund\|true\.$#'
-			identifier: method.nonObject
+			message: '#^Call to an undefined method WC_Order\|WC_Order_Refund\:\:get_customer_id\(\)\.$#'
+			identifier: method.notFound
+			count: 1
+			path: src/StoreApi/Routes/V1/CheckoutOrder.php
+
+		-
+			message: '#^Call to an undefined method WC_Order\|WC_Order_Refund\:\:needs_payment\(\)\.$#'
+			identifier: method.notFound
 			count: 2
 			path: src/StoreApi/Routes/V1/CheckoutOrder.php

+		-
+			message: '#^Cannot access offset string on 0\|0\.0\|''''\|''0''\|array\<string, array\|string\>\|false\|null\.$#'
+			identifier: offsetAccess.nonOffsetAccessible
+			count: 1
+			path: src/StoreApi/Routes/V1/CheckoutOrder.php
+
 		-
 			message: '#^Expression on left side of \?\? is not nullable\.$#'
 			identifier: nullCoalesce.expr
@@ -81870,24 +81078,12 @@ parameters:
 			count: 1
 			path: src/StoreApi/Routes/V1/CheckoutOrder.php

-		-
-			message: '#^Method Automattic\\WooCommerce\\StoreApi\\Routes\\V1\\CheckoutOrder\:\:is_authorized\(\) has invalid return type Automattic\\WooCommerce\\StoreApi\\Utilities\\WP_Error\.$#'
-			identifier: class.notFound
-			count: 1
-			path: src/StoreApi/Routes/V1/CheckoutOrder.php
-
 		-
 			message: '#^Method Automattic\\WooCommerce\\StoreApi\\Routes\\V1\\CheckoutOrder\:\:is_authorized\(\) has parameter \$request with generic class WP_REST_Request but does not specify its types\: T$#'
 			identifier: missingType.generics
 			count: 1
 			path: src/StoreApi/Routes/V1/CheckoutOrder.php

-		-
-			message: '#^Method Automattic\\WooCommerce\\StoreApi\\Routes\\V1\\CheckoutOrder\:\:is_authorized\(\) should return Automattic\\WooCommerce\\StoreApi\\Utilities\\WP_Error\|bool but returns WP_Error\.$#'
-			identifier: return.type
-			count: 1
-			path: src/StoreApi/Routes/V1/CheckoutOrder.php
-
 		-
 			message: '#^Method Automattic\\WooCommerce\\StoreApi\\Routes\\V1\\CheckoutOrder\:\:persist_additional_fields_for_order\(\) has no return type specified\.$#'
 			identifier: missingType.return
@@ -81985,7 +81181,7 @@ parameters:
 			path: src/StoreApi/Routes/V1/CheckoutOrder.php

 		-
-			message: '#^Parameter \#1 \$order of method Automattic\\WooCommerce\\StoreApi\\Utilities\\OrderController\:\:validate_existing_order_before_payment\(\) expects WC_Order, WC_Order\|WC_Order_Refund\|true given\.$#'
+			message: '#^Parameter \#1 \$order of method Automattic\\WooCommerce\\StoreApi\\Utilities\\OrderController\:\:validate_existing_order_before_payment\(\) expects WC_Order, WC_Order\|WC_Order_Refund given\.$#'
 			identifier: argument.type
 			count: 1
 			path: src/StoreApi/Routes/V1/CheckoutOrder.php
@@ -82003,38 +81199,38 @@ parameters:
 			path: src/StoreApi/Routes/V1/CheckoutOrder.php

 		-
-			message: '#^Property Automattic\\WooCommerce\\StoreApi\\Routes\\V1\\CheckoutOrder\:\:\$order \(WC_Order\) does not accept bool\|WC_Order\|WC_Order_Refund\.$#'
+			message: '#^Property Automattic\\WooCommerce\\StoreApi\\Routes\\V1\\CheckoutOrder\:\:\$order \(WC_Order\) does not accept WC_Order\|WC_Order_Refund\|false\.$#'
 			identifier: assign.propertyType
 			count: 1
 			path: src/StoreApi/Routes/V1/CheckoutOrder.php

 		-
-			message: '#^Method Automattic\\WooCommerce\\StoreApi\\Routes\\V1\\Order\:\:get_route_response\(\) has parameter \$request with generic class WP_REST_Request but does not specify its types\: T$#'
-			identifier: missingType.generics
+			message: '#^Call to an undefined method WC_Order\|WC_Order_Refund\:\:get_billing_email\(\)\.$#'
+			identifier: method.notFound
 			count: 1
 			path: src/StoreApi/Routes/V1/Order.php

 		-
-			message: '#^Method Automattic\\WooCommerce\\StoreApi\\Routes\\V1\\Order\:\:get_route_response\(\) should return WP_REST_Response but returns WP_Error\|WP_REST_Response\.$#'
-			identifier: return.type
+			message: '#^Call to an undefined method WC_Order\|WC_Order_Refund\:\:get_customer_id\(\)\.$#'
+			identifier: method.notFound
 			count: 1
 			path: src/StoreApi/Routes/V1/Order.php

 		-
-			message: '#^Method Automattic\\WooCommerce\\StoreApi\\Routes\\V1\\Order\:\:is_authorized\(\) has invalid return type Automattic\\WooCommerce\\StoreApi\\Utilities\\WP_Error\.$#'
-			identifier: class.notFound
+			message: '#^Method Automattic\\WooCommerce\\StoreApi\\Routes\\V1\\Order\:\:get_route_response\(\) has parameter \$request with generic class WP_REST_Request but does not specify its types\: T$#'
+			identifier: missingType.generics
 			count: 1
 			path: src/StoreApi/Routes/V1/Order.php

 		-
-			message: '#^Method Automattic\\WooCommerce\\StoreApi\\Routes\\V1\\Order\:\:is_authorized\(\) has parameter \$request with generic class WP_REST_Request but does not specify its types\: T$#'
-			identifier: missingType.generics
+			message: '#^Method Automattic\\WooCommerce\\StoreApi\\Routes\\V1\\Order\:\:get_route_response\(\) should return WP_REST_Response but returns WP_Error\|WP_REST_Response\.$#'
+			identifier: return.type
 			count: 1
 			path: src/StoreApi/Routes/V1/Order.php

 		-
-			message: '#^Method Automattic\\WooCommerce\\StoreApi\\Routes\\V1\\Order\:\:is_authorized\(\) should return Automattic\\WooCommerce\\StoreApi\\Utilities\\WP_Error\|bool but returns WP_Error\.$#'
-			identifier: return.type
+			message: '#^Method Automattic\\WooCommerce\\StoreApi\\Routes\\V1\\Order\:\:is_authorized\(\) has parameter \$request with generic class WP_REST_Request but does not specify its types\: T$#'
+			identifier: missingType.generics
 			count: 1
 			path: src/StoreApi/Routes/V1/Order.php

@@ -82513,7 +81709,7 @@ parameters:
 			path: src/StoreApi/Schemas/V1/Agentic/CheckoutSessionSchema.php

 		-
-			message: '#^Parameter \#1 \$order_object of method Automattic\\WooCommerce\\StoreApi\\Schemas\\V1\\Agentic\\CheckoutSessionSchema\:\:is_valid_draft_order\(\) expects WC_Order, bool\|WC_Order\|WC_Order_Refund given\.$#'
+			message: '#^Parameter \#1 \$order_object of method Automattic\\WooCommerce\\StoreApi\\Schemas\\V1\\Agentic\\CheckoutSessionSchema\:\:is_valid_draft_order\(\) expects WC_Order, WC_Order\|WC_Order_Refund\|false given\.$#'
 			identifier: argument.type
 			count: 1
 			path: src/StoreApi/Schemas/V1/Agentic/CheckoutSessionSchema.php
@@ -83413,7 +82609,7 @@ parameters:
 			path: src/StoreApi/Utilities/CartController.php

 		-
-			message: '#^Parameter \#1 \$order_object of method Automattic\\WooCommerce\\StoreApi\\Utilities\\CartController\:\:is_valid_draft_order\(\) expects WC_Order, bool\|WC_Order\|WC_Order_Refund given\.$#'
+			message: '#^Parameter \#1 \$order_object of method Automattic\\WooCommerce\\StoreApi\\Utilities\\CartController\:\:is_valid_draft_order\(\) expects WC_Order, WC_Order\|WC_Order_Refund\|false given\.$#'
 			identifier: argument.type
 			count: 1
 			path: src/StoreApi/Utilities/CartController.php
@@ -83563,49 +82759,43 @@ parameters:
 			path: src/StoreApi/Utilities/OrderController.php

 		-
-			message: '#^Call to an undefined method object\:\:get_stock_reduced\(\)\.$#'
+			message: '#^Call to an undefined method WC_Order\|WC_Order_Refund\:\:get_order_key\(\)\.$#'
 			identifier: method.notFound
 			count: 1
 			path: src/StoreApi/Utilities/OrderController.php

 		-
-			message: '#^Call to an undefined method object\:\:get_tentative_usages_for_user\(\)\.$#'
+			message: '#^Call to an undefined method object\:\:get_stock_reduced\(\)\.$#'
 			identifier: method.notFound
 			count: 1
 			path: src/StoreApi/Utilities/OrderController.php

 		-
-			message: '#^Cannot call method get_data_store\(\) on bool\|WC_Order\|WC_Order_Refund\.$#'
-			identifier: method.nonObject
+			message: '#^Call to an undefined method object\:\:get_tentative_usages_for_user\(\)\.$#'
+			identifier: method.notFound
 			count: 1
 			path: src/StoreApi/Utilities/OrderController.php

 		-
-			message: '#^Cannot call method get_id\(\) on WC_Order\|WC_Order_Refund\|true\.$#'
+			message: '#^Cannot call method get_data_store\(\) on WC_Order\|WC_Order_Refund\|false\.$#'
 			identifier: method.nonObject
 			count: 1
 			path: src/StoreApi/Utilities/OrderController.php

 		-
-			message: '#^Cannot call method get_id\(\) on bool\|WC_Order\|WC_Order_Refund\.$#'
+			message: '#^Cannot call method get_id\(\) on WC_Order\|WC_Order_Refund\|false\.$#'
 			identifier: method.nonObject
 			count: 2
 			path: src/StoreApi/Utilities/OrderController.php

 		-
-			message: '#^Cannot call method get_items\(\) on bool\|WC_Order\|WC_Order_Refund\.$#'
+			message: '#^Cannot call method get_items\(\) on WC_Order\|WC_Order_Refund\|false\.$#'
 			identifier: method.nonObject
 			count: 2
 			path: src/StoreApi/Utilities/OrderController.php

 		-
-			message: '#^Cannot call method get_order_key\(\) on WC_Order\|WC_Order_Refund\|true\.$#'
-			identifier: method.nonObject
-			count: 1
-			path: src/StoreApi/Utilities/OrderController.php
-
-		-
-			message: '#^Cannot call method has_status\(\) on bool\|WC_Order\|WC_Order_Refund\.$#'
+			message: '#^Cannot call method has_status\(\) on WC_Order\|WC_Order_Refund\|false\.$#'
 			identifier: method.nonObject
 			count: 1
 			path: src/StoreApi/Utilities/OrderController.php
@@ -83917,7 +83107,7 @@ parameters:
 			path: src/StoreApi/Utilities/QuantityLimits.php

 		-
-			message: '#^Parameter \#1 \$order_object of method Automattic\\WooCommerce\\StoreApi\\Utilities\\QuantityLimits\:\:is_valid_draft_order\(\) expects WC_Order, bool\|WC_Order\|WC_Order_Refund given\.$#'
+			message: '#^Parameter \#1 \$order_object of method Automattic\\WooCommerce\\StoreApi\\Utilities\\QuantityLimits\:\:is_valid_draft_order\(\) expects WC_Order, WC_Order\|WC_Order_Refund\|false given\.$#'
 			identifier: argument.type
 			count: 1
 			path: src/StoreApi/Utilities/QuantityLimits.php
diff --git a/plugins/woocommerce/src/StoreApi/Utilities/OrderAuthorizationTrait.php b/plugins/woocommerce/src/StoreApi/Utilities/OrderAuthorizationTrait.php
index a21a4d8091..4237af4e4b 100644
--- a/plugins/woocommerce/src/StoreApi/Utilities/OrderAuthorizationTrait.php
+++ b/plugins/woocommerce/src/StoreApi/Utilities/OrderAuthorizationTrait.php
@@ -2,7 +2,6 @@
 namespace Automattic\WooCommerce\StoreApi\Utilities;

 use Automattic\WooCommerce\StoreApi\Exceptions\RouteException;
-use Automattic\WooCommerce\Internal\Utilities\Users;

 /**
  * OrderAuthorizationTrait
@@ -16,7 +15,7 @@ trait OrderAuthorizationTrait {
 	 * @throws RouteException If the order is not found or the order key is invalid.
 	 *
 	 * @param \WP_REST_Request $request Request object.
-	 * @return boolean|WP_Error
+	 * @return boolean|\WP_Error
 	 */
 	public function is_authorized( \WP_REST_Request $request ) {
 		$order_id      = absint( $request['id'] );
@@ -24,16 +23,27 @@ trait OrderAuthorizationTrait {
 		$billing_email = sanitize_text_field( wp_unslash( $request->get_param( 'billing_email' ) ) );

 		try {
-			// In this context, pay_for_order capability checks that the current user ID matches the customer ID stored
-			// within the order, or if the order was placed by a guest.
-			// See https://github.com/woocommerce/woocommerce/blob/abcedbefe02f9e89122771100c42ff588da3e8e0/plugins/woocommerce/includes/wc-user-functions.php#L458.
-			if ( ! current_user_can( 'pay_for_order', $order_id ) ) {
-				throw new RouteException( 'woocommerce_rest_invalid_user', __( 'This order belongs to a different customer.', 'woocommerce' ), 403 );
+			$order = wc_get_order( $order_id );
+
+			if ( ! $order ) {
+				throw new RouteException( 'woocommerce_rest_invalid_order', esc_html__( 'Invalid order ID.', 'woocommerce' ), 404 );
 			}
-			if ( get_current_user_id() === 0 ) {
-				$this->order_controller->validate_order_key( $order_id, $order_key );
-				$this->validate_billing_email_matches_order( $order_id, $billing_email );
+
+			$order_customer_id = $order->get_customer_id();
+
+			// If the order belongs to a registered customer, check if the current user is the owner.
+			if ( $order_customer_id ) {
+				// If current user is the order owner, allow access, otherwise reject with an error.
+				if ( get_current_user_id() === $order_customer_id ) {
+					return true;
+				} else {
+					throw new RouteException( 'woocommerce_rest_invalid_user', esc_html__( 'This order belongs to a different customer.', 'woocommerce' ), 403 );
+				}
 			}
+
+			// Guest order: require order key and billing email validation for all visitors (logged-in or not).
+			$this->order_controller->validate_order_key( $order_id, $order_key );
+			$this->validate_billing_email_matches_order( $order_id, $billing_email );
 		} catch ( RouteException $error ) {
 			return new \WP_Error(
 				$error->getErrorCode(),
@@ -55,9 +65,22 @@ trait OrderAuthorizationTrait {
 	public function validate_billing_email_matches_order( $order_id, $billing_email ) {
 		$order = wc_get_order( $order_id );

-		if ( ! $order || Users::should_user_verify_order_email( $order_id, $billing_email ) ) {
-			throw new RouteException( 'woocommerce_rest_invalid_billing_email', __( 'Invalid billing email provided.', 'woocommerce' ), 401 );
+		if ( ! $order ) {
+			throw new RouteException( 'woocommerce_rest_invalid_order', esc_html__( 'Invalid order ID.', 'woocommerce' ), 404 );
 		}
-	}

+		$order_billing_email = $order->get_billing_email();
+
+		// If the order doesn't have an email, then allowing an empty billing_email param is acceptable. It will still be compared to order email below.
+		if ( ! $billing_email && ! empty( $order_billing_email ) ) {
+			throw new RouteException( 'woocommerce_rest_invalid_billing_email', esc_html__( 'No billing email provided.', 'woocommerce' ), 401 );
+		}
+
+		// For Store API authorization, the provided billing email must exactly match the order's billing email. We use
+		// direct comparison rather than Users::should_user_verify_order_email() because that function has a grace
+		// period for newly created orders which is inappropriate for use when querying orders on the API.
+		if ( 0 !== strcasecmp( $order_billing_email, $billing_email ) ) {
+			throw new RouteException( 'woocommerce_rest_invalid_billing_email', esc_html__( 'Invalid billing email provided.', 'woocommerce' ), 401 );
+		}
+	}
 }
diff --git a/plugins/woocommerce/tests/php/src/Blocks/StoreApi/Routes/Order.php b/plugins/woocommerce/tests/php/src/Blocks/StoreApi/Routes/Order.php
new file mode 100644
index 0000000000..7a52395489
--- /dev/null
+++ b/plugins/woocommerce/tests/php/src/Blocks/StoreApi/Routes/Order.php
@@ -0,0 +1,419 @@
+<?php
+/**
+ * Order Route Tests.
+ */
+
+declare( strict_types = 1 );
+
+namespace Automattic\WooCommerce\Tests\Blocks\StoreApi\Routes;
+
+use Automattic\WooCommerce\Tests\Blocks\Helpers\FixtureData;
+
+/**
+ * Order Route Tests.
+ *
+ * Tests for the /wc/store/v1/order endpoint, focusing on authorization.
+ */
+class Order extends ControllerTestCase {
+
+	/**
+	 * Test product.
+	 *
+	 * @var \WC_Product
+	 */
+	private $product;
+
+	/**
+	 * Test customer user ID.
+	 *
+	 * @var int
+	 */
+	private $customer_id;
+
+	/**
+	 * Second test customer user ID.
+	 *
+	 * @var int
+	 */
+	private $customer_id_2;
+
+	/**
+	 * Setup test data.
+	 */
+	protected function setUp(): void {
+		parent::setUp();
+
+		$fixtures      = new FixtureData();
+		$this->product = $fixtures->get_simple_product(
+			array(
+				'name'          => 'Test Product',
+				'regular_price' => 10,
+			)
+		);
+
+		// Create test customers.
+		$this->customer_id   = $this->factory->user->create(
+			array(
+				'role'       => 'customer',
+				'user_email' => 'customer1@test.com',
+			)
+		);
+		$this->customer_id_2 = $this->factory->user->create(
+			array(
+				'role'       => 'customer',
+				'user_email' => 'customer2@test.com',
+			)
+		);
+	}
+
+	/**
+	 * Tear down test data.
+	 */
+	protected function tearDown(): void {
+		parent::tearDown();
+
+		if ( $this->customer_id ) {
+			wp_delete_user( $this->customer_id );
+		}
+		if ( $this->customer_id_2 ) {
+			wp_delete_user( $this->customer_id_2 );
+		}
+	}
+
+	/**
+	 * Create a guest order for testing.
+	 *
+	 * @return \WC_Order
+	 */
+	private function create_guest_order() {
+		$order = new \WC_Order();
+		$order->set_billing_email( 'guest@example.com' );
+		$order->set_billing_first_name( 'Guest' );
+		$order->set_billing_last_name( 'User' );
+		$order->add_product( $this->product, 1 );
+		$order->calculate_totals();
+		$order->save();
+
+		return $order;
+	}
+
+	/**
+	 * Create an order for a registered customer.
+	 *
+	 * @param int $customer_id Customer user ID.
+	 * @return \WC_Order
+	 */
+	private function create_customer_order( $customer_id ) {
+		$order = new \WC_Order();
+		$order->set_customer_id( $customer_id );
+		$order->set_billing_email( get_userdata( $customer_id )->user_email );
+		$order->set_billing_first_name( 'Customer' );
+		$order->set_billing_last_name( 'User' );
+		$order->add_product( $this->product, 1 );
+		$order->calculate_totals();
+		$order->save();
+
+		return $order;
+	}
+
+	/**
+	 * Test that a guest can access a guest order with valid order key and billing email.
+	 */
+	public function test_guest_can_access_guest_order_with_valid_credentials() {
+		$order = $this->create_guest_order();
+
+		wp_set_current_user( 0 );
+
+		$request = new \WP_REST_Request( 'GET', '/wc/store/v1/order/' . $order->get_id() );
+		$request->set_param( 'key', $order->get_order_key() );
+		$request->set_param( 'billing_email', $order->get_billing_email() );
+
+		$response = rest_get_server()->dispatch( $request );
+
+		$this->assertEquals( 200, $response->get_status() );
+		$this->assertEquals( $order->get_id(), $response->get_data()['id'] );
+	}
+
+	/**
+	 * Test that billing email matching is case-insensitive.
+	 */
+	public function test_guest_can_access_guest_order_with_different_case_email() {
+		$order = $this->create_guest_order(); // Has email: guest@example.com.
+
+		wp_set_current_user( 0 );
+
+		$request = new \WP_REST_Request( 'GET', '/wc/store/v1/order/' . $order->get_id() );
+		$request->set_param( 'key', $order->get_order_key() );
+		$request->set_param( 'billing_email', 'GUEST@EXAMPLE.COM' );
+
+		$response = rest_get_server()->dispatch( $request );
+
+		$this->assertEquals( 200, $response->get_status() );
+		$this->assertEquals( $order->get_id(), $response->get_data()['id'] );
+	}
+
+	/**
+	 * Test that a guest cannot access a guest order with invalid order key.
+	 */
+	public function test_guest_cannot_access_guest_order_with_invalid_key() {
+		$order = $this->create_guest_order();
+
+		wp_set_current_user( 0 );
+
+		$request = new \WP_REST_Request( 'GET', '/wc/store/v1/order/' . $order->get_id() );
+		$request->set_param( 'key', 'invalid_key' );
+		$request->set_param( 'billing_email', $order->get_billing_email() );
+
+		$response = rest_get_server()->dispatch( $request );
+
+		$this->assertEquals( 401, $response->get_status() );
+	}
+
+	/**
+	 * Test that a guest cannot access a guest order with invalid billing email.
+	 */
+	public function test_guest_cannot_access_guest_order_with_invalid_email() {
+		$order = $this->create_guest_order();
+
+		wp_set_current_user( 0 );
+
+		$request = new \WP_REST_Request( 'GET', '/wc/store/v1/order/' . $order->get_id() );
+		$request->set_param( 'key', $order->get_order_key() );
+		$request->set_param( 'billing_email', 'wrong@example.com' );
+
+		$response = rest_get_server()->dispatch( $request );
+
+		$this->assertEquals( 401, $response->get_status() );
+	}
+
+	/**
+	 * Test that a guest cannot access a guest order without providing billing email.
+	 */
+	public function test_guest_cannot_access_guest_order_without_email() {
+		$order = $this->create_guest_order(); // Order has billing email set.
+
+		wp_set_current_user( 0 );
+
+		$request = new \WP_REST_Request( 'GET', '/wc/store/v1/order/' . $order->get_id() );
+		$request->set_param( 'key', $order->get_order_key() );
+		// Not providing billing_email at all.
+
+		$response = rest_get_server()->dispatch( $request );
+
+		$this->assertEquals( 401, $response->get_status() );
+	}
+
+	/**
+	 * Test that a logged-in user CANNOT access a guest order without order key and billing email.
+	 *
+	 * This is the main security fix test - previously logged-in users could access ANY guest order.
+	 */
+	public function test_logged_in_user_cannot_access_guest_order_without_credentials() {
+		$order = $this->create_guest_order();
+
+		wp_set_current_user( $this->customer_id );
+
+		$request = new \WP_REST_Request( 'GET', '/wc/store/v1/order/' . $order->get_id() );
+		// Not providing order key or billing email.
+
+		$response = rest_get_server()->dispatch( $request );
+
+		$this->assertEquals( 401, $response->get_status() );
+	}
+
+	/**
+	 * Test that a logged-in user cannot access a guest order with invalid key but valid email.
+	 */
+	public function test_logged_in_user_cannot_access_guest_order_with_invalid_key() {
+		$order = $this->create_guest_order();
+
+		wp_set_current_user( $this->customer_id );
+
+		$request = new \WP_REST_Request( 'GET', '/wc/store/v1/order/' . $order->get_id() );
+		$request->set_param( 'key', 'invalid_key' );
+		$request->set_param( 'billing_email', $order->get_billing_email() );
+
+		$response = rest_get_server()->dispatch( $request );
+
+		$this->assertEquals( 401, $response->get_status() );
+	}
+
+	/**
+	 * Test that a logged-in user cannot access a guest order with valid key but invalid email.
+	 */
+	public function test_logged_in_user_cannot_access_guest_order_with_invalid_email() {
+		$order = $this->create_guest_order();
+
+		wp_set_current_user( $this->customer_id );
+
+		$request = new \WP_REST_Request( 'GET', '/wc/store/v1/order/' . $order->get_id() );
+		$request->set_param( 'key', $order->get_order_key() );
+		$request->set_param( 'billing_email', 'wrong@example.com' );
+
+		$response = rest_get_server()->dispatch( $request );
+
+		$this->assertEquals( 401, $response->get_status() );
+	}
+
+	/**
+	 * Test that a logged-in user CAN access a guest order with valid order key and billing email.
+	 */
+	public function test_logged_in_user_can_access_guest_order_with_valid_credentials() {
+		$order = $this->create_guest_order();
+
+		wp_set_current_user( $this->customer_id );
+
+		$request = new \WP_REST_Request( 'GET', '/wc/store/v1/order/' . $order->get_id() );
+		$request->set_param( 'key', $order->get_order_key() );
+		$request->set_param( 'billing_email', $order->get_billing_email() );
+
+		$response = rest_get_server()->dispatch( $request );
+
+		$this->assertEquals( 200, $response->get_status() );
+		$this->assertEquals( $order->get_id(), $response->get_data()['id'] );
+	}
+
+	/**
+	 * Test that a customer can access their own order.
+	 */
+	public function test_customer_can_access_own_order() {
+		$order = $this->create_customer_order( $this->customer_id );
+
+		wp_set_current_user( $this->customer_id );
+
+		$request = new \WP_REST_Request( 'GET', '/wc/store/v1/order/' . $order->get_id() );
+
+		$response = rest_get_server()->dispatch( $request );
+
+		$this->assertEquals( 200, $response->get_status() );
+		$this->assertEquals( $order->get_id(), $response->get_data()['id'] );
+	}
+
+	/**
+	 * Test that a customer cannot access another customer's order.
+	 */
+	public function test_customer_cannot_access_other_customer_order() {
+		$order = $this->create_customer_order( $this->customer_id );
+
+		// Log in as a different customer.
+		wp_set_current_user( $this->customer_id_2 );
+
+		$request = new \WP_REST_Request( 'GET', '/wc/store/v1/order/' . $order->get_id() );
+
+		$response = rest_get_server()->dispatch( $request );
+
+		$this->assertEquals( 403, $response->get_status() );
+	}
+
+	/**
+	 * Test that a guest cannot access a customer's order.
+	 */
+	public function test_guest_cannot_access_customer_order() {
+		$order = $this->create_customer_order( $this->customer_id );
+
+		wp_set_current_user( 0 );
+
+		$request = new \WP_REST_Request( 'GET', '/wc/store/v1/order/' . $order->get_id() );
+		// Even with the order key, a guest should not be able to access a customer order.
+		$request->set_param( 'key', $order->get_order_key() );
+		$request->set_param( 'billing_email', $order->get_billing_email() );
+
+		$response = rest_get_server()->dispatch( $request );
+
+		$this->assertEquals( 403, $response->get_status() );
+	}
+
+	/**
+	 * Test that requesting a non-existent order returns 404.
+	 */
+	public function test_non_existent_order_returns_404() {
+		wp_set_current_user( $this->customer_id );
+
+		$request = new \WP_REST_Request( 'GET', '/wc/store/v1/order/999999999' );
+
+		$response = rest_get_server()->dispatch( $request );
+
+		$this->assertEquals( 404, $response->get_status() );
+	}
+
+	/**
+	 * Test that a subscriber (low-privileged logged-in user) cannot access guest orders.
+	 *
+	 * This specifically tests the reported vulnerability scenario.
+	 */
+	public function test_subscriber_cannot_access_guest_order() {
+		$order = $this->create_guest_order();
+
+		// Create a subscriber user (low privileged).
+		$subscriber_id = \WC_Unit_Test_Case::factory()->user->create(
+			array(
+				'role' => 'subscriber',
+			)
+		);
+
+		wp_set_current_user( $subscriber_id );
+
+		$request = new \WP_REST_Request( 'GET', '/wc/store/v1/order/' . $order->get_id() );
+		// Not providing any credentials - this should be denied.
+
+		$response = rest_get_server()->dispatch( $request );
+
+		$this->assertEquals( 401, $response->get_status() );
+
+		// Clean up.
+		wp_delete_user( $subscriber_id );
+	}
+
+	/**
+	 * Test guest order without billing email can be accessed with valid key and no email param.
+	 *
+	 * Orders without billing emails (e.g., manually created) can be accessed
+	 * if no billing_email param is provided (empty matches empty).
+	 */
+	public function test_guest_order_without_billing_email_can_be_accessed_with_empty_email() {
+		$order = new \WC_Order();
+		$order->set_billing_first_name( 'Guest' );
+		$order->set_billing_last_name( 'User' );
+		$order->set_billing_email( '' );
+		$order->add_product( $this->product, 1 );
+		$order->calculate_totals();
+		$order->save();
+
+		wp_set_current_user( 0 );
+
+		// Valid key with no email param - empty matches empty, so access granted.
+		$request = new \WP_REST_Request( 'GET', '/wc/store/v1/order/' . $order->get_id() );
+		$request->set_param( 'key', $order->get_order_key() );
+
+		$response = rest_get_server()->dispatch( $request );
+
+		$this->assertEquals( 200, $response->get_status() );
+		$this->assertEquals( $order->get_id(), $response->get_data()['id'] );
+	}
+
+	/**
+	 * Test guest order without billing email cannot be accessed with a non-empty email param.
+	 *
+	 * If an email param is provided but the order has no email, they won't match.
+	 */
+	public function test_guest_order_without_billing_email_cannot_be_accessed_with_wrong_email() {
+		$order = new \WC_Order();
+		$order->set_billing_first_name( 'Guest' );
+		$order->set_billing_last_name( 'User' );
+		$order->set_billing_email( '' );
+		$order->add_product( $this->product, 1 );
+		$order->calculate_totals();
+		$order->save();
+
+		wp_set_current_user( 0 );
+
+		// Valid key but email param provided - won't match empty order email.
+		$request = new \WP_REST_Request( 'GET', '/wc/store/v1/order/' . $order->get_id() );
+		$request->set_param( 'key', $order->get_order_key() );
+		$request->set_param( 'billing_email', 'any@example.com' );
+
+		$response = rest_get_server()->dispatch( $request );
+
+		$this->assertEquals( 401, $response->get_status() );
+	}
+}