Skip to content

Commit c289f5d

Browse files
author
Aliaksei Yakimovich2
committed
MAGETWO-70232: [GITHUB] Import customizable options adds it to another product if same SKU is filled#9457
- code refactoring;
1 parent 61f9a74 commit c289f5d

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

app/code/Magento/Catalog/Model/Product/Option/SaveHandler.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33
* Copyright © Magento, Inc. All rights reserved.
44
* See COPYING.txt for license details.
55
*/
6+
declare(strict_types=1);
7+
68
namespace Magento\Catalog\Model\Product\Option;
79

810
use Magento\Catalog\Api\ProductCustomOptionRepositoryInterface as OptionRepository;
@@ -71,7 +73,7 @@ public function execute($entity, $arguments = [])
7173
* @param bool $hasChangedSku
7274
* @param string $newSku
7375
*/
74-
private function processOptionsSaving($options, $hasChangedSku, $newSku)
76+
private function processOptionsSaving(array $options, bool $hasChangedSku, string $newSku)
7577
{
7678
foreach ($options as $option) {
7779
if ($hasChangedSku && $option->hasData('product_sku')) {

0 commit comments

Comments
 (0)