Skip to content

Commit 8d719c4

Browse files
authored
fix changelogbatchwalker using suggestion from @Quazz (#817)
1 parent b40e28a commit 8d719c4

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

app/code/Meta/Catalog/Plugin/FacebookCatalogUpdateFullReindexPlugin.php

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -110,14 +110,15 @@ public function beforeReindexAll(Indexer $subject)
110110
*/
111111
public function getChangelogBatchWalkerInstance()
112112
{
113-
if (class_exists(\Magento\Framework\Mview\View\ChangeLogBatchWalkerFactory::class)) { // @phpstan-ignore-line
114-
$changeLogWalkerFactory = $this->objectManager->create(
115-
\Magento\Framework\Mview\View\ChangeLogBatchWalkerFactory::class // @phpstan-ignore-line
116-
);
113+
$changeLogWalkerFactory = $this->objectManager->create(
114+
\Magento\Framework\Mview\View\ChangeLogBatchWalkerFactory::class // @phpstan-ignore-line
115+
);
116+
if (get_class($changeLogWalkerFactory) == "ChangeLogBatchWalkerFactory") {
117117
return $changeLogWalkerFactory->create(
118118
\Magento\Framework\Mview\View\ChangeLogBatchWalker::class // @phpstan-ignore-line
119119
);
120120
}
121+
121122
$changelogWalkerFactory = $this->objectManager->create(
122123
\Magento\Framework\Mview\View\ChangelogBatchWalkerFactory::class // @phpstan-ignore-line
123124
);

0 commit comments

Comments
 (0)