Release 2.27 (#5212)
This commit is contained in:
@@ -11,13 +11,13 @@ namespace App\Configuration;
|
||||
|
||||
final class MailConfiguration
|
||||
{
|
||||
public function __construct(private string $mailFrom)
|
||||
public function __construct(private readonly string $mailFrom)
|
||||
{
|
||||
}
|
||||
|
||||
public function getFromAddress(): ?string
|
||||
{
|
||||
if (empty($this->mailFrom)) {
|
||||
if (trim($this->mailFrom) === '') {
|
||||
return null;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user