Skip to content

Commit 4f250e6

Browse files
committed
YP 1493 details dynamic fields
1 parent b2890bd commit 4f250e6

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/Details.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ public function toArray(): array
112112
$array += [
113113
'receipts' => json_decode($this->getReceipts())
114114
];
115-
} else {
115+
} elseif(!empty($this->getReceipts())) {
116116
$array += ['receipts' => []];
117117
/** @var SubmerchantReceipt[] $receipts */
118118
$receipts = $this->getReceipts();

0 commit comments

Comments
 (0)