Skip to content

Commit 9459ed6

Browse files
committed
MAGETWO-96408: [2.3.x] [Magento Cloud] Error when saving Bundle product with a Scheduled Update
- Fixed type hinting
1 parent df27ac3 commit 9459ed6

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

app/code/Magento/Bundle/Model/Product/SaveHandler.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -158,14 +158,14 @@ private function getOptionIds(array $options): array
158158
/**
159159
* Removes old options that no longer exists.
160160
*
161-
* @param \Magento\Catalog\Api\Data\ProductInterface|object $entity
161+
* @param ProductInterface $entity
162162
* @param array $existingOptionsIds
163163
* @param array $optionIds
164164
* @return void
165165
*/
166-
private function processRemovedOptions(object $entity, array $existingOptionsIds, array $optionIds): void
166+
private function processRemovedOptions(ProductInterface $entity, array $existingOptionsIds, array $optionIds): void
167167
{
168-
$metadata = $this->metadataPool->getMetadata(\Magento\Catalog\Api\Data\ProductInterface::class);
168+
$metadata = $this->metadataPool->getMetadata(ProductInterface::class);
169169
$parentId = $entity->getData($metadata->getLinkField());
170170
foreach (array_diff($existingOptionsIds, $optionIds) as $optionId) {
171171
$option = $this->optionRepository->get($entity->getSku(), $optionId);

0 commit comments

Comments
 (0)