Skip to content

Commit cbb93f1

Browse files
committed
Allow \Throwable $previous everywhere
1 parent 680a30d commit cbb93f1

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Exception/HttpTransportException.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ class HttpTransportException extends TransportException
2020
{
2121
private $response;
2222

23-
public function __construct(string $message = null, ResponseInterface $response, int $code = 0, \Exception $previous = null)
23+
public function __construct(string $message = null, ResponseInterface $response, int $code = 0, \Throwable $previous = null)
2424
{
2525
parent::__construct($message, $code, $previous);
2626

HttpTransportException.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ class HttpTransportException extends TransportException
2020
{
2121
private $response;
2222

23-
public function __construct(string $message = null, ResponseInterface $response, int $code = 0, \Exception $previous = null)
23+
public function __construct(string $message = null, ResponseInterface $response, int $code = 0, \Throwable $previous = null)
2424
{
2525
parent::__construct($message, $code, $previous);
2626

0 commit comments

Comments
 (0)