Skip to content

Commit a8072da

Browse files
Github issue 34380: Added "int" type when get param from request.
1 parent 302f6c5 commit a8072da

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/code/Magento/Checkout/Controller/Sidebar/UpdateItemQty.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ public function __construct(
6666
public function execute()
6767
{
6868
$itemId = (int)$this->getRequest()->getParam('item_id');
69-
$itemQty = $this->getRequest()->getParam('item_qty') * 1;
69+
$itemQty = (int)$this->getRequest()->getParam('item_qty') * 1;
7070
$itemQty = $this->quantityProcessor->prepareQuantity($itemQty);
7171

7272
try {

0 commit comments

Comments
 (0)