Skip to content

Commit

Permalink
BaseResponse: ItemList must be called by process() method for hydrate…
Browse files Browse the repository at this point in the history
… all object types.
  • Loading branch information
janbarasek authored Jul 13, 2020
1 parent 8cb3acf commit 10bc3ad
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Response/BaseResponse.php
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ private function process($haystack, array $trackedInstanceHashes = [])
];
}
if ($haystack instanceof ItemsList) {
return $haystack->getData();
return $this->process($haystack->getData(), $trackedInstanceHashes);
}
if (\method_exists($haystack, '__toString') === true) {
return (string) $haystack;
Expand Down

0 comments on commit 10bc3ad

Please sign in to comment.