Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit af28b0c

Browse files
committed
merged branch matthijsvandenbos/matthijsvandenbos/ticket_7210 (PR #7211)
This PR was submitted for the 2.1 branch but it was merged into the master branch instead (closes #7211). Commits ------- 41abfd8 [DomCrawler] fixed ticket 7210 Discussion ---------- [DomCrawler] fixed ticket 7210: DomCrawler is not properly extendable | Q | A | ------------- | --- | Bug fix? | yes | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | #7210 | License | MIT | Doc PR | See #7210 for a description of the argument
2 parents 6b6ccbb + 3441dba commit af28b0c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/Symfony/Component/DomCrawler/Crawler.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ class Crawler extends \SplObjectStorage
2525
/**
2626
* @var string The current URI or the base href value
2727
*/
28-
private $uri;
28+
protected $uri;
2929

3030
/**
3131
* Constructor.
@@ -704,7 +704,7 @@ public static function xpathLiteral($s)
704704
return sprintf("concat(%s)", implode($parts, ', '));
705705
}
706706

707-
private function getNode($position)
707+
protected function getNode($position)
708708
{
709709
foreach ($this as $i => $node) {
710710
if ($i == $position) {
@@ -717,7 +717,7 @@ private function getNode($position)
717717
// @codeCoverageIgnoreEnd
718718
}
719719

720-
private function sibling($node, $siblingDir = 'nextSibling')
720+
protected function sibling($node, $siblingDir = 'nextSibling')
721721
{
722722
$nodes = array();
723723

0 commit comments

Comments
 (0)