Skip to content

Commit dbe06e6

Browse files
committed
Pass the previous exception.
1 parent b998532 commit dbe06e6

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

src/Exceptions/DhlParcelException.php

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,16 +34,15 @@ public function __construct(string $message = '', int $code = 0, ResponseInterfa
3434
* Create a new DhlParcelException instance from the given Guzzle request exception.
3535
*
3636
* @param \GuzzleHttp\Exception\RequestException $exception
37-
* @param \Throwable|null $previous
3837
* @return static
3938
*/
40-
public static function createFromGuzzleRequestException(RequestException $exception, Throwable $previous = null)
39+
public static function createFromGuzzleRequestException(RequestException $exception)
4140
{
4241
return new static(
4342
$exception->getMessage(),
4443
$exception->getCode(),
4544
$exception->getResponse(),
46-
$previous
45+
$exception
4746
);
4847
}
4948

0 commit comments

Comments
 (0)