Closed mahdiabderraouf closed 2 years ago
the method checkFacturxXsd returns true for any wrong profile if the given XML is valid.
checkFacturxXsd
true
call the method checkFacturxXsd with a wrong profil and a valid XML.
$facturx = new Facturx(); $isXSDValid = $facturx->checkFacturxXsd($validXml, 'anywrongprofile'); echo (string) $isXSDValid; // "true"
Detect profil automaticly only if the given profil is "autodetect". A pull-request has been created for the give solution.
"autodetect"
Pull request merged Thanks
Bug description
the method
checkFacturxXsd
returnstrue
for any wrong profile if the given XML is valid.How to reproduce ?
call the method
checkFacturxXsd
with a wrong profil and a valid XML.Solution
Detect profil automaticly only if the given profil is
"autodetect"
. A pull-request has been created for the give solution.