You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Trying out the newly released version 9.2.0 I encountered an unexpected issue when running composer install on a Laravel project where I don't have a MAIL_FROM_ADDRESS environment variable, even if I have a mail key in my config [ based on previous merged pull requests ].
I found out that in the NotificationMailSenderConfig file on line 18 :
There is a $data['from']['address'] instead of probably $data['address']. Basically because this is the MailSenderConfig so it doesn't have to go through the from key.
Furthermore, when I was looking for the location where NotificationMailSenderConfig::fromArray is called, in NotificationMailConfig.php on line 33:
it was already passing the $data['from'] array as first parameter.
Should I suggest a PR to simply remove the ['from'] characters from NotificationMailSenderConfig ?
The reason why this has not been identified before is probably because every Laravel project has a MAIL_FROM_ADDRESS variable within its environment file.
The text was updated successfully, but these errors were encountered:
Trying out the newly released version
9.2.0
I encountered an unexpected issue when runningcomposer install
on a Laravel project where I don't have aMAIL_FROM_ADDRESS
environment variable, even if I have amail
key in my config [ based on previous merged pull requests ].I found out that in the
NotificationMailSenderConfig
file on line18
:There is a
$data['from']['address']
instead of probably$data['address']
. Basically because this is the MailSenderConfig so it doesn't have to go through thefrom
key.Furthermore, when I was looking for the location where
NotificationMailSenderConfig::fromArray
is called, inNotificationMailConfig.php
on line33
:it was already passing the
$data['from']
array as first parameter.Should I suggest a PR to simply remove the
['from']
characters fromNotificationMailSenderConfig
?The reason why this has not been identified before is probably because every Laravel project has a
MAIL_FROM_ADDRESS
variable within its environment file.The text was updated successfully, but these errors were encountered: