mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-08-30 05:00:51 +08:00
Fix Psalm errors
This commit is contained in:
parent
09420c0adb
commit
9b81ac54f2
5 changed files with 65 additions and 48 deletions
|
@ -145,9 +145,13 @@ class OrderTrackingModule implements ModuleInterface {
|
|||
return;
|
||||
}
|
||||
|
||||
$wc_order = wc_get_order( $order_id );
|
||||
$wc_order = wc_get_order( $order_id );
|
||||
if ( ! is_a( $wc_order, WC_Order::class ) ) {
|
||||
return;
|
||||
}
|
||||
|
||||
$transaction_id = $wc_order->get_transaction_id();
|
||||
if ( ! is_a( $wc_order, WC_Order::class ) || empty( $transaction_id ) ) {
|
||||
if ( empty( $transaction_id ) ) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue