Visman 2 年之前
父节点
当前提交
eddb710952
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      app/Core/Mail.php

+ 2 - 2
app/Core/Mail.php

@@ -24,7 +24,7 @@ class Mail
     protected array $to = [];
     protected array $headers = [];
     protected string $message;
-    protected array $smtp;
+    protected ?array $smtp = null;
     protected string $EOL;
     protected $connect;
     protected int $auth = 0;
@@ -145,7 +145,7 @@ class Mail
             'Content-Type'              => 'text/plain; charset=UTF-8',
             'X-Mailer'                  => 'ForkBB Mailer',
         ];
-        $this->message = null;
+        $this->message = '';
 
         return $this;
     }