From a86f53e471639dd53af45f83c38d0364d2b7ba9a Mon Sep 17 00:00:00 2001 From: Remco Tolsma <869674+remcotolsma@users.noreply.github.com> Date: Tue, 26 Mar 2024 12:21:06 +0100 Subject: [PATCH] Fix "The method parameter $payment_id is never used". --- src/Gateway.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Gateway.php b/src/Gateway.php index 23ce186..f280f75 100644 --- a/src/Gateway.php +++ b/src/Gateway.php @@ -643,12 +643,12 @@ public function process_purchase( $purchase_data ) { * Get payment transaction ID * * @link https://github.com/easydigitaldownloads/Easy-Digital-Downloads/blob/2.3/includes/payments/functions.php#L1378-L1398 - * * @param string $payment_id Payment ID. - * * @return null */ public function get_payment_transaction_id( $payment_id ) { - return null; + $payment_id = null; + + return $payment_id; } }