File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
app/code/Magento/Bundle/Model/Product Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -158,14 +158,14 @@ private function getOptionIds(array $options): array
158
158
/**
159
159
* Removes old options that no longer exists.
160
160
*
161
- * @param \Magento\Catalog\Api\Data\ ProductInterface|object $entity
161
+ * @param ProductInterface $entity
162
162
* @param array $existingOptionsIds
163
163
* @param array $optionIds
164
164
* @return void
165
165
*/
166
- private function processRemovedOptions (object $ entity , array $ existingOptionsIds , array $ optionIds ): void
166
+ private function processRemovedOptions (ProductInterface $ entity , array $ existingOptionsIds , array $ optionIds ): void
167
167
{
168
- $ metadata = $ this ->metadataPool ->getMetadata (\ Magento \ Catalog \ Api \ Data \ ProductInterface::class);
168
+ $ metadata = $ this ->metadataPool ->getMetadata (ProductInterface::class);
169
169
$ parentId = $ entity ->getData ($ metadata ->getLinkField ());
170
170
foreach (array_diff ($ existingOptionsIds , $ optionIds ) as $ optionId ) {
171
171
$ option = $ this ->optionRepository ->get ($ entity ->getSku (), $ optionId );
You can’t perform that action at this time.
0 commit comments