I am trying to add a PHP file as attachement to my UBL document.
$pdfInvoice = new \SplFileInfo('/tmp/test.pdf');
$additionalDocumentReference = new AdditionalDocumentReference();
$additionalDocumentReference->setFilename('test.pdf');
$additionalDocumentReference->setAttachment($pdfInvoice);
This however gives me the following error
The writer cannot serialize objects of class: SplFileInfo
Which made me wonder, what type of input is expected for an attachement?
I am trying to add a PHP file as attachement to my UBL document.
This however gives me the following error
Which made me wonder, what type of input is expected for an attachement?