Skip to content

Commit afa25bd

Browse files
committed
Merge branch 'YP-1493__details_dynnamics_fields' into 'main'
YP 1493 details dynamic fields See merge request ypmn-public/php-api-client!14
2 parents 229d8d3 + 4f250e6 commit afa25bd

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)