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?
I'm not sure if this is accurate on MDN, but currently
foreach($element->querySelectorAll("whatever") as $item)shows$itemas aNoderather than anElement, so a lot of functionality is not being suggested by the IDE.Maybe this can be solved by just type-hinting more accurately?