From 7980200bb9df83eb7585fde8375dcb17b038aef9 Mon Sep 17 00:00:00 2001 From: Pablo Kila <88161921+pablokila@users.noreply.github.com> Date: Wed, 19 Jun 2024 14:15:46 -0300 Subject: [PATCH] fix: php 8.2 deprecation warning (#2792) --- src/Credentials/Credentials.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Credentials/Credentials.php b/src/Credentials/Credentials.php index de8964e8c7..fc11c3cd66 100644 --- a/src/Credentials/Credentials.php +++ b/src/Credentials/Credentials.php @@ -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; }