MNT Ignore phpstan error we can't fix (#1316)

This commit is contained in:
Guy Sartorelli 2024-08-13 17:01:31 +12:00 committed by GitHub
parent da53d26b54
commit 659e181702
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -575,6 +575,7 @@ class EmailRecipient extends DataObject
foreach ($addresses as $address) {
$trimAddress = trim($address ?? '');
if ($trimAddress && !Email::is_valid_address($trimAddress)) {
/** @phpstan-ignore translation.key (can't simplify the key without lots of duplicated code) */
$error = _t(
__CLASS__.".$translation",
"Invalid email address $trimAddress"