Skip to content

Commit

Permalink
Fix for deprecation warning on strtr()
Browse files Browse the repository at this point in the history
  • Loading branch information
lux committed Jan 26, 2024
1 parent 01a65c9 commit 2d74973
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/vendor/Zend/Mail.php
Original file line number Diff line number Diff line change
Expand Up @@ -1213,7 +1213,7 @@ protected function _filterEmail($email)
'>' => '',
);

return strtr($email, $rule);
return strtr($email ?? '', $rule);
}

/**
Expand All @@ -1232,7 +1232,7 @@ protected function _filterName($name)
'>' => ']',
);

return trim(strtr($name, $rule));
return trim(strtr($name ?? '', $rule));
}

/**
Expand All @@ -1248,7 +1248,7 @@ protected function _filterOther($data)
"\t" => '',
);

return strtr($data, $rule);
return strtr($data ?? '', $rule);
}

/**
Expand Down

0 comments on commit 2d74973

Please sign in to comment.