Skip to content

Commit

Permalink
Request could return empty body
Browse files Browse the repository at this point in the history
  • Loading branch information
mabar committed Aug 7, 2018
1 parent 49ccbbc commit ff3c92c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Mapping/Request/BasicEntity.php
Expand Up @@ -72,7 +72,7 @@ protected function normalize(string $property, $value)

protected function fromBodyRequest(ApiRequest $request): self
{
return $this->factory($request->getJsonBody(true));
return $this->factory((array) $request->getJsonBody(true));
}

protected function fromGetRequest(ApiRequest $request): self
Expand Down

0 comments on commit ff3c92c

Please sign in to comment.