Skip to content

Commit

Permalink
chore: Linter and PHPStan compliance met
Browse files Browse the repository at this point in the history
  • Loading branch information
kidunot89 committed May 8, 2024
1 parent 585ef04 commit 045062e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions includes/utils/class-session-transaction-manager.php
Original file line number Diff line number Diff line change
Expand Up @@ -230,8 +230,8 @@ public function pop_transaction_id( $payload, $input, $unfiltered_input, $contex

// Throw if transaction ID not on top.
if ( $this->transaction_id !== $transaction_queue[0]['transaction_id'] ) {
$this->save_transaction_queue( null );
$this->transaction_id = null;
$this->save_transaction_queue( [] );
$this->transaction_id = null;
throw new UserError( __( 'Woo session transaction executed out of order', 'wp-graphql-woocommerce' ) );
} else {

Expand Down

0 comments on commit 045062e

Please sign in to comment.