diff --git a/src/Exception/AwsException.php b/src/Exception/AwsException.php index 05b7b955f0..878610f6ff 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;