|
10 | 10 | use Magento\Catalog\Api\Data\ProductInterface; |
11 | 11 | use Magento\Catalog\Api\ProductRepositoryInterface; |
12 | 12 | use Magento\Framework\Api\SearchCriteriaBuilder; |
13 | | -use Magento\Framework\App\ObjectManager; |
14 | 13 | use Magento\Sales\Api\Data\OrderInterface; |
15 | 14 | use Magento\Sales\Api\Data\OrderItemInterface; |
16 | 15 | use Magento\Sales\Api\OrderItemRepositoryInterface; |
@@ -68,22 +67,22 @@ class DataProvider |
68 | 67 | * @param OrderRepositoryInterface $orderRepository |
69 | 68 | * @param SearchCriteriaBuilder $searchCriteriaBuilder |
70 | 69 | * @param OptionsProcessor $optionsProcessor |
71 | | - * @param TaxHelper|null $taxHelper |
| 70 | + * @param TaxHelper $taxHelper |
72 | 71 | */ |
73 | 72 | public function __construct( |
74 | 73 | OrderItemRepositoryInterface $orderItemRepository, |
75 | 74 | ProductRepositoryInterface $productRepository, |
76 | 75 | OrderRepositoryInterface $orderRepository, |
77 | 76 | SearchCriteriaBuilder $searchCriteriaBuilder, |
78 | 77 | OptionsProcessor $optionsProcessor, |
79 | | - ?TaxHelper $taxHelper = null |
| 78 | + TaxHelper $taxHelper |
80 | 79 | ) { |
81 | 80 | $this->orderItemRepository = $orderItemRepository; |
82 | 81 | $this->productRepository = $productRepository; |
83 | 82 | $this->orderRepository = $orderRepository; |
84 | 83 | $this->searchCriteriaBuilder = $searchCriteriaBuilder; |
85 | 84 | $this->optionsProcessor = $optionsProcessor; |
86 | | - $this->taxHelper = $taxHelper ?? ObjectManager::getInstance()->get(TaxHelper::class); |
| 85 | + $this->taxHelper = $taxHelper; |
87 | 86 | } |
88 | 87 |
|
89 | 88 | /** |
|
0 commit comments