Skip to content

Commit 3d7a5d1

Browse files
committed
GraphQL-256: [BugFix] Configurable products > Variants > Attributes are empty
-- fix static tests
1 parent cda1eff commit 3d7a5d1

File tree

2 files changed

+11
-3
lines changed

2 files changed

+11
-3
lines changed

app/code/Magento/ConfigurableProductGraphQl/Model/Resolver/ConfigurableVariant.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -71,9 +71,7 @@ public function __construct(
7171
}
7272

7373
/**
74-
* Fetch and format configurable variants.
75-
*
76-
* {@inheritDoc}
74+
* @inheritdoc
7775
*/
7876
public function resolve(Field $field, $context, ResolveInfo $info, array $value = null, array $args = null)
7977
{

app/code/Magento/ConfigurableProductGraphQl/Model/Resolver/Variant/Attributes.php

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@
77

88
namespace Magento\ConfigurableProductGraphQl\Model\Resolver\Variant;
99

10+
use Magento\Framework\GraphQl\Query\Resolver\ContextInterface;
11+
use Magento\Framework\GraphQl\Query\Resolver\Value;
1012
use Magento\Framework\GraphQl\Schema\Type\ResolveInfo;
1113
use Magento\Framework\GraphQl\Config\Element\Field;
1214
use Magento\Framework\GraphQl\Query\ResolverInterface;
@@ -20,6 +22,14 @@ class Attributes implements ResolverInterface
2022
* Format product's option data to conform to GraphQL schema
2123
*
2224
* {@inheritdoc}
25+
*
26+
* @param Field $field
27+
* @param ContextInterface $context
28+
* @param ResolveInfo $info
29+
* @param array|null $value
30+
* @param array|null $args
31+
* @throws \Exception
32+
* @return mixed|Value
2333
*/
2434
public function resolve(
2535
Field $field,

0 commit comments

Comments
 (0)