Browse Source

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

Henry 4 years ago
parent
commit
5d7181fe1d
1 changed files with 1 additions and 2 deletions
  1. 1 2
      application/common/library/Email.php

+ 1 - 2
application/common/library/Email.php

@@ -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) {