@@ -43,7 +43,7 @@ class Crawler implements \Countable, \IteratorAggregate
43
43
private $ document ;
44
44
45
45
/**
46
- * @var \DOMElement []
46
+ * @var \DOMNode []
47
47
*/
48
48
private $ nodes = [];
49
49
@@ -55,9 +55,7 @@ class Crawler implements \Countable, \IteratorAggregate
55
55
private $ isHtml = true ;
56
56
57
57
/**
58
- * @param mixed $node A Node to use as the base for the crawling
59
- * @param string $uri The current URI
60
- * @param string $baseHref The base href value
58
+ * @param \DOMNodeList|\DOMNode|\DOMNode[]|string|null $node A Node to use as the base for the crawling
61
59
*/
62
60
public function __construct ($ node = null , $ uri = null , $ baseHref = null )
63
61
{
@@ -102,7 +100,7 @@ public function clear()
102
100
* This method uses the appropriate specialized add*() method based
103
101
* on the type of the argument.
104
102
*
105
- * @param \DOMNodeList|\DOMNode|array |string|null $node A node
103
+ * @param \DOMNodeList|\DOMNode|\DOMNode[] |string|null $node A node
106
104
*
107
105
* @throws \InvalidArgumentException when node is not the expected type
108
106
*/
@@ -1049,7 +1047,7 @@ private function relativize($xpath)
1049
1047
/**
1050
1048
* @param int $position
1051
1049
*
1052
- * @return \DOMElement |null
1050
+ * @return \DOMNode |null
1053
1051
*/
1054
1052
public function getNode ($ position )
1055
1053
{
@@ -1065,7 +1063,7 @@ public function count()
1065
1063
}
1066
1064
1067
1065
/**
1068
- * @return \ArrayIterator|\DOMElement []
1066
+ * @return \ArrayIterator|\DOMNode []
1069
1067
*/
1070
1068
public function getIterator ()
1071
1069
{
@@ -1146,7 +1144,7 @@ private function findNamespacePrefixes($xpath)
1146
1144
/**
1147
1145
* Creates a crawler for some subnodes.
1148
1146
*
1149
- * @param \DOMElement|\DOMElement []|\DOMNodeList |null $nodes
1147
+ * @param \DOMNodeList|\DOMNode|\DOMNode []|string |null $nodes
1150
1148
*
1151
1149
* @return static
1152
1150
*/
0 commit comments