移除to方法从未使用的$name变量

pull/286/head
Henry 2021-03-02 13:45:19 +08:00
parent 5ab531e0ec
commit 5d7181fe1d
1 changed files with 1 additions and 2 deletions

View File

@ -96,10 +96,9 @@ class Email
/**
* 设置收件人
* @param mixed $email 收件人,多个收件人以,进行分隔
* @param string $name 收件人名称
* @return $this
*/
public function to($email, $name = '')
public function to($email)
{
$emailArr = $this->buildAddress($email);
foreach ($emailArr as $address => $name) {