From 045062e4ab00a610a47e1ae7e5d65589262ab4c2 Mon Sep 17 00:00:00 2001 From: Geoff Taylor Date: Wed, 8 May 2024 17:59:59 -0400 Subject: [PATCH] chore: Linter and PHPStan compliance met --- includes/utils/class-session-transaction-manager.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 {