Skip to content

Commit 230b254

Browse files
Merge branch '4.4'
* 4.4: (28 commits) fix merge [SecurityBundle] fix return type declarations [BrowserKit] fix return type declarations [PropertyInfo] fix return type declarations [Bridge/Doctrine] fix return type declarations [Form] fix return type declarations [Console] fix return type declarations [Intl] fix return type declarations [Templating] fix return type declarations [DomCrawler] fix return type declarations [Validator] fix return type declarations [Process] fix return type declarations [Workflow] fix return type declarations [Cache] fix return type declarations [Serializer] fix return type declarations [Translation] fix return type declarations [DI] fix return type declarations [Config] fix return type declarations [HttpKernel] Fix return type declarations [Security] Fix return type declarations ...
2 parents ba471f2 + 8333185 commit 230b254

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

Crawler.php

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ class Crawler implements \Countable, \IteratorAggregate
4444
private $document;
4545

4646
/**
47-
* @var \DOMElement[]
47+
* @var \DOMNode[]
4848
*/
4949
private $nodes = [];
5050

@@ -61,7 +61,7 @@ class Crawler implements \Countable, \IteratorAggregate
6161
private $html5Parser;
6262

6363
/**
64-
* @param mixed $node A Node to use as the base for the crawling
64+
* @param \DOMNodeList|\DOMNode|\DOMNode[]|string|null $node A Node to use as the base for the crawling
6565
*/
6666
public function __construct($node = null, string $uri = null, string $baseHref = null)
6767
{
@@ -107,7 +107,7 @@ public function clear()
107107
* This method uses the appropriate specialized add*() method based
108108
* on the type of the argument.
109109
*
110-
* @param \DOMNodeList|\DOMNode|array|string|null $node A node
110+
* @param \DOMNodeList|\DOMNode|\DOMNode[]|string|null $node A node
111111
*
112112
* @throws \InvalidArgumentException when node is not the expected type
113113
*/
@@ -1058,7 +1058,7 @@ private function relativize(string $xpath): string
10581058
}
10591059

10601060
/**
1061-
* @return \DOMElement|null
1061+
* @return \DOMNode|null
10621062
*/
10631063
public function getNode(int $position)
10641064
{
@@ -1074,7 +1074,7 @@ public function count()
10741074
}
10751075

10761076
/**
1077-
* @return \ArrayIterator|\DOMElement[]
1077+
* @return \ArrayIterator|\DOMNode[]
10781078
*/
10791079
public function getIterator()
10801080
{
@@ -1191,7 +1191,7 @@ private function findNamespacePrefixes(string $xpath): array
11911191
/**
11921192
* Creates a crawler for some subnodes.
11931193
*
1194-
* @param \DOMElement|\DOMElement[]|\DOMNodeList|null $nodes
1194+
* @param \DOMNodeList|\DOMNode|\DOMNode[]|string|null $nodes
11951195
*
11961196
* @return static
11971197
*/
@@ -1207,7 +1207,7 @@ private function createSubCrawler($nodes): object
12071207
}
12081208

12091209
/**
1210-
* @throws \RuntimeException If the CssSelector Component is not available
1210+
* @throws \LogicException If the CssSelector Component is not available
12111211
*/
12121212
private function createCssSelectorConverter(): CssSelectorConverter
12131213
{

0 commit comments

Comments
 (0)