Skip to content

Commit

Permalink
MSI: Merge mainline
Browse files Browse the repository at this point in the history
-- fix types
  • Loading branch information
Valeriy Nayda committed Dec 8, 2017
1 parent cd75aa9 commit 0787add
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/code/Magento/Inventory/Model/Source/Command/Save.php
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ public function execute(SourceInterface $source): int

try {
$this->sourceResource->save($source);
return $source->getSourceId();
return (int)$source->getSourceId();
} catch (\Exception $e) {
$this->logger->error($e->getMessage());
throw new CouldNotSaveException(__('Could not save Source'), $e);
Expand Down
2 changes: 1 addition & 1 deletion app/code/Magento/Inventory/Model/Stock/Command/Save.php
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ public function execute(StockInterface $stock): int

try {
$this->stockResource->save($stock);
return $stock->getStockId();
return (int)$stock->getStockId();
} catch (\Exception $e) {
$this->logger->error($e->getMessage());
throw new CouldNotSaveException(__('Could not save Stock'), $e);
Expand Down

0 comments on commit 0787add

Please sign in to comment.