File tree Expand file tree Collapse file tree 2 files changed +4
-9
lines changed
app/code/Magento/QuoteGraphQl/Model/CartItem Expand file tree Collapse file tree 2 files changed +4
-9
lines changed Original file line number Diff line number Diff line change @@ -19,11 +19,6 @@ class PrecursorComposite implements PrecursorInterface
19
19
*/
20
20
private $ precursors = [];
21
21
22
- /**
23
- * @var array
24
- */
25
- private $ errors = [];
26
-
27
22
/**
28
23
* @param array $precursors
29
24
*/
@@ -33,19 +28,18 @@ public function __construct(array $precursors)
33
28
}
34
29
35
30
/**
36
- * @inheirtdoc
31
+ * @inheritdoc
37
32
*/
38
33
public function process (array $ cartItemData , ContextInterface $ context ): array
39
34
{
40
35
foreach ($ this ->precursors as $ precursor ) {
41
36
$ cartItemData = $ precursor ->process ($ cartItemData , $ context );
42
- array_merge ($ this ->errors , $ precursor ->getErrors ());
43
37
}
44
38
return $ cartItemData ;
45
39
}
46
40
47
41
/**
48
- * @inheirtdoc
42
+ * @inheritdoc
49
43
*/
50
44
public function getErrors (): array
51
45
{
Original file line number Diff line number Diff line change @@ -19,8 +19,9 @@ interface PrecursorInterface extends ItemDataProcessorInterface
19
19
/**
20
20
* Preprocess cart items for Graphql request.
21
21
*
22
- * @param ContextInterface $context
23
22
* @param array $cartItemData
23
+ * @param ContextInterface $context
24
+ *
24
25
* @return array
25
26
*/
26
27
public function process (array $ cartItemData , ContextInterface $ context ): array ;
You can’t perform that action at this time.
0 commit comments