Skip to content

Commit

Permalink
Merge pull request #880 from mollie/fix/PIWOO-423
Browse files Browse the repository at this point in the history
[PIWOO-423] TypeError when WooCommerce Analytics is disabled
  • Loading branch information
mmaymo authored Apr 26, 2024
2 parents 4a6704f + e320c45 commit a91fbc3
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 a91fbc3

Please sign in to comment.