Skip to content

Commit

Permalink
CI commit
Browse files Browse the repository at this point in the history
  • Loading branch information
Afosto committed Apr 19, 2021
1 parent 0185b49 commit d303708
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/Client.php
Original file line number Diff line number Diff line change
Expand Up @@ -8474,7 +8474,7 @@ public function generateDateFilter(\Afosto\Sdk\Model\CntRelativeDate $body, stri
* @throws \Afosto\Sdk\Exception\ListChannelsInternalServerErrorException
* @throws \Afosto\Sdk\Exception\ListChannelsServiceUnavailableException
*
* @return \Afosto\Sdk\Model\CatChannel|\Psr\Http\Message\ResponseInterface|null
* @return \Afosto\Sdk\Model\CatChannel[]|\Psr\Http\Message\ResponseInterface|null
*/
public function listChannels(array $queryParameters = [], string $fetch = self::FETCH_OBJECT)
{
Expand Down
4 changes: 2 additions & 2 deletions src/Endpoint/ListChannels.php
Original file line number Diff line number Diff line change
Expand Up @@ -68,12 +68,12 @@ protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver
* @throws \Afosto\Sdk\Exception\ListChannelsInternalServerErrorException
* @throws \Afosto\Sdk\Exception\ListChannelsServiceUnavailableException
*
* @return \Afosto\Sdk\Model\CatChannel|null
* @return \Afosto\Sdk\Model\CatChannel[]|null
*/
protected function transformResponseBody(string $body, int $status, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType)
{
if (200 === $status) {
return $serializer->deserialize($body, 'Afosto\\Sdk\\Model\\CatChannel', 'json');
return $serializer->deserialize($body, 'Afosto\\Sdk\\Model\\CatChannel[]', 'json');
}
if (400 === $status) {
throw new \Afosto\Sdk\Exception\ListChannelsBadRequestException($serializer->deserialize($body, 'Afosto\\Sdk\\Model\\Error', 'json'));
Expand Down

0 comments on commit d303708

Please sign in to comment.