-
Fix document reference elements being written in the wrong order, producing XML that fails UBL schema validation
- UBL declares these elements in an
xsd:sequence, and the required order differs per document type - On an
Invoice,cac:ContractDocumentReferencewas written beforecac:DespatchDocumentReferenceandcac:OriginatorDocumentReferenceaftercac:AdditionalDocumentReference - A
CreditNoteand aDebitNoteinherit the same serializer but require a different order again - Any document combining a contract reference with a despatch, receipt or additional reference was affected
- UBL declares these elements in an
-
Fix TypeError: Change setter types to nullable in reference classes to handle empty XML elements gracefully during parsing
OrderReference::setId()now accepts?stringProjectReference::setId()now accepts?stringContractDocumentReference::setId()now accepts?stringInvoiceDocumentReference::setOriginalInvoiceId()now accepts?string
- Update dependency constraints to support Doctrine Collections 3.x