Skip to content

UpsertResourceListResponse::current(): Return value must be of type array, null returned #296

Description

@himanshulahare

Getting a Type Error, when using upsertList and pushing more than one product and iterating the response.
The same was working when I was using client version 9, and facing this when updated to 11.4.0

$response = $this->pimApiClient->getProductUuidApi()->upsertList($products);

foreach ($response as $item) { dump($item); }

--
TypeError: Akeneo\Pim\ApiClient\Stream\UpsertResourceListResponse::current(): Return value must be of type array, null returned at D:\Akeneo\sample-apps\samples\start-app\php-symfony\vendor\akeneo\api-php-client\src\Stream\UpsertResourceListResponse.php:38 at Akeneo\Pim\ApiClient\Stream\UpsertResourceListResponse->current()

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions