diff --git a/src/Hydrator/RefundHydrator.php b/src/Hydrator/RefundHydrator.php index 1c1088887..20ce941ad 100644 --- a/src/Hydrator/RefundHydrator.php +++ b/src/Hydrator/RefundHydrator.php @@ -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;