Skip to content

Commit

Permalink
fix(dependency): fix the dependency that serialize api response (#34)
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolasalexandre9 authored Apr 19, 2022
1 parent ae2fb05 commit 69f0f74
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
"firebase/php-jwt": "^6.0",
"galbar/jsonpath": "^2.0",
"guzzlehttp/guzzle": "^7.4",
"league/fractal": "^0.20",
"league/fractal": "^0.20.1",
"league/oauth2-client": "^2.6",
"ramsey/uuid": "^4.2",
"usmanhalalit/laracsv": "^2.1"
Expand Down
2 changes: 1 addition & 1 deletion src/Serializer/JsonApiSerializer.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ class JsonApiSerializer extends FractalJsonApiSerializer
/**
* {@inheritDoc}
*/
public function item(string $resourceKey, array $data): array
public function item(?string $resourceKey, array $data): array
{
$id = $this->getIdFromData($data);

Expand Down

0 comments on commit 69f0f74

Please sign in to comment.