More PHP8.4 updates

This commit is contained in:
James Cole
2025-05-04 13:47:00 +02:00
parent e42107c03c
commit 51e86448c7
195 changed files with 524 additions and 715 deletions

View File

@@ -38,21 +38,12 @@ class MailError extends Job implements ShouldQueue
use InteractsWithQueue;
use SerializesModels;
protected string $destination;
protected array $exception;
protected string $ipAddress;
protected array $userData;
/**
* MailError constructor.
*/
public function __construct(array $userData, string $destination, string $ipAddress, array $exceptionData)
public function __construct(protected array $userData, protected string $destination, protected string $ipAddress, protected array $exception)
{
$this->userData = $userData;
$this->destination = $destination;
$this->ipAddress = $ipAddress;
$this->exception = $exceptionData;
$debug = $exceptionData;
$debug = $this->exception;
unset($debug['stackTrace'], $debug['headers']);
app('log')->error(sprintf('Exception is: %s', \Safe\json_encode($debug)));