Skip to content

Commit

Permalink
Updated the type from Automattic\WooCommerce\Admin\Overrides\Order to…
Browse files Browse the repository at this point in the history
… WC_Order
  • Loading branch information
inpsyde-maticluznar committed Feb 6, 2024
1 parent 0d65130 commit e320c45
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/MerchantCapture/OrderListPaymentColumn.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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);
}
Expand Down

0 comments on commit e320c45

Please sign in to comment.