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
1919 */
2020 private $ precursors = [];
2121
22- /**
23- * @var array
24- */
25- private $ errors = [];
26-
2722 /**
2823 * @param array $precursors
2924 */
@@ -33,19 +28,18 @@ public function __construct(array $precursors)
3328 }
3429
3530 /**
36- * @inheirtdoc
31+ * @inheritdoc
3732 */
3833 public function process (array $ cartItemData , ContextInterface $ context ): array
3934 {
4035 foreach ($ this ->precursors as $ precursor ) {
4136 $ cartItemData = $ precursor ->process ($ cartItemData , $ context );
42- array_merge ($ this ->errors , $ precursor ->getErrors ());
4337 }
4438 return $ cartItemData ;
4539 }
4640
4741 /**
48- * @inheirtdoc
42+ * @inheritdoc
4943 */
5044 public function getErrors (): array
5145 {
Original file line number Diff line number Diff line change @@ -19,8 +19,9 @@ interface PrecursorInterface extends ItemDataProcessorInterface
1919 /**
2020 * Preprocess cart items for Graphql request.
2121 *
22- * @param ContextInterface $context
2322 * @param array $cartItemData
23+ * @param ContextInterface $context
24+ *
2425 * @return array
2526 */
2627 public function process (array $ cartItemData , ContextInterface $ context ): array ;
You can’t perform that action at this time.
0 commit comments