Skip to content

Commit 249f6bf

Browse files
RachanaRachana
authored andcommitted
BUG#AC-6666:array merge static test failure fixed
1 parent b43e1ef commit 249f6bf

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

app/code/Magento/CatalogGraphQl/Model/Resolver/Product/ProductFieldsSelector.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -53,9 +53,9 @@ public function getProductFieldsFromInfo(ResolveInfo $info, string $productNodeN
5353
continue;
5454
}
5555
$queryFields = $this->attributesJoiner->getQueryFields($node, $info);
56-
$fieldNames = array_merge($fieldNames, $queryFields);
56+
$fieldNames[] = $queryFields;
5757
}
58-
59-
return $fieldNames;
58+
$fieldNames = array_merge(...$fieldNames);
59+
return $fieldNames;
6060
}
6161
}

0 commit comments

Comments
 (0)