Visman 2 năm trước cách đây
mục cha
commit
eddb710952
1 tập tin đã thay đổi với 2 bổ sung2 xóa
  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;
     }