Skip to content

Commit

Permalink
Queue: fix type
Browse files Browse the repository at this point in the history
  • Loading branch information
h4kuna committed Nov 13, 2023
1 parent 90d1518 commit fd4da75
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Utils/Queue.php
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ private function detectDownloadResponse(ResponseInterface $response): void
/* @var $contentTypeHeaders array */
$contentTypeHeaders = $response->getHeader('Content-Type');
$contentType = array_shift($contentTypeHeaders);
if (str_contains($contentType, 'text/xml')) {
if ($contentType !== null && str_contains($contentType, 'text/xml')) {
$xmlResponse = $this->createXmlResponse($response);

throw new Exceptions\ServiceUnavailable($xmlResponse->status(), $xmlResponse->code());
Expand Down

0 comments on commit fd4da75

Please sign in to comment.