Skip to content

Commit

Permalink
highlight some deprecations.
Browse files Browse the repository at this point in the history
  • Loading branch information
Dominik Meyer authored and Dominik Meyer committed Apr 21, 2024
1 parent c2d177d commit d668a39
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion src/Stock/Handler.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
{
Expand Down

0 comments on commit d668a39

Please sign in to comment.