diff --git a/includes/utils/class-session-transaction-manager.php b/includes/utils/class-session-transaction-manager.php index ff0373ef..6fed1571 100644 --- a/includes/utils/class-session-transaction-manager.php +++ b/includes/utils/class-session-transaction-manager.php @@ -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 {