Skip to content

Commit 01a9c58

Browse files
committed
ACP2E-1172: categoryList Graphql request show 0 product count
1 parent 3d55a04 commit 01a9c58

File tree

1 file changed

+3
-2
lines changed
  • app/code/Magento/CatalogGraphQl/Model/Resolver/Products/DataProvider

1 file changed

+3
-2
lines changed

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

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99

1010
use Exception;
1111
use GraphQL\Language\AST\FieldNode;
12-
1312
use GraphQL\Language\AST\NodeKind;
1413
use Iterator;
1514
use Magento\Catalog\Api\Data\CategoryInterface;
@@ -29,13 +28,15 @@
2928

3029
/**
3130
* Category tree data provider
31+
*
32+
* @SuppressWarnings(PHPMD.CouplingBetweenObjects)
3233
*/
3334
class CategoryTree
3435
{
3536
/**
3637
* In depth we need to calculate only children nodes, so the first wrapped node should be ignored
3738
*/
38-
const DEPTH_OFFSET = 1;
39+
private const DEPTH_OFFSET = 1;
3940

4041
/**
4142
* @var CollectionFactory

0 commit comments

Comments
 (0)