Skip to content

Commit 1a8127f

Browse files
committed
Fix signature of wrap()
1 parent cd8fdca commit 1a8127f

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/Exceptions/ExceptionWithContext.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ public function getContext() : array;
1717

1818
/**
1919
* @param Throwable $throwable
20-
* @return static
20+
* @return ExceptionWithContext
2121
*/
22-
public static function wrap(Throwable $throwable) : self;
22+
public static function wrap(Throwable $throwable) : ExceptionWithContext;
2323
}

src/Exceptions/WebRequestException.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,9 +77,9 @@ public function setContext(array $context) : self
7777

7878
/**
7979
* @param Throwable $throwable
80-
* @return static
80+
* @return ExceptionWithContext
8181
*/
82-
public static function wrap(Throwable $throwable) : self
82+
public static function wrap(Throwable $throwable) : ExceptionWithContext
8383
{
8484
return new static($throwable->getMessage(), $throwable->getCode(), $throwable);
8585
}

0 commit comments

Comments
 (0)