@@ -44,7 +44,7 @@ class Crawler implements \Countable, \IteratorAggregate
44
44
private $ document ;
45
45
46
46
/**
47
- * @var \DOMElement []
47
+ * @var \DOMNode []
48
48
*/
49
49
private $ nodes = [];
50
50
@@ -61,9 +61,7 @@ class Crawler implements \Countable, \IteratorAggregate
61
61
private $ html5Parser ;
62
62
63
63
/**
64
- * @param mixed $node A Node to use as the base for the crawling
65
- * @param string $uri The current URI
66
- * @param string $baseHref The base href value
64
+ * @param \DOMNodeList|\DOMNode|\DOMNode[]|string|null $node A Node to use as the base for the crawling
67
65
*/
68
66
public function __construct ($ node = null , string $ uri = null , string $ baseHref = null )
69
67
{
@@ -109,7 +107,7 @@ public function clear()
109
107
* This method uses the appropriate specialized add*() method based
110
108
* on the type of the argument.
111
109
*
112
- * @param \DOMNodeList|\DOMNode|array |string|null $node A node
110
+ * @param \DOMNodeList|\DOMNode|\DOMNode[] |string|null $node A node
113
111
*
114
112
* @throws \InvalidArgumentException when node is not the expected type
115
113
*/
@@ -1059,7 +1057,7 @@ private function relativize(string $xpath): string
1059
1057
/**
1060
1058
* @param int $position
1061
1059
*
1062
- * @return \DOMElement |null
1060
+ * @return \DOMNode |null
1063
1061
*/
1064
1062
public function getNode ($ position )
1065
1063
{
@@ -1075,7 +1073,7 @@ public function count()
1075
1073
}
1076
1074
1077
1075
/**
1078
- * @return \ArrayIterator|\DOMElement []
1076
+ * @return \ArrayIterator|\DOMNode []
1079
1077
*/
1080
1078
public function getIterator ()
1081
1079
{
@@ -1193,7 +1191,7 @@ private function findNamespacePrefixes(string $xpath): array
1193
1191
/**
1194
1192
* Creates a crawler for some subnodes.
1195
1193
*
1196
- * @param \DOMElement|\DOMElement []|\DOMNodeList |null $nodes
1194
+ * @param \DOMNodeList|\DOMNode|\DOMNode []|string |null $nodes
1197
1195
*
1198
1196
* @return static
1199
1197
*/
0 commit comments