From d668a391a750a065afb5e3212d6b11d13822a29d Mon Sep 17 00:00:00 2001 From: Dominik Meyer Date: Sun, 21 Apr 2024 11:37:23 +0200 Subject: [PATCH] highlight some deprecations. --- src/Stock/Handler.php | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/src/Stock/Handler.php b/src/Stock/Handler.php index 56edb61..e0db5f6 100644 --- a/src/Stock/Handler.php +++ b/src/Stock/Handler.php @@ -34,7 +34,17 @@ public function downloadStockList(string $filePath, array $filter = []): bool } /** - * @param StockUpdate[] $stockArray + * @deprecated Don´t use this method, will be removed in next major release. + */ + public function updateStockFromStockList(string $filePath): string + { + return $this->client->getRestClient()->postXMLFile($filePath, 'articles/stock'); + } + + /** + * Don´t use Stock[] anymore as object-array, support will be removed in next major release. + * + * @param Stock[]|StockUpdate[] $stockArray */ public function updateStock(array $stockArray): string {