Skip to content

Commit

Permalink
NTR: fix composition in refunds with wrong cast
Browse files Browse the repository at this point in the history
  • Loading branch information
boxblinkracer committed Sep 22, 2023
1 parent 06cb67a commit 72c3e1b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/Hydrator/RefundHydrator.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,9 @@ public function hydrate(Refund $refund, OrderEntity $order): array
$metaData = [];

if (property_exists($refund, 'metadata')) {
$metaData = $refund->metadata;
# @phpstan-ignore-next-line
$metaData = (string)$refund->metadata;
$metaData = json_decode($metaData, true);
}

$internalDescription = null;
Expand Down

0 comments on commit 72c3e1b

Please sign in to comment.