mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-07 02:31:40 +09:00
Replce array_first_key() with array_key_first(), etc.
This commit is contained in:
parent
1c92b1baf5
commit
4193edde25
7 changed files with 12 additions and 12 deletions
|
|
@ -585,7 +585,7 @@ class Mail
|
|||
// Reset Message-ID in case send() is called multiple times.
|
||||
$random = substr(hash('sha256', mt_rand() . microtime() . getmypid()), 0, 32);
|
||||
$sender = $this->message->getFrom();
|
||||
$sender_email = strval(array_first_key($sender));
|
||||
$sender_email = strval(array_key_first($sender));
|
||||
$id = $random . '@' . (preg_match('/^(.+)@([^@]+)$/', $sender_email, $matches) ? $matches[2] : 'swift.generated');
|
||||
$this->message->getHeaders()->get('Message-ID')->setId($id);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue