DOMNode childNodes expecting a DOMNodeList of DomNode instead of DOMNode #8576
Labels
bug
easy problems
Issues that can be fixed without background knowledge of Psalm
Help wanted
internal stubs/callmap
If you loop through each of the items in a
childNodes
list asDOMNode
, like in the following code:Psalm will return the following error:
This is happening on
v4.8.1
due to wrong casing on the PropertiesMap fordomnode
that should beDOMNodeList<DOMNode>
instead ofDomNodeList<DomNode>
.This is the commit that introduced the bug: #5403
I also tried to replicate the issue using psalm.dev but was unable to: https://psalm.dev/r/0957fc5f47
Maybe it depends on the case sensitivity of the system running psalm.
The text was updated successfully, but these errors were encountered: