Skip to content

Commit

Permalink
Revert changes to ApiClient
Browse files Browse the repository at this point in the history
  • Loading branch information
mpysiak committed Oct 25, 2024
1 parent 52c6913 commit 405c30c
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions src/Sylius/Behat/Client/ApiPlatformClient.php
Original file line number Diff line number Diff line change
Expand Up @@ -183,13 +183,7 @@ public function buildUpdateRequest(string $uri, ?string $id = null): self
$this->getToken(),
);

try {
$content = json_decode($response->getContent(), true, 512, JSON_THROW_ON_ERROR);
} catch (\Exception ) {
$content = [];
}

$this->request->setContent($content);
$this->request->setContent(json_decode($response->getContent(), true));

return $this;
}
Expand Down

0 comments on commit 405c30c

Please sign in to comment.