7
7
namespace Magento \Sales \Model \Order \Pdf ;
8
8
9
9
use Magento \Framework \App \Config \ScopeConfigInterface ;
10
+ use Magento \Framework \Exception \FileSystemException ;
10
11
use Magento \Framework \Filesystem ;
11
12
use Magento \Framework \Filesystem \Directory \ReadInterface ;
12
13
use Magento \Framework \Filesystem \Directory \WriteInterface ;
@@ -163,16 +164,17 @@ abstract public function getPdf();
163
164
* @param ScopeConfigInterface $scopeConfig
164
165
* @param Filesystem $filesystem
165
166
* @param Config $pdfConfig
166
- * @param Total\ Factory $pdfTotalFactory
167
+ * @param Factory $pdfTotalFactory
167
168
* @param ItemsFactory $pdfItemsFactory
168
169
* @param TimezoneInterface $localeDate
169
170
* @param StateInterface $inlineTranslation
170
171
* @param Renderer $addressRenderer
171
- * @param TaxHelper $taxHelper
172
172
* @param array $data
173
- * @param Database $fileStorageDatabase
173
+ * @param TaxHelper|null $taxHelper
174
+ * @param Database|null $fileStorageDatabase
174
175
* @param RtlTextHandler|null $rtlTextHandler
175
- * @param Image $image
176
+ * @param Image|null $image
177
+ * @throws FileSystemException
176
178
* @SuppressWarnings(PHPMD.ExcessiveParameterList)
177
179
*/
178
180
public function __construct (
@@ -186,8 +188,8 @@ public function __construct(
186
188
TimezoneInterface $ localeDate ,
187
189
StateInterface $ inlineTranslation ,
188
190
Renderer $ addressRenderer ,
189
- TaxHelper $ taxHelper ,
190
191
array $ data = [],
192
+ ?TaxHelper $ taxHelper = null ,
191
193
Database $ fileStorageDatabase = null ,
192
194
?RtlTextHandler $ rtlTextHandler = null ,
193
195
?Image $ image = null
0 commit comments