Skip to content

Commit

Permalink
Refactor typealias and exception in Response
Browse files Browse the repository at this point in the history
  • Loading branch information
jenky committed Jan 14, 2024
1 parent a0e7b14 commit ea82f9f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/Response.php
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ public function serverError(): bool
/**
* Execute the given callback if there was a server or client error.
*
* @return Response<T>
* @return self<T>
*/
public function onError(callable $callback): self
{
Expand Down Expand Up @@ -235,7 +235,7 @@ public function toException(): ?HttpException
/**
* Throw an exception if a server or client error occurred.
*
* @return Response<T>
* @return self<T>
*
* @throws \Fansipan\Exception\HttpException
*/
Expand Down Expand Up @@ -264,9 +264,9 @@ public function throw(): self
* Throw an exception if a server or client error occurred and the given condition evaluates to true.
*
* @param \Closure|bool $condition
* @return Response<T>
* @return self<T>
*
* @throws \Fansipan\Exception\HttpException
* @throws HttpException
*/
public function throwIf($condition): self
{
Expand Down

0 comments on commit ea82f9f

Please sign in to comment.