File tree Expand file tree Collapse file tree 2 files changed +2
-15
lines changed
tests/PHPStan/Analyser/nsrt Expand file tree Collapse file tree 2 files changed +2
-15
lines changed Original file line number Diff line number Diff line change @@ -86,7 +86,7 @@ class DOMElement extends DOMNode
8686}
8787
8888/**
89- * @template-covariant TNode as DOMNode
89+ * @template-covariant TNode as DOMNameSpaceNode| DOMNode
9090 * @implements IteratorAggregate<int, TNode>
9191 */
9292class DOMNodeList implements IteratorAggregate, Countable
@@ -100,19 +100,6 @@ class DOMNodeList implements IteratorAggregate, Countable
100100
101101}
102102
103- class DOMXPath
104- {
105-
106- /**
107- * @param string $expression
108- * @param DOMNode|null $contextNode
109- * @param boolean $registerNodeNS
110- * @return DOMNodeList<DOMNode>|false
111- */
112- public function query($expression, $contextNode, $registerNodeNS) {}
113-
114- }
115-
116103class DOMAttr extends DOMNode
117104{
118105
Original file line number Diff line number Diff line change @@ -17,6 +17,6 @@ public function iterateNodes ($list): void
1717 /** @param \DOMXPath $path */
1818 public function xPathQuery ($ path )
1919 {
20- assertType ('DOMNodeList<DOMNode>|false ' , $ path ->query ('' ));
20+ assertType ('DOMNodeList<DOMNameSpaceNode| DOMNode>|false ' , $ path ->query ('' ));
2121 }
2222}
You can’t perform that action at this time.
0 commit comments