Skip to content
This repository has been archived by the owner on Apr 30, 2024. It is now read-only.

Commit

Permalink
Improve types
Browse files Browse the repository at this point in the history
  • Loading branch information
apfelbox committed Jun 14, 2023
1 parent 64b8c26 commit 10f6c6f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Api/PrismicApi.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
use Symfony\Contracts\HttpClient\Exception\HttpExceptionInterface;
use Symfony\Contracts\HttpClient\Exception\TransportExceptionInterface;
use Symfony\Contracts\HttpClient\HttpClientInterface;
use Symfony\Contracts\HttpClient\ResponseInterface;
use Torr\PrismicApi\Api\Url\PrismicApiUrlBuilder;
use Torr\PrismicApi\Data\Document;
use Torr\PrismicApi\Data\Environment;
Expand Down Expand Up @@ -247,6 +248,7 @@ private function performRequest (callable $requestCallable, array $debugParamete
try
{
$response = $requestCallable();
\assert($response instanceof ResponseInterface);

return "" !== $response->getContent()
? $response->toArray()
Expand Down

0 comments on commit 10f6c6f

Please sign in to comment.