Skip to content

Commit

Permalink
Merge pull request #63 from youvo/fix-jsonapi-parse
Browse files Browse the repository at this point in the history
Fix JSON:API parsing
  • Loading branch information
simonbaese authored Dec 16, 2024
2 parents d6cb793 + e63592e commit a9b055a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion patches/jsonapi_include/custom-improve-typing.patch
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ diff --git a/src/JsonapiParse.php b/src/JsonapiParse.php
- $this->parseJsonContent($response);
+ public function parse(Response $response): Response {
+ $content = Json::decode($response->getContent() ?: []);
+ $this->parseJsonContent($content);
+ $content = $this->parseJsonContent($content);
+ $response->setContent(Json::encode($content));
return $response;
}
Expand Down

0 comments on commit a9b055a

Please sign in to comment.