mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-05 09:41:40 +09:00
Fix incorrect use of $this when calling static method
This commit is contained in:
parent
5af392f09c
commit
ada6a81d29
1 changed files with 2 additions and 2 deletions
|
|
@ -73,7 +73,7 @@ class Ncloud_Mailer extends Base implements \Rhymix\Framework\Drivers\MailInterf
|
|||
* @param string $secret_key
|
||||
* @return string
|
||||
*/
|
||||
protected static function _makeSignature($timestamp, $access_key, $secret_key)
|
||||
protected static function _makeSignature($timestamp, $access_key, $secret_key): string
|
||||
{
|
||||
$method = 'POST';
|
||||
$uri = '/api/v1/mails';
|
||||
|
|
@ -149,7 +149,7 @@ class Ncloud_Mailer extends Base implements \Rhymix\Framework\Drivers\MailInterf
|
|||
|
||||
// Generate the NAVER cloud gateway signature.
|
||||
$timestamp = floor(microtime(true) * 1000);
|
||||
$signature = $this::_makeSignature($timestamp, $this->_config['api_key'], $this->_config['api_secret']);
|
||||
$signature = self::_makeSignature($timestamp, $this->_config['api_key'], $this->_config['api_secret']);
|
||||
$headers = array(
|
||||
'x-ncp-apigw-timestamp' => $timestamp,
|
||||
'x-ncp-iam-access-key' => $this->_config['api_key'],
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue