Skip to content

Commit

Permalink
Update generics
Browse files Browse the repository at this point in the history
  • Loading branch information
jenky committed Mar 10, 2024
1 parent 19c81c6 commit a378627
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/ValinorDecoder.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

/**
* @template T of object
* @implements MapperInterface<T>
* @implements MapperInterface<T|ErrorResponse>
*/
final class ValinorDecoder implements DecoderInterface, MapperInterface
{
Expand Down Expand Up @@ -44,7 +44,7 @@ public function map(ResponseInterface $response): ?object
if ($status >= 200 && $status < 300) {
return $this->mapper->map($this->signature, $this->decode($response));
} else {
return ErrorResponse::fromResponse($response); // @phpstan-ignore-line
return ErrorResponse::fromResponse($response);
}
}

Expand Down

0 comments on commit a378627

Please sign in to comment.