From 1bbcfdca34c293cc5da77f14c1d102a5bb9200a3 Mon Sep 17 00:00:00 2001 From: Richard Henkenjohann Date: Mon, 23 Apr 2018 15:31:21 +0200 Subject: [PATCH] Fix duplicate var name. (cherry picked from commit 33a7bdc) --- src/Util/PaymentMethod.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Util/PaymentMethod.php b/src/Util/PaymentMethod.php index fe9bac7..e9ef49b 100644 --- a/src/Util/PaymentMethod.php +++ b/src/Util/PaymentMethod.php @@ -82,15 +82,15 @@ public function __construct(IsotopePayment $payment) } /** - * @param IsotopePayment $payment + * @param IsotopePayment $paymentMethod * * @param string $redirectUrl * * @return PaymentMethod */ - public static function createForPaymentMethod(IsotopePayment $payment, string $redirectUrl): PaymentMethod + public static function createForPaymentMethod(IsotopePayment $paymentMethod, string $redirectUrl): PaymentMethod { - $payment = new self($payment); + $payment = new self($paymentMethod); $payment->redirect_url = $redirectUrl;