Skip to content

Commit

Permalink
fix: php 8.2 deprecation warning
Browse files Browse the repository at this point in the history
  • Loading branch information
pablokila committed Oct 10, 2023
1 parent 6616677 commit c582ee3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Credentials/Credentials.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ class Credentials implements CredentialsInterface, \Serializable
*/
public function __construct($key, $secret, $token = null, $expires = null)
{
$this->key = trim($key);
$this->secret = trim($secret);
$this->key = trim((string) $key);
$this->secret = trim((string) $secret);
$this->token = $token;
$this->expires = $expires;
}
Expand Down

0 comments on commit c582ee3

Please sign in to comment.