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 = [];