Skip to content

Commit ffb337a

Browse files
committed
ACP2E-3256: [GraphQl] [Feature Request] min/max qty allowed in shopping cart for products
1 parent d32e5b1 commit ffb337a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

app/code/Magento/CatalogInventoryGraphQl/Model/StockItemService.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,9 @@ public function __construct(
5050
*
5151
* @param Product|null $product
5252
* @return Item|null
53+
* @throws LocalizedException
5354
*/
54-
public function getStockItem(?Product $product)
55+
public function getStockItem(?Product $product): ?Item
5556
{
5657
if (!isset($product)) {
5758
throw new LocalizedException(__('"model" value should be specified'));

0 commit comments

Comments
 (0)