Skip to content

Commit

Permalink
Merge branch '4.4'
Browse files Browse the repository at this point in the history
* 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
  ...
  • Loading branch information
nicolas-grekas committed Aug 26, 2019
2 parents ba471f2 + 8333185 commit 230b254
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions Crawler.php
Expand Up @@ -44,7 +44,7 @@ class Crawler implements \Countable, \IteratorAggregate
private $document;

/**
* @var \DOMElement[]
* @var \DOMNode[]
*/
private $nodes = [];

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

/**
* @param mixed $node A Node to use as the base for the crawling
* @param \DOMNodeList|\DOMNode|\DOMNode[]|string|null $node A Node to use as the base for the crawling
*/
public function __construct($node = null, string $uri = null, string $baseHref = null)
{
Expand Down Expand Up @@ -107,7 +107,7 @@ public function clear()
* This method uses the appropriate specialized add*() method based
* on the type of the argument.
*
* @param \DOMNodeList|\DOMNode|array|string|null $node A node
* @param \DOMNodeList|\DOMNode|\DOMNode[]|string|null $node A node
*
* @throws \InvalidArgumentException when node is not the expected type
*/
Expand Down Expand Up @@ -1058,7 +1058,7 @@ private function relativize(string $xpath): string
}

/**
* @return \DOMElement|null
* @return \DOMNode|null
*/
public function getNode(int $position)
{
Expand All @@ -1074,7 +1074,7 @@ public function count()
}

/**
* @return \ArrayIterator|\DOMElement[]
* @return \ArrayIterator|\DOMNode[]
*/
public function getIterator()
{
Expand Down Expand Up @@ -1191,7 +1191,7 @@ private function findNamespacePrefixes(string $xpath): array
/**
* Creates a crawler for some subnodes.
*
* @param \DOMElement|\DOMElement[]|\DOMNodeList|null $nodes
* @param \DOMNodeList|\DOMNode|\DOMNode[]|string|null $nodes
*
* @return static
*/
Expand All @@ -1207,7 +1207,7 @@ private function createSubCrawler($nodes): object
}

/**
* @throws \RuntimeException If the CssSelector Component is not available
* @throws \LogicException If the CssSelector Component is not available
*/
private function createCssSelectorConverter(): CssSelectorConverter
{
Expand Down

0 comments on commit 230b254

Please sign in to comment.