From a4e24332be2719b1d4179a826466374e3eaa4def Mon Sep 17 00:00:00 2001 From: Guy Sartorelli Date: Tue, 13 Aug 2024 11:43:11 +1200 Subject: [PATCH] MNT Ignore phpstan error we can't fix --- code/Model/Recipient/EmailRecipient.php | 1 + 1 file changed, 1 insertion(+) diff --git a/code/Model/Recipient/EmailRecipient.php b/code/Model/Recipient/EmailRecipient.php index 0923a076..c5b9ee7e 100644 --- a/code/Model/Recipient/EmailRecipient.php +++ b/code/Model/Recipient/EmailRecipient.php @@ -575,6 +575,7 @@ public function validate() 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"