Skip to content

Commit 3791c37

Browse files
author
Oleksandr Iegorov
committed
MAGETWO-99930: Configuarable product stock status stays 'In Stock'
1 parent 4b0014c commit 3791c37

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

app/code/Magento/CatalogInventory/Observer/SaveInventoryDataObserver.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
use Magento\CatalogInventory\Api\StockRegistryInterface;
1414
use Magento\CatalogInventory\Model\StockItemValidator;
1515
use Magento\Framework\Event\Observer as EventObserver;
16+
use Magento\ConfigurableProduct\Model\Inventory\ParentItemProcessor;
1617

1718
/**
1819
* Saves stock data from a product to the Stock Item
@@ -40,7 +41,7 @@ class SaveInventoryDataObserver implements ObserverInterface
4041
private $stockItemValidator;
4142

4243
/**
43-
* @var array
44+
* @var ParentItemProcessor[]
4445
*/
4546
private $parentItemProcessorPool;
4647

0 commit comments

Comments
 (0)