mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-21 04:09:55 +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
|
|
@ -108,7 +108,7 @@ class SendGrid extends Base implements \Rhymix\Framework\Drivers\MailInterface
|
|||
$from = $message->message->getFrom();
|
||||
if ($from)
|
||||
{
|
||||
$data['from']['email'] = array_first_key($from);
|
||||
$data['from']['email'] = array_key_first($from);
|
||||
if (array_first($from))
|
||||
{
|
||||
$data['from']['name'] = array_first($from);
|
||||
|
|
@ -119,7 +119,7 @@ class SendGrid extends Base implements \Rhymix\Framework\Drivers\MailInterface
|
|||
$replyTo = $message->message->getReplyTo();
|
||||
if ($replyTo)
|
||||
{
|
||||
$data['reply_to']['email'] = array_first_key($from);
|
||||
$data['reply_to']['email'] = array_key_first($from);
|
||||
}
|
||||
|
||||
// Set the subject.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue