Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion app/code/LiqpayMagento/LiqPay/Helper/Data.php
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ public function getTestOrderSurfix()
));
}

public function getLiqPayDescription(\Magento\Sales\Api\Data\OrderInterface $order = null)
public function getLiqPayDescription(?\Magento\Sales\Api\Data\OrderInterface $order = null)
{
$description = trim($this->scopeConfig->getValue(
self::XML_PATH_DESCRIPTION,
Expand Down
4 changes: 2 additions & 2 deletions app/code/LiqpayMagento/LiqPay/Model/Payment.php
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ public function capture(\Magento\Payment\Model\InfoInterface $payment, $amount)
}
}

public function isAvailable(\Magento\Quote\Api\Data\CartInterface $quote = null)
public function isAvailable(?\Magento\Quote\Api\Data\CartInterface $quote = null)
{
if (!$this->_liqPay->getHelper()->isEnabled()) {
return false;
Expand All @@ -104,4 +104,4 @@ public function isAvailable(\Magento\Quote\Api\Data\CartInterface $quote = null)
}
return parent::isAvailable($quote);
}
}
}