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 dfcac0c commit 8038f6eCopy full SHA for 8038f6e
app/code/Magento/CatalogGraphQl/Model/Resolver/Products/DataProvider/ExtractDataFromCategoryTree.php
@@ -86,13 +86,12 @@ private function mergeCategoriesTrees(array &$tree1, array &$tree2): array
86
/**
87
* Recursive method to generate tree for one category path
88
*
89
- * @param $pathElements
90
- * @param $index
+ * @param array $pathElements
+ * @param int $index
91
* @return array
92
*/
93
- private function explodePathToArray($pathElements, $index): array
+ private function explodePathToArray(array $pathElements, int $index): array
94
{
95
-
96
$tree = [];
97
$tree[$pathElements[$index]]['id'] = $pathElements[$index];
98
if ($index === count($pathElements) - 1) {
0 commit comments