mirror of
https://github.com/silverstripe/silverstripe-userforms.git
synced 2024-10-22 17:05:42 +02:00
MNT Ignore phpstan error we can't fix (#1316)
This commit is contained in:
parent
da53d26b54
commit
659e181702
@ -575,6 +575,7 @@ class EmailRecipient extends DataObject
|
|||||||
foreach ($addresses as $address) {
|
foreach ($addresses as $address) {
|
||||||
$trimAddress = trim($address ?? '');
|
$trimAddress = trim($address ?? '');
|
||||||
if ($trimAddress && !Email::is_valid_address($trimAddress)) {
|
if ($trimAddress && !Email::is_valid_address($trimAddress)) {
|
||||||
|
/** @phpstan-ignore translation.key (can't simplify the key without lots of duplicated code) */
|
||||||
$error = _t(
|
$error = _t(
|
||||||
__CLASS__.".$translation",
|
__CLASS__.".$translation",
|
||||||
"Invalid email address $trimAddress"
|
"Invalid email address $trimAddress"
|
||||||
|
Loading…
Reference in New Issue
Block a user