<?php libxml_clear_errors(): void
<?php public function validate(): array { libxml_use_internal_errors(true); libxml_clear_errors(); $writer = new InvoicesDocWriter(); $xml = $writer->asXML(new InvoicesDoc($this));