Skip to content

Commit abed95d

Browse files
authored
Merge pull request #11 from resslinger/patch-1
fix stock handler to avoid type error
2 parents 4c6a146 + 12c4b0a commit abed95d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/Stock/Handler.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ public function updateStock(array $stockArray): string
4646
foreach ($stockArray as $stock) {
4747
$writer->startElement('ARTICLE');
4848
$writer->writeElement('A_NR', $stock->getArticleNumber());
49-
$writer->writeElement('A_STOCK', $stock->getStock());
49+
$writer->writeElement('A_STOCK', (string)$stock->getStock());
5050
$writer->endElement();
5151
}
5252

0 commit comments

Comments
 (0)