Incorrect handling of redeclared default namespace
sibprogrammer opened this issue · 0 comments
sibprogrammer commented
STR
Input:
<?xml version="1.0"?>
<psalm xmlns="https://getpsalm.org/schema/config" name="Psalm for Psalm">
<stubs>
<file name="stubs/phpparser.phpstub"/>
</stubs>
</psalm>
Actual Result
<?xml version="1.0"?>
<https://getpsalm.org/schema/config:psalm xmlns="https://getpsalm.org/schema/config" name="Psalm for Psalm">
<https://getpsalm.org/schema/config:stubs>
<https://getpsalm.org/schema/config:file name="stubs/phpparser.phpstub"/>
</https://getpsalm.org/schema/config:stubs>
</https://getpsalm.org/schema/config:psalm>
Expected Result
<?xml version="1.0"?>
<psalm xmlns="https://getpsalm.org/schema/config" name="Psalm for Psalm">
<stubs>
<file name="stubs/phpparser.phpstub"/>
</stubs>
</psalm>