It seems like $from can also be of type array<string,string>; however, parameter $addresses of Symfony\Component\Mime\Email::from() does only seem to accept Symfony\Component\Mime\Address|string, maybe add an additional type check?
(
Ignorable by Annotation
)
If this is a false-positive, you can also ignore this issue in your code via the ignore-type annotation
It seems like $to can also be of type array<string,string>; however, parameter $addresses of Symfony\Component\Mime\Email::to() does only seem to accept Symfony\Component\Mime\Address|string, maybe add an additional type check?
(
Ignorable by Annotation
)
If this is a false-positive, you can also ignore this issue in your code via the ignore-type annotation