<?php libxml_use_internal_errors(?bool $use_errors = null): bool
<?php public function validate(): array { libxml_use_internal_errors(true); libxml_clear_errors(); $writer = new InvoicesDocWriter();