Skip to content

Commit

Permalink
Merge pull request #96 from m1n0/fixed-meta-in-arrays
Browse files Browse the repository at this point in the history
Fixed meta in arrays
  • Loading branch information
nilportugues authored Oct 25, 2017
2 parents e7ab074 + d411a0b commit fd86f75
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/JsonApiTransformer.php
Original file line number Diff line number Diff line change
Expand Up @@ -236,6 +236,7 @@ protected function serializedArray(array $value)
$this->setResponseLinks($value, $data);
$this->setResponseMeta($data);
$this->setResponseVersion($data);
$this->setResponseMeta($data);

return (empty($data['data'])) ? array_merge(['data' => []], $data) : $data;
}
Expand Down

0 comments on commit fd86f75

Please sign in to comment.