querySelectorAll should return an array of Elements, not Nodes
g105b opened this issue · 0 comments
g105b commented
I'm not sure if this is accurate on MDN, but currently foreach($element->querySelectorAll("whatever") as $item)
shows $item
as a Node
rather than an Element
, so a lot of functionality is not being suggested by the IDE.
Maybe this can be solved by just type-hinting more accurately?