Skip to content

Commit 6bfbd70

Browse files
committed
Corrected error based on from key reached two times in NotificationMailSenderConfig while no from key should exist
1 parent 2c4a942 commit 6bfbd70

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Config/NotificationMailSenderConfig.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ protected function __construct(
1515
/** @param array<mixed> $data */
1616
public static function fromArray(array $data): self
1717
{
18-
$address = $data['from']['address'] ?? config('mail.from.address');
18+
$address = $data['address'] ?? config('mail.from.address');
1919

2020
if ($address === null) {
2121
throw InvalidConfig::missingSender();
@@ -27,7 +27,7 @@ public static function fromArray(array $data): self
2727

2828
return new self(
2929
address: $address,
30-
name: $data['from']['name'] ?? config('mail.from.name'),
30+
name: $data['name'] ?? config('mail.from.name'),
3131
);
3232
}
3333
}

0 commit comments

Comments
 (0)