Detect profile only if the given profile is "autodetect".
Why ?
Avoid validation wrong profiles with a valid XML. For example :
If we have a valid XML file with the "basicwl" profil, this call will return true checkFacturxXsd($validXml, 'wrongprofile').
Thanks for all your contributions @mahdiabderraouf, I was busy and forgot to check merge request in this repo
Next time i'll try to be faster ! :smile:
What's changed
"autodetect"
.Why ?
Avoid validation wrong profiles with a valid XML. For example : If we have a valid XML file with the
"basicwl"
profil, this call will return truecheckFacturxXsd($validXml, 'wrongprofile')
.