diff --git a/Classes/Service/BaseEmailService.php b/Classes/Service/BaseEmailService.php index 7ffb572..6c91709 100644 --- a/Classes/Service/BaseEmailService.php +++ b/Classes/Service/BaseEmailService.php @@ -64,8 +64,8 @@ public function sendEmail(array $mailTo, array $mailFrom, string $subject, array $message = $this->createMailMessage() ->subject($subject) - ->to(new Address(key($mailTo), current($mailTo) || '')) - ->from(new Address(key($mailFrom), current($mailFrom) || '')); + ->to(new Address(key($mailTo), current($mailTo) ?? '')) + ->from(new Address(key($mailFrom), current($mailFrom) ?? '')); // @extensionScannerIgnoreLine return $this->send($message, $variables, $templateFile);