Skip to content

Commit

Permalink
fix: php 8.2 deprecation warning (#2792)
Browse files Browse the repository at this point in the history
  • Loading branch information
pablokila authored Jun 19, 2024
1 parent fd1261a commit 7980200
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 @@ -27,8 +27,8 @@ class Credentials extends AwsCredentialIdentity implements
*/
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 7980200

Please sign in to comment.