We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ed21fb6 commit 2d273ebCopy full SHA for 2d273eb
app/code/Magento/Elasticsearch/Model/Indexer/IndexerHandler.php
@@ -146,9 +146,9 @@ private function updateCacheContext(array $docs) : void
146
$categoryIds = [];
147
foreach ($docs as $document) {
148
if (is_array($document['category_ids'])) {
149
- array_push($categoryIds, ...$document['category_ids']);
150
- } elseif (!empty($document['category_ids'])) {
151
- array_push($categoryIds, $document['category_ids']);
+ foreach ($document['category_ids'] as $id) {
+ $categoryIds[] = $id;
+ }
152
}
153
154
if (!empty($categoryIds)) {
0 commit comments