We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d32e5b1 commit ffb337aCopy full SHA for ffb337a
app/code/Magento/CatalogInventoryGraphQl/Model/StockItemService.php
@@ -50,8 +50,9 @@ public function __construct(
50
*
51
* @param Product|null $product
52
* @return Item|null
53
+ * @throws LocalizedException
54
*/
- public function getStockItem(?Product $product)
55
+ public function getStockItem(?Product $product): ?Item
56
{
57
if (!isset($product)) {
58
throw new LocalizedException(__('"model" value should be specified'));
0 commit comments