Skip to content

Commit 7199dfe

Browse files
removed return types
1 parent 677ddce commit 7199dfe

File tree

1 file changed

+8
-7
lines changed

1 file changed

+8
-7
lines changed

app/code/Magento/CatalogInventory/Model/StockState.php

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ public function __construct(
5151
* @param int $scopeId
5252
* @return bool
5353
*/
54-
public function verifyStock($productId, $scopeId = null): bool
54+
public function verifyStock($productId, $scopeId = null)
5555
{
5656
$scopeId = $this->stockConfiguration->getDefaultScopeId();
5757
$stockItem = $this->stockRegistryProvider->getStockItem($productId, $scopeId);
@@ -64,7 +64,7 @@ public function verifyStock($productId, $scopeId = null): bool
6464
* @param int $scopeId
6565
* @return bool
6666
*/
67-
public function verifyNotification($productId, $scopeId = null): bool
67+
public function verifyNotification($productId, $scopeId = null)
6868
{
6969
$scopeId = $this->stockConfiguration->getDefaultScopeId();
7070
$stockItem = $this->stockRegistryProvider->getStockItem($productId, $scopeId);
@@ -78,9 +78,10 @@ public function verifyNotification($productId, $scopeId = null): bool
7878
* @param int $productId
7979
* @param float $qty
8080
* @param int $scopeId
81+
* @exception \Magento\Framework\Exception\LocalizedException
8182
* @return bool
8283
*/
83-
public function checkQty($productId, $qty, $scopeId = null): bool
84+
public function checkQty($productId, $qty, $scopeId = null)
8485
{
8586
$scopeId = $this->stockConfiguration->getDefaultScopeId();
8687
$stockItem = $this->stockRegistryProvider->getStockItem($productId, $scopeId);
@@ -97,7 +98,7 @@ public function checkQty($productId, $qty, $scopeId = null): bool
9798
* @param int $scopeId
9899
* @return float
99100
*/
100-
public function suggestQty($productId, $qty, $scopeId = null): float
101+
public function suggestQty($productId, $qty, $scopeId = null)
101102
{
102103
$scopeId = $this->stockConfiguration->getDefaultScopeId();
103104
$stockItem = $this->stockRegistryProvider->getStockItem($productId, $scopeId);
@@ -112,7 +113,7 @@ public function suggestQty($productId, $qty, $scopeId = null): float
112113
* @param int $scopeId
113114
* @return float
114115
*/
115-
public function getStockQty($productId, $scopeId = null): float
116+
public function getStockQty($productId, $scopeId = null)
116117
{
117118
$scopeId = $this->stockConfiguration->getDefaultScopeId();
118119
$stockItem = $this->stockRegistryProvider->getStockItem($productId, $scopeId);
@@ -126,7 +127,7 @@ public function getStockQty($productId, $scopeId = null): float
126127
* @param int $websiteId
127128
* @return DataObject
128129
*/
129-
public function checkQtyIncrements($productId, $qty, $websiteId = null): DataObject
130+
public function checkQtyIncrements($productId, $qty, $websiteId = null)
130131
{
131132
$websiteId = $this->stockConfiguration->getDefaultScopeId();
132133
$stockItem = $this->stockRegistryProvider->getStockItem($productId, $websiteId);
@@ -142,7 +143,7 @@ public function checkQtyIncrements($productId, $qty, $websiteId = null): DataObj
142143
* @param int $scopeId
143144
* @return int
144145
*/
145-
public function checkQuoteItemQty($productId, $itemQty, $qtyToCheck, $origQty, $scopeId = null): int
146+
public function checkQuoteItemQty($productId, $itemQty, $qtyToCheck, $origQty, $scopeId = null)
146147
{
147148
$scopeId = $this->stockConfiguration->getDefaultScopeId();
148149
$stockItem = $this->stockRegistryProvider->getStockItem($productId, $scopeId);

0 commit comments

Comments
 (0)