Skip to content

Commit

Permalink
Remove empty catch, not sure why this was here.
Browse files Browse the repository at this point in the history
Was added by @rvdsteege in 86b5b15.
  • Loading branch information
remcotolsma committed Aug 22, 2023
1 parent 5c4c509 commit 45e0884
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/Extension.php
Original file line number Diff line number Diff line change
Expand Up @@ -712,11 +712,7 @@ public static function status_update( Payment $payment ) {
$order_payment_id = (int) $order->get_meta( '_pronamic_payment_id' );

Check failure on line 712 in src/Extension.php

View workflow job for this annotation

GitHub Actions / phpstan / phpstan

Cannot call method get_meta() on WC_Order|WC_Order_Refund|true.

if ( empty( $order_payment_id ) || $payment->get_id() === $order_payment_id ) {
try {
$order->update_status( $new_status );
} catch ( \Exception $exception ) {
// Nothing to do.
}
$order->update_status( $new_status );
}
}

Expand Down

0 comments on commit 45e0884

Please sign in to comment.