Skip to content

Commit 82063f3

Browse files
author
Yu Tang
committed
MAGETWO-33581: Refactor modules to remove usage of Tax module builders
- Passed interface name to populateWithArray method
1 parent c201d8a commit 82063f3

File tree

1 file changed

+5
-1
lines changed
  • app/code/Magento/GoogleShopping/Model/Attribute

1 file changed

+5
-1
lines changed

app/code/Magento/GoogleShopping/Model/Attribute/Tax.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,11 @@ public function convertAttribute($product, $entry)
213213
];
214214

215215
$quoteDetailsObject = $this->_quoteDetailsFactory->create();
216-
$this->dataObjectHelper->populateWithArray($quoteDetailsObject, $quoteDetailsDataArray);
216+
$this->dataObjectHelper->populateWithArray(
217+
$quoteDetailsObject,
218+
$quoteDetailsDataArray,
219+
'\Magento\Tax\Api\Data\QuoteDetailsInterface'
220+
);
217221

218222
$taxDetails = $this->_taxCalculationService
219223
->calculateTax($quoteDetailsObject, $product->getStoreId());

0 commit comments

Comments
 (0)