diff --git a/src/ZugferdProfileResolver.php b/src/ZugferdProfileResolver.php index d653d89..8b965fc 100644 --- a/src/ZugferdProfileResolver.php +++ b/src/ZugferdProfileResolver.php @@ -46,6 +46,7 @@ public static function resolve(string $xmlContent): array } catch (Throwable $e) { throw new ZugferdUnknownXmlContentException(); } finally { + libxml_clear_errors(); libxml_use_internal_errors($prevUseInternalErrors); }