we are getting the exception "DOMDocument::loadXML(): Empty string supplied as input" (see https://ibb.co/2tySFhG) when using importStyles with 'replace' as second parameter and even the most simple word document (newly created MS Word with only 1 Word and a style applied).
It works when the 'merge' param is used instead of 'replace'.
It works when using phpdocx version 9.5, but fails in 10.0.
$docx = new CreateDocx(); $docx->importStyles(resource_path('word/simple.docx'), 'replace'); $docx->createDocx('Output');
Seems to be a bug?