diff --git a/src/MerchantCapture/OrderListPaymentColumn.php b/src/MerchantCapture/OrderListPaymentColumn.php index d74a9173..6a522dc6 100644 --- a/src/MerchantCapture/OrderListPaymentColumn.php +++ b/src/MerchantCapture/OrderListPaymentColumn.php @@ -4,7 +4,7 @@ namespace Mollie\WooCommerce\MerchantCapture; -use Automattic\WooCommerce\Admin\Overrides\Order; +use WC_Order; use Mollie\WooCommerce\MerchantCapture\UI\StatusRenderer; class OrderListPaymentColumn @@ -16,7 +16,7 @@ public function __construct() # HPOS hooks add_filter('woocommerce_shop_order_list_table_columns', [$this, 'renderColumn']); - add_action('woocommerce_shop_order_list_table_custom_column', function (string $column, Order $order) { + add_action('woocommerce_shop_order_list_table_custom_column', function (string $column, WC_Order $order) { $this->renderColumnValue($column, $order->get_id()); }, 10, 2); }