Skip to content

Commit a3082d4

Browse files
authored
fix: Update AwsException constructor to accept Throwable instead of Exception
1 parent 702b995 commit a3082d4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Exception/AwsException.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,13 +42,13 @@ class AwsException extends \RuntimeException implements
4242
* @param string $message Exception message
4343
* @param CommandInterface $command
4444
* @param array $context Exception context
45-
* @param \Exception $previous Previous exception (if any)
45+
* @param \Throwable $previous Previous exception (if any)
4646
*/
4747
public function __construct(
4848
$message,
4949
CommandInterface $command,
5050
array $context = [],
51-
\Exception $previous = null
51+
\Throwable $previous = null
5252
) {
5353
$this->data = isset($context['body']) ? $context['body'] : [];
5454
$this->command = $command;

0 commit comments

Comments
 (0)