@@ -280,10 +280,6 @@ public function prepend(...$nodes): void;
280
280
281
281
/** @param DOMNode|string $nodes */
282
282
public function replaceChildren (...$ nodes ): void ;
283
-
284
- public function querySelector (string $ selectors ): ?DOMElement {}
285
-
286
- public function querySelectorAll (string $ selectors ): DOMNodeList {}
287
283
}
288
284
289
285
interface DOMChildNode
@@ -511,12 +507,6 @@ public function prepend(...$nodes): void {}
511
507
* @implementation-alias DOMDocument::replaceChildren
512
508
*/
513
509
public function replaceChildren (...$ nodes ): void {}
514
-
515
- /** @implementation-alias DOMElement::querySelector */
516
- public function querySelector (string $ selectors ): ?DOMElement {}
517
-
518
- /** @implementation-alias DOMElement::querySelectorAll */
519
- public function querySelectorAll (string $ selectors ): DOMNodeList {}
520
510
}
521
511
522
512
class DOMNodeList implements IteratorAggregate, Countable
@@ -712,14 +702,6 @@ public function prepend(...$nodes): void {}
712
702
/** @param DOMNode|string $nodes */
713
703
public function replaceChildren (...$ nodes ): void {}
714
704
715
- /** @implementation-alias DOMElement::querySelector */
716
- public function querySelector (string $ selectors ): ?DOMElement {}
717
-
718
- /** @implementation-alias DOMElement::querySelectorAll */
719
- public function querySelectorAll (string $ selectors ): DOMNodeList {}
720
-
721
- public function matches (string $ selectors ): bool {}
722
-
723
705
public function insertAdjacentElement (string $ where , DOMElement $ element ): ?DOMElement {}
724
706
725
707
public function insertAdjacentText (string $ where , string $ data ): void {}
@@ -1132,6 +1114,9 @@ interface ParentNode
1132
1114
public function append (Node |string ...$ nodes ): void ;
1133
1115
public function prepend (Node |string ...$ nodes ): void ;
1134
1116
public function replaceChildren (Node |string ...$ nodes ): void ;
1117
+
1118
+ public function querySelector (string $ selectors ): ?Element ;
1119
+ public function querySelectorAll (string $ selectors ): NodeList ;
1135
1120
}
1136
1121
1137
1122
interface ChildNode
@@ -1391,6 +1376,10 @@ public function append(Node|string ...$nodes): void {}
1391
1376
public function prepend (Node |string ...$ nodes ): void {}
1392
1377
/** @implementation-alias DOMElement::replaceChildren */
1393
1378
public function replaceChildren (Node |string ...$ nodes ): void {}
1379
+
1380
+ public function querySelector (string $ selectors ): ?Element {}
1381
+ public function querySelectorAll (string $ selectors ): NodeList {}
1382
+ public function matches (string $ selectors ): bool {}
1394
1383
}
1395
1384
1396
1385
class Attr extends Node
@@ -1507,6 +1496,11 @@ public function append(Node|string ...$nodes): void {}
1507
1496
public function prepend (Node |string ...$ nodes ): void {}
1508
1497
/** @implementation-alias DOMElement::replaceChildren */
1509
1498
public function replaceChildren (Node |string ...$ nodes ): void {}
1499
+
1500
+ /** @implementation-alias DOM\Element::querySelector */
1501
+ public function querySelector (string $ selectors ): ?Element {}
1502
+ /** @implementation-alias DOM\Element::querySelectorAll */
1503
+ public function querySelectorAll (string $ selectors ): NodeList {}
1510
1504
}
1511
1505
1512
1506
class Entity extends Node
@@ -1602,10 +1596,10 @@ public function replaceChildren(Node|string ...$nodes): void {}
1602
1596
1603
1597
public function importLegacyNode (\DOMNode $ node , bool $ deep = false ): Node {}
1604
1598
1605
- /** @implementation-alias DOMElement ::querySelector */
1599
+ /** @implementation-alias DOM\Element ::querySelector */
1606
1600
public function querySelector (string $ selectors ): ?Element {}
1607
1601
1608
- /** @implementation-alias DOMElement ::querySelectorAll */
1602
+ /** @implementation-alias DOM\Element ::querySelectorAll */
1609
1603
public function querySelectorAll (string $ selectors ): NodeList {}
1610
1604
}
1611
1605
0 commit comments