From a3082d49389d8867d11c5abf86a019b388e302f6 Mon Sep 17 00:00:00 2001 From: Luoyy <10894778+zishang520@users.noreply.github.com> Date: Mon, 26 Aug 2024 16:29:18 +0800 Subject: [PATCH] fix: Update AwsException constructor to accept Throwable instead of Exception --- src/Exception/AwsException.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Exception/AwsException.php b/src/Exception/AwsException.php index 2873d29a35..fd31bebac3 100644 --- a/src/Exception/AwsException.php +++ b/src/Exception/AwsException.php @@ -42,13 +42,13 @@ class AwsException extends \RuntimeException implements * @param string $message Exception message * @param CommandInterface $command * @param array $context Exception context - * @param \Exception $previous Previous exception (if any) + * @param \Throwable $previous Previous exception (if any) */ public function __construct( $message, CommandInterface $command, array $context = [], - \Exception $previous = null + \Throwable $previous = null ) { $this->data = isset($context['body']) ? $context['body'] : []; $this->command = $command;