Skip to content

Commit

Permalink
Fixed #70 #69 PHP warning
Browse files Browse the repository at this point in the history
$payment cannot be optional.
  • Loading branch information
tom-mollie authored Dec 21, 2016
1 parent 1178ed2 commit f0b9cbe
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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()){
Expand Down

0 comments on commit f0b9cbe

Please sign in to comment.