Skip to content
Snippets Groups Projects

Allow Payment Notes to be null

1 file
+ 3
3
Compare changes
  • Side-by-side
  • Inline
@@ -213,7 +213,7 @@ class OrderPayment extends MagentoOrder
}
/**
* @return string
* @return string|null
*/
public function getPaymentNotes(): string
{
@@ -221,10 +221,10 @@ class OrderPayment extends MagentoOrder
}
/**
* @param string $paymentNotes
* @param string|null $paymentNotes
* @return OrderPayment
*/
public function setPaymentNotes(string $paymentNotes): OrderPayment
public function setPaymentNotes(string $paymentNotes = null): OrderPayment
{
$this->paymentNotes = $paymentNotes;
return $this;
Loading