Skip to content

Conversation

@Furgas
Copy link
Contributor

@Furgas Furgas commented Apr 8, 2022

SimpleXMLElement::getDocNamespaces can return false on invalid XML.

$xml = @new SimpleXMLElement('X', 1);
var_dump($xml->getDocNamespaces());

https://3v4l.org/GL12U

@ondrejmirtes ondrejmirtes merged commit 63cf02c into phpstan:1.5.x Apr 8, 2022
@ondrejmirtes
Copy link
Member

Thank you!

@Furgas Furgas deleted the fix-getdocnamespaces branch April 8, 2022 13:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants