Skip to content

Commit c3aa0a5

Browse files
committed
ACP2E-2267: The requested qty is not available message issues
-addressed static
1 parent a58fe76 commit c3aa0a5

File tree

1 file changed

+2
-2
lines changed
  • app/code/Magento/Checkout/Controller/Cart

1 file changed

+2
-2
lines changed

app/code/Magento/Checkout/Controller/Cart/Add.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@
1515
use Magento\Framework\Controller\ResultInterface;
1616
use Magento\Framework\Exception\NoSuchEntityException;
1717
use Magento\Framework\Filter\LocalizedToNormalized;
18-
use Magento\Store\Model\StoreManagerInterface;
1918

2019
/**
2120
* Controller for processing add to cart action.
@@ -53,7 +52,7 @@ public function __construct(
5352
\Magento\Framework\Data\Form\FormKey\Validator $formKeyValidator,
5453
CustomerCart $cart,
5554
ProductRepositoryInterface $productRepository,
56-
?RequestQuantityProcessor $quantityProcessor = null,
55+
?RequestQuantityProcessor $quantityProcessor = null
5756
) {
5857
parent::__construct(
5958
$context,
@@ -72,6 +71,7 @@ public function __construct(
7271
* Initialize product instance from request data
7372
*
7473
* @return \Magento\Catalog\Model\Product|false
74+
* @throws NoSuchEntityException
7575
*/
7676
protected function _initProduct()
7777
{

0 commit comments

Comments
 (0)