Skip to content

Commit

Permalink
fix: meta info is not merged
Browse files Browse the repository at this point in the history
Meta info is now correctly merged with transformer meta info
  • Loading branch information
Mohammad-Alavi committed Jun 4, 2023
1 parent 155eb4c commit 756bb37
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Traits/ResponseTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,10 +41,10 @@ public function transform(
}

// add specific meta information to the response message
$this->metaData = [
$this->metaData = array_merge($this->metaData, [
'include' => $transformer->getAvailableIncludes(),
'custom' => $meta,
];
]);

// no resource key was set
if (!$resourceKey) {
Expand Down

0 comments on commit 756bb37

Please sign in to comment.