Skip to content

Commit b5b5337

Browse files
Merge branch '3.4'
* 3.4: [HttpFoundation] refactoring: calculate when need [Serializer] Fix extra attributes when no group specified [Intl] Make intl-data tests pass and save language aliases again [FrameworkBundle][Config] fix: do not add resource checkers for debug=false [DI] Fix "almost-circular" dependencies handling [Console] Fix CommandTester::setInputs() docblock Only enabling validation if it is present Fix displaying errors for bootstrap 4 [Serializer] readd default argument value Fix reference dump for deprecated nodes [PhpUnitBridge] Fixed fatal error in CoverageListener when something goes wrong in Test::setUpBeforeClass [HttpKernel] Let the storage manage the session starts [VarDumper] fix trailling comma when dumping an exception [Validator] Fix TraceableValidator is reset on data collector instantiation Remove useless docblocks [FrameworkBundle] Fix docblocks [PropertyInfo] Remove useless docblocks
2 parents e8a500c + 7bf6871 commit b5b5337

File tree

1 file changed

+6
-9
lines changed

1 file changed

+6
-9
lines changed

Crawler.php

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,6 @@
2020
*/
2121
class Crawler implements \Countable, \IteratorAggregate
2222
{
23-
/**
24-
* @var string The current URI
25-
*/
2623
protected $uri;
2724

2825
/**
@@ -58,14 +55,14 @@ class Crawler implements \Countable, \IteratorAggregate
5855
private $isHtml = true;
5956

6057
/**
61-
* @param mixed $node A Node to use as the base for the crawling
62-
* @param string $currentUri The current URI
63-
* @param string $baseHref The base href value
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
6461
*/
65-
public function __construct($node = null, $currentUri = null, $baseHref = null)
62+
public function __construct($node = null, $uri = null, $baseHref = null)
6663
{
67-
$this->uri = $currentUri;
68-
$this->baseHref = $baseHref ?: $currentUri;
64+
$this->uri = $uri;
65+
$this->baseHref = $baseHref ?: $uri;
6966

7067
$this->add($node);
7168
}

0 commit comments

Comments
 (0)