Skip to content

Commit

Permalink
MNT Ignore phpstan error we can't fix (#1316)
Browse files Browse the repository at this point in the history
  • Loading branch information
GuySartorelli authored Aug 13, 2024
1 parent da53d26 commit 659e181
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions code/Model/Recipient/EmailRecipient.php
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 659e181

Please sign in to comment.