diff --git a/src/Api/PrismicApi.php b/src/Api/PrismicApi.php index 57dc2da..cedb74a 100644 --- a/src/Api/PrismicApi.php +++ b/src/Api/PrismicApi.php @@ -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; @@ -247,6 +248,7 @@ private function performRequest (callable $requestCallable, array $debugParamete try { $response = $requestCallable(); + \assert($response instanceof ResponseInterface); return "" !== $response->getContent() ? $response->toArray()