File tree Expand file tree Collapse file tree 3 files changed +4
-4
lines changed
lib/internal/Magento/Framework/Mail Expand file tree Collapse file tree 3 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -68,8 +68,8 @@ public function convertMany(array $addresses): array
68
68
69
69
if (!is_string ($ key )) {
70
70
throw new InvalidArgumentException (
71
- __ (
72
- 'Invalid key type in provided addresses array ("%1 ") ' ,
71
+ sprintf (
72
+ 'Invalid key type in provided addresses array ("%s ") ' ,
73
73
(is_object ($ key ) ? get_class ($ key ) : var_export ($ key , 1 ))
74
74
)
75
75
);
Original file line number Diff line number Diff line change @@ -80,7 +80,7 @@ public function __construct(
80
80
$ this ->message ->setSender ($ sender ->getEmail (), $ sender ->getName ());
81
81
}
82
82
if (count ($ to ) < 1 ) {
83
- throw new InvalidArgumentException (__ ( 'Email message must have at list one addressee ' ) );
83
+ throw new InvalidArgumentException ('Email message must have at list one addressee ' );
84
84
}
85
85
if ($ to ) {
86
86
$ this ->message ->setTo ($ this ->convertAddressArrayToAddressList ($ to ));
Original file line number Diff line number Diff line change @@ -58,7 +58,7 @@ public function __construct(
58
58
try {
59
59
$ this ->mimePart = new ZendMimePart ($ content );
60
60
} catch (\Exception $ e ) {
61
- throw new InvalidArgumentException (__ ( $ e ->getMessage () ));
61
+ throw new InvalidArgumentException ($ e ->getMessage ());
62
62
}
63
63
$ this ->mimePart ->setType ($ type );
64
64
$ this ->mimePart ->setEncoding ($ encoding );
You can’t perform that action at this time.
0 commit comments