hasHeader('Content-Type') ? current($response->getHeader('Content-Type')) : null; return $this->transformResponseBody((string) $response->getBody(), $response->getStatusCode(), $serializer, $contentType); } }