From f0b9cbe643d07751587127d9f49e6cf17ad0f92b Mon Sep 17 00:00:00 2001 From: tom-mollie Date: Wed, 21 Dec 2016 13:52:48 +0100 Subject: [PATCH] Fixed #70 #69 PHP warning $payment cannot be optional. --- .../includes/mollie/wc/gateway/abstract.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mollie-payments-for-woocommerce/includes/mollie/wc/gateway/abstract.php b/mollie-payments-for-woocommerce/includes/mollie/wc/gateway/abstract.php index 0a3734c3c..4f6943b9d 100644 --- a/mollie-payments-for-woocommerce/includes/mollie/wc/gateway/abstract.php +++ b/mollie-payments-for-woocommerce/includes/mollie/wc/gateway/abstract.php @@ -665,10 +665,10 @@ protected function onWebhookPaid(Wc_Order $order, Mollie_API_Object_Payment $pay } /** - * @param null $payment + * @param $payment * @return string */ - protected function getPaymentMethodTitle($payment = null) + protected function getPaymentMethodTitle($payment) { $paymentMethodTitle = ''; if ($payment->method == $this->getMollieMethodId()){