From dddab73b91a7d02f0160f71f8ad311d226ca8b3a Mon Sep 17 00:00:00 2001 From: David Bomba Date: Thu, 4 Nov 2021 20:52:03 +1100 Subject: [PATCH] Fixes for payment hash types --- app/Jobs/Mail/PaymentFailedMailer.php | 2 +- app/Mail/Admin/PaymentFailureObject.php | 2 +- app/PaymentDrivers/BaseDriver.php | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/app/Jobs/Mail/PaymentFailedMailer.php b/app/Jobs/Mail/PaymentFailedMailer.php index 9d84a7459502..87663e159b16 100644 --- a/app/Jobs/Mail/PaymentFailedMailer.php +++ b/app/Jobs/Mail/PaymentFailedMailer.php @@ -36,7 +36,7 @@ class PaymentFailedMailer implements ShouldQueue { use Dispatchable, InteractsWithQueue, Queueable, SerializesModels, UserNotifies; - public PaymentHash $payment_hash; + public ?PaymentHash $payment_hash; public string $error; diff --git a/app/Mail/Admin/PaymentFailureObject.php b/app/Mail/Admin/PaymentFailureObject.php index 9094536ed1ff..b190d4a0a5db 100644 --- a/app/Mail/Admin/PaymentFailureObject.php +++ b/app/Mail/Admin/PaymentFailureObject.php @@ -33,7 +33,7 @@ class PaymentFailureObject public $amount; - public PaymentHash $payment_hash; + public ?PaymentHash $payment_hash; // private $invoices; /** diff --git a/app/PaymentDrivers/BaseDriver.php b/app/PaymentDrivers/BaseDriver.php index 778ebc5ff6f1..9b8d2ca04a12 100644 --- a/app/PaymentDrivers/BaseDriver.php +++ b/app/PaymentDrivers/BaseDriver.php @@ -71,7 +71,7 @@ class BaseDriver extends AbstractPaymentDriver public $payment_method; /* PaymentHash */ - public PaymentHash $payment_hash; + public ?PaymentHash $payment_hash; /* Array of payment methods */ public static $methods = [];