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 @@ -65,7 +65,7 @@ class DOMElement extends DOMNode
6565}
6666
6767/**
68- * @template-covariant TNode as DOMNode
68+ * @template-covariant TNode as DOMNameSpaceNode| DOMNode
6969 * @implements IteratorAggregate<int, TNode>
7070 */
7171class DOMNodeList implements IteratorAggregate, Countable
@@ -79,19 +79,6 @@ class DOMNodeList implements IteratorAggregate, Countable
7979
8080}
8181
82- class DOMXPath
83- {
84-
85- /**
86- * @param string $expression
87- * @param DOMNode|null $contextNode
88- * @param boolean $registerNodeNS
89- * @return DOMNodeList<DOMNode>|false
90- */
91- public function query($expression, $contextNode, $registerNodeNS) {}
92-
93- }
94-
9582class DOMAttr extends DOMNode
9683{
9784
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