File tree Expand file tree Collapse file tree 2 files changed +6
-2
lines changed
Catalog/Model/ResourceModel
ConfigurableProduct/Model/Plugin Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change 44 * See COPYING.txt for license details.
55 */
66
7+ declare (strict_types=1 );
78namespace Magento \Catalog \Model \ResourceModel ;
89
910use Magento \Catalog \Api \Data \ProductInterface ;
1011use Magento \Framework \App \ResourceConnection ;
1112
1213/**
1314 * Get product type ID by product ID.
14- *
1515 */
1616class GetProductTypeById
1717{
@@ -35,7 +35,7 @@ public function __construct(
3535 * @param int $productId
3636 * @return string
3737 */
38- public function execute (int $ productId )
38+ public function execute (int $ productId ): string
3939 {
4040 $ connection = $ this ->resource ->getConnection ();
4141 $ productTable = $ this ->resource ->getTableName ('catalog_product_entity ' );
Original file line number Diff line number Diff line change 44 * See COPYING.txt for license details.
55 */
66
7+ declare (strict_types=1 );
78namespace Magento \ConfigurableProduct \Model \Plugin ;
89
910use Magento \Catalog \Model \ResourceModel \GetProductTypeById ;
1011use Magento \CatalogInventory \Model \ResourceModel \Stock \Item as ItemResourceModel ;
1112use Magento \Framework \Model \AbstractModel as StockItem ;
1213use Magento \ConfigurableProduct \Model \Product \Type \Configurable ;
1314
15+ /**
16+ * Updates stock_status_changed_auto setting for configurable product when it was saved manually
17+ */
1418class UpdateStockChangedAuto
1519{
1620 /**
You can’t perform that action at this time.
0 commit comments