Skip to content

Commit 1d622d4

Browse files
committed
Merge branch '139-show-only-active-categories' of github.com:comwrap/graphql-ce into 139-show-only-active-categories
2 parents cd8b01b + 8038f6e commit 1d622d4

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

app/code/Magento/CatalogGraphQl/Model/Resolver/Products/DataProvider/ExtractDataFromCategoryTree.php

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -92,13 +92,12 @@ private function mergeCategoriesTrees(array &$tree1, array &$tree2): array
9292
/**
9393
* Recursive method to generate tree for one category path
9494
*
95-
* @param $pathElements
96-
* @param $index
95+
* @param array $pathElements
96+
* @param int $index
9797
* @return array
9898
*/
99-
private function explodePathToArray($pathElements, $index): array
99+
private function explodePathToArray(array $pathElements, int $index): array
100100
{
101-
102101
$tree = [];
103102
$tree[$pathElements[$index]]['id'] = $pathElements[$index];
104103
if ($index === count($pathElements) - 1) {

0 commit comments

Comments
 (0)