A long time user here.
Email notifications (to the person who generates invoices) for new invoices have started failing after the latest patch update. The invoice recipient receives 3 copies of the same invoice (hinting that there is some weird retry going on)
The stacktrace points to app/Jobs/SendNotificationEmail.php and Line 26.
I am using PHP 7.3 and MariaDB 10.3.32 (Ubuntu 20.04)
I checked the recent commits and that file seems to have some changes. Just for kicks, I changed the following lines (basically reverted some of the changes in the recent commit)
--- a/app/Jobs/SendNotificationEmail.php
+++ b/app/Jobs/SendNotificationEmail.php
@@ -23,12 +23,12 @@ class SendNotificationEmail extends Job implements ShouldQueue
/**
* @var User
*/
- public User $user;
+ public $user;
/**
* @var Invoice
*/
- public Invoice $invoice;
+ public $invoice;
/**
* @var string
@@ -38,7 +38,7 @@ class SendNotificationEmail extends Job implements ShouldQueue
/**
* @var Payment
*/
- public ?Payment $payment;
+ public $payment;
/**
* @var string
Now, it seems to work. Can someone see if this is a bug or some issue in my environment?
Thanks!
Amit