File tree 3 files changed +4
-4
lines changed
3 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 26
26
],
27
27
"minimum-stability" : " stable" ,
28
28
"require" : {
29
+ "php" : " ^7.4||^8.1" ,
30
+ "ext-dom" : " *" ,
29
31
"php" : " >=8.1" ,
30
32
"ext-mbstring" : " *" ,
31
33
"ext-dom" : " *" ,
Original file line number Diff line number Diff line change 219
219
->setSignature ($ signature );// Signature
220
220
221
221
// Generator Invoice
222
- $ generatorXml = new GeneratorInvoice ();
223
- $ outputXML = $ generatorXml ->invoice ($ invoice );
222
+ $ outputXML = GeneratorInvoice::invoice ($ invoice )->getXML ();
224
223
// Load the XML into a DOMDocument
225
224
$ dom = new DOMDocument ('1.0 ' , 'UTF-8 ' );
226
225
$ dom ->preserveWhiteSpace = false ;
Original file line number Diff line number Diff line change @@ -191,8 +191,7 @@ public function testInvoiceXmlGeneration(): void
191
191
->setSignature ($ signature );
192
192
193
193
// Generate invoice XML
194
- $ generatorXml = new GeneratorInvoice ();
195
- $ outputXML = $ generatorXml ->invoice ($ invoice );
194
+ $ outputXML = GeneratorInvoice::invoice ($ invoice )->getXML ();
196
195
197
196
// Assert that XML is generated
198
197
$ this ->assertNotEmpty ($ outputXML , 'XML output should not be empty. ' );
You can’t perform that action at this time.
0 commit comments