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